CHAPTER 6 16-BIT TIMER/EVENT COUNTERS 00 AND 01
User’s Manual U16899EJ2V0UD
158
Figure 6-19. Configuration Diagram of PPG Output
16-bit timer capture/compare
register 00n (CR00n)
16-bit timer counter 0n
(TM0n)
Clear
circuit
Noise
eliminator
f
X
f
X
(f
X
)
Note
f
X
/2
2
(f
X
/2
4
)
Note
f
X
/2
8
(f
X
/2
6
)
Note
TI000/P00
(TI001/P05)
Note
16-bit timer capture/compare
register 01n (CR01n)
TO00/TI010/P01
( TO01/TI011/P06 )
Selector
Output controller
Note Frequencies and pin names without parentheses are for 16-bit timer/event counter 00, and those in
parentheses are for 16-bit timer/event counter 01.
Figure 6-20. PPG Output Operation Timing
t
0000H
0000H 0001H
0001H
M
−
1
Count clock
TM0n count value
TO0n
Pulse width: (M + 1)
×
t
1 cycle: (N + 1)
×
t
N
CR00n capture value
CR01n capture value
M
M
N
−
1
N
N
Clear
Clear
Cautions 1. Do not rewrite CR00n during TM0n operation.
2. In the PPG output operation, change the pulse width (rewrite CR01n) during TM0n operation
using the following procedure.
<1> Disable the timer output inversion operation by match of TM0n and CR01n (TOC0n4 = 0)
<2> Disable the INTTM01n interrupt (TMMK01n = 1)
<3> Rewrite CR01n
<4> Wait for 1 cycle of the TM0n count clock
<5> Enable the timer output inversion operation by match of TM0n and CR01n (TOC0n4 = 1)
<6> Clear the interrupt request flag of INTTM01n (TMIF01n = 0)
<7> Enable the INTTM01n interrupt (TMMK01n = 0)
Remarks 1. 0000H
≤
M < N
≤
FFFFH
2. n = 0:
µ
PD78F0132H
n = 0, 1:
µ
PD78F0133H, 78F0134H, 78F0136H, 78F0138H, 78F0138HD