English
Language : 

UPD78F9500MA-CAC-A Datasheet, PDF (105/342 Pages) Renesas Technology Corp – 8-Bit Single-Chip Microcontrollers
CHAPTER 6 16-BIT TIMER/EVENT COUNTER 00 (μPD78F920x ONLY)
Figure 6-13. Timing of Interval Timer Operation
t
Count clock
TM00 count value 0000H 0001H
N 0000H 0001H
N 0000H 0001H
N
Timer operation enabled
Clear
Clear
CR000
N
N
N
N
INTTM000
Interrupt request generated Interrupt request generated
Remark Interval time = (N + 1) × t
N = 0001H to FFFFH (settable range)
When the compare register is changed during timer count operation, if the value after 16-bit timer capture/compare
register 000 (CR000) is changed is smaller than that of 16-bit timer counter 00 (TM00), TM00 continues counting,
overflows and then restarts counting from 0. Thus, if the value (M) after the CR000 change is smaller than that (N)
before the change, it is necessary to restart the timer after changing CR000.
Figure 6-14. Timing After Change of Compare Register During Timer Count Operation (N → M: N > M )
Count clock
CR000
N
M
TM00 count value
X–1
X
FFFFH
0000H
0001H
0002H
Remark N > X > M
6.4.2 External event counter operation
Setting
The basic operation setting procedure is as follows.
<1> Set the CRC00 register (see Figure 6-15 for the set value).
<2> Set the count clock by using the PRM00 register.
<3> Set any value to the CR000 register (0000H cannot be set).
<4> Set the TMC00 register to start the operation (see Figure 6-15 for the set value).
Remarks 1. For the setting of the TI000 pin, see 6.3 (5) Port mode register 2 (PM2) and port mode control
register 2 (PMC2).
2. For how to enable the INTTM000 interrupt, see CHAPTER 10 INTERRUPT FUNCTIONS.
User’s Manual U18172EJ3V0UD
103