CHAPTER 9 TIMER/COUNTER FUNCTION
386
User’s Manual U15195EJ5V0UD
(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-15. 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-94. TM3 Compare Operation Example (Set/Reset Output Mode)
0
CC30
CC30
CC31
CC31
CC31
TM3 count value
Count start
TM3CE
←
1
Clear & start
Clear & start
Interrupt request
(INTCC31)
Interrupt request
(INTCC30)
TO3 pin
ENT1
←
1
ALV
←
0