CHAPTER 6 16-BIT TIMER
User's Manual U11919EJ3V0UM00
103
6.4.4 16-bit timer counter 20 readout
The count value of 16-bit timer counter 20 (TM20) is read out by a 16-bit manipulation instruction.
TM20 readout is performed through a counter read buffer. The counter read buffer latches the TM20 count
value. And buffer operation is pended at the CPU clock falling edge after the read signal of the TM20 lower byte
rises and the count value is retained. The counter read buffer value at the retention state can be read out as the
count value.
Cancellation of pending is performed at the CPU clock falling edge after the read signal of TM20 higher byte falls.
RESET input clears TM20 to 0000H and starts freerunning.
Figure 6-10 shows the timing of 16-bit timer counter 20 readout.
Cautions 1. The count value after releasing stop becomes undefined because the count operation is
executed during oscillation settling time.
2. Though TM20 is a dedicated register of a 16-bit transfer instruction, an 8-bit transfer
instruction can be used.
When using the 8-bit transfer instruction, execute by direct addressing.
3. When using the 8-bit transfer instruction, execute in the order from lower byte to higher
byte in pairs. If the only lower byte is read, the pending state of the counter read buffer is
not canceled, and if the only higher byte is read, an undefined count value is read.
Figure 6-10. 16-Bit Timer Counter 20 Readout Timing
CPU Clock
Count Clock
TM20
Count Read Buffer
TM20 Read Signal
0000H
0000H
0001H
0001H
N
N
N + 1
Read Signal Latch
Prohibited Period
www.DataSheet4U.com
Summary of Contents for UPD789026 Series
Page 2: ...User s Manual U11919EJ3V0UM00 2 MEMO www DataSheet4U com...
Page 8: ...User s Manual U11919EJ3V0UM00 8 MEMO www DataSheet4U com...
Page 12: ...User s Manual U11919EJ3V0UM00 12 MEMO www DataSheet4U com...
Page 22: ...User s Manual U11919EJ3V0UM00 22 MEMO www DataSheet4U com...
Page 32: ...User s Manual U11919EJ3V0UM00 32 MEMO www DataSheet4U com...
Page 84: ...User s Manual U11919EJ3V0UM00 84 MEMO www DataSheet4U com...
Page 92: ...User s Manual U11919EJ3V0UM00 92 MEMO www DataSheet4U com...
Page 104: ...User s Manual U11919EJ3V0UM00 104 MEMO www DataSheet4U com...
Page 166: ...User s Manual U11919EJ3V0UM00 166 MEMO www DataSheet4U com...
Page 178: ...User s Manual U11919EJ3V0UM00 178 MEMO www DataSheet4U com...
Page 184: ...User s Manual U11919EJ3V0UM00 184 MEMO www DataSheet4U com...
Page 204: ...User s Manual U11919EJ3V0UM00 204 MEMO www DataSheet4U com...
Page 206: ...User s Manual U11919EJ3V0UM00 206 MEMO www DataSheet4U com...
Page 212: ...User s Manual U11919EJ3V0UM00 212 MEMO www DataSheet4U com...