CHAPTER 9 TIMER/COUNTER FUNCTION (REAL-TIME PULSE UNIT)
395
User’s Manual U14492EJ3V0UD
(5) External pulse output
Timer 3 has one timer output pin (TO3).
An external pulse output (TO3) is generated when a match of the two compare registers (CC30 and CC31)
and the TM3 register is detected.
If a match is detected when the TM3 count value and the CC30 value are compared, the output level of the
TO3 pin is set. Also, if a match is detected when the TM3 count value and the CC31 value are compared, the
output level of the TO3 pin is reset.
The output level of the TO3 pin can be specified by the TMC31 register.
Table 9-13. TO3 Output Control
TO3 Output
ENT1
ALV
External Pulse Output
Output Level
0
0
Disable
High level
0
1
Disable
Low level
1
0
Enable
When the CC30 register is matched: Low level
When the CC31 register is matched: High level
1
1
Enable
When the CC30 register is matched: High level
When the CC31 register is matched: Low level
Figure 9-89. TM3 Compare Operation Example (Set/Reset Output Mode)
TM3 count value
0
FFFFH
∆
Count start
TM3CE
←
1
∆
Overflow
TM3OVF
←
1
∆
Overflow
TM3OVF
←
1
CC31
CC30
FFFFH
CC31
CC30
CC30
Interrupt request
(INTCC30)
Interrupt request
(INTCC31)
TO3 pin
ENT1
←
1
ALV
←
1