9.4 Timer 3
9.4.1 Features (timer 3)
Timer 3 (TM3) is a 16-bit timer/counter that can perform the following operations.
• Interval timer function
• PWM output
• External signal cycle measurement
9.4.2 Function overview (timer 3)
•
16-bit timer/counter (TM3): 1 channel
•
Capture/compare registers: 2
•
Count clock division selectable by prescaler (set the frequency of the count clock to 16 MHz or less)
•
Base clock (f
): 2 types (set f
CLK
f
and f
/2 can be selected
XX
XX
•
Prescaler division ratio
The following division ratios can be selected according to the base clock (f
Division Ratio
•
Interrupt request sources
• Capture/compare match interrupt requests: 2 sources
In case of capture register: INTCC3n generated by INTP3n input
In case of compare register: INTCC3n generated by CC3n match signal
• Overflow interrupt request: 1 source
INTTM3 generated upon overflow of TM3 register
•
Timer/counter count clock sources: 2 types
(Selection of external pulse input, internal system clock cycle)
•
One of two operation modes when the timer/counter overflows can be selected: free-running mode or overflow
stop mode
•
The timer/counter can be cleared by match of timer/counter and compare register
•
External pulse output (TO3): 1
Remarks 1. f
: Internal system clock
XX
2. n = 0, 1
CHAPTER 9 TIMER/COUNTER FUNCTION
to 32 MHz or less)
CLK
Base Clock (f
f
Selected
XX
1/2
f
/2
XX
1/4
f
/4
XX
1/8
f
/8
XX
1/16
f
/16
XX
1/32
f
/32
XX
1/64
f
/64
XX
1/128
f
/128
XX
1/256
f
/256
XX
User's Manual U14492EJ5V0UD
).
CLK
)
CLK
f
/2 Selected
XX
f
/4
XX
f
/8
XX
f
/16
XX
f
/32
XX
f
/64
XX
f
/128
XX
f
/256
XX
f
/512
XX
373