tmp1940cyaf TOSHIBA Semiconductor CORPORATION, tmp1940cyaf Datasheet - Page 286

no-image

tmp1940cyaf

Manufacturer Part Number
tmp1940cyaf
Description
32-bit Tx System Risc Tx19 Family
Manufacturer
TOSHIBA Semiconductor CORPORATION
Datasheet
RTCREG
(0xFFFF_F0A4)
interrupts that have occurred. The accumulator allows the user to keep track of time up to 127.5 seconds if
the interrupt interval is programmed to 0.5 seconds.
of the RTCREG must be performed in SLOW mode. The resetting of the RTCREG is inhibited for one fs
clock cycle after the INTRTC interrupt is generated. The RTCREG can be reset to zero by executing the
accumulator-clear command twice in SLOW mode.
The RTC provides an 8-bit read-only accumulator (RTCREG) that counts the number of INTRTC
The RTCREG is incremented with a delay of one fs clock after the INTRTC interrupt is generated. Reads
Example 1: Clearing the accumulator
Example 2: Programming the RTC interrupt interval
Name
Read/Write
Reset Value
Function
INTRTC interrupt
X = Don't care
SYSCR1
RTCCR
RTCCR
SYSCR1
Initialization
IMCGB3
IMCEHL
EICRCG
INTCLR
RTCCR
EICRCG
INTCLR
Interrupt processing
End of interrupt
fs Clock
INTRTC Interrupt
Accumulate
Count Value
Note: To disable interrupts, program the IMCEHL and then the IMCGB3 in this order.
Figure 17.3 RTC Accumulator Register (RTCREG)
RUI7
7 6 5 4 3 2 1 0
X X 1
0 X X X 0
0 X X X 0
X X 0
7 6 5 4 3 2 1 0
0 0 1 1 0 0 0 1
0 0 0 1 0 X X X
0 0 0 0 0 1 1 1
0 0 1 1 1 0 1 0
0 0 0 0 1 X X 1
7 6 5 4 3 2 1 0
0 0 0 0 0 1 1 1
0 0 1 1 1 0 1 0
7
0
RUI6
6
0
TMP1940CYAF-244
X
X
n
Accumulator
1
1
RUI5
5
0
Don’t execute an instruction
Puts the TMP1940CYAF in SLOW mode.
Executes accumulator-clear command twice.
Puts the TMP1940CYAF back in NORMAL Mode.
Sets the interrupt level.
Clears the interrupt request via the CG block.
Clears the interrupt request via the INTC block.
Starts counting.
Clears the interrupt request via the CG block.
Clears interrupt request via the INTC block.
to reset the accumulator
Accumulate count value
during this period.
RUI4
4
0
R
RUI3
3
0
TMP1940CYAF
RUI2
2
0
n 1
RUI1
1
0
RUI0
0
0

Related parts for tmp1940cyaf