CHAPTER 8 16-BIT TIMER COUNTER
User’s Manual U13045EJ2V0UM00
112
8.4.2 Operation as timer output
Timer outputs are repeatedly generated at the count value set to 16-bit compare register 20 (CR20) in advance
based on the intervals of the value set in TCL201 and TCL200.
To operate the 16-bit timer counter as a timer output, the following settings are required.
• Set P24 to output mode (PM24 = 0)
• Set P24 output latch to 0
• Set the count value to CR20
• Set 16-bit timer mode control register 20 (TMC20) as shown in Figure 8-6
Figure 8-6. Settings of 16-Bit Timer Mode Control Register 20 at Timer Output Operation
Caution If both CPT201 flag and CPT200 flag are set to 0, the capture edge becomes operation prohibited.
When the count value of the 16-bit timer register 20 (TM20) matches the value set in CR20, the output status of
the TO20/P24/INTP1/TO80 pin is inverted. This enables timer output. At that time, TM20 count is continued and
an interrupt request signal (INTTM20) is generated.
Figure 8-7 shows the timing of timer output (see Table 8-3 for the interval time of the 16-bit timer counter).
Figure 8-7. Timer Output Timing
Note
The TO20 initial value becomes low level during output enable (TOE20 = 1).
Remark
N = 0000H to FFFFH
Count clock
TM20 count value
CR20
INTTM20
TO20
Note
TOF20
0000H
0001H
N
FFFFH 0000H 0001H
N
FFFFH
N
N
N
N
N
Interrupt accept
Interrupt accept
Overflow flag set
t
–
0/1
0/1
0/1
1
0
0/1
1
TOD20 TOF20 CPT201 CPT200 TOC20 TCL201 TCL200 TOE20
TMC20
Setting of count clock (see Table 8-3)
Inverse enable of timer output data
TO20 output enable
Содержание mPD789101
Страница 2: ...2 User s Manual U13045EJ2V0UM00 MEMO...
Страница 10: ...10 User s Manual U13045EJ2V0UM00 MEMO...
Страница 16: ...User s Manual U13045EJ2V0UM00 16 MEMO...
Страница 46: ...User s Manual U13045EJ2V0UM00 46 MEMO...
Страница 72: ...72 User s Manual U13045EJ2V0UM00 MEMO...
Страница 86: ...User s Manual U13045EJ2V0UM00 86 MEMO...
Страница 94: ...User s Manual U13045EJ2V0UM00 94 MEMO...
Страница 102: ...User s Manual U13045EJ2V0UM00 102 MEMO...
Страница 128: ...User s Manual U13045EJ2V0UM00 128 MEMO...
Страница 148: ...User s Manual U13045EJ2V0UM00 148 MEMO...
Страница 162: ...User s Manual U13045EJ2V0UM00 162 MEMO...
Страница 218: ...User s Manual U13045EJ2V0UM00 218 MEMO...
Страница 238: ...User s Manual U13045EJ2V0UM00 238 MEMO...
Страница 240: ...User s Manual U13045EJ2V0UM00 240 MEMO...
Страница 256: ...User s Manual U13045EJ2V0UM00 256 MEMO...
Страница 258: ...258 User s Manual U13045EJ2V0UM00 MEMO...
Страница 264: ...User s Manual U13045EJ2V0UM00 264 MEMO...