CHAPTER 9 TIMER/COUNTER FUNCTION
368
User’s Manual U15195EJ5V0UD
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
•
TO3 output buffer set to off by INTP4 input
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
CLK
): 2 types (set f
CLK
to 32 MHz or less)
f
XX
and f
XX
/2 can be selected
•
Prescaler division ratio
The following division ratios can be selected according to the base clock (f
CLK
).
Base Clock (f
CLK
)
Division Ratio
f
XX
Selected
f
XX
/2 Selected
1/2 f
XX
/2 f
XX
/4
1/4 f
XX
/4 f
XX
/8
1/8 f
XX
/8 f
XX
/16
1/16 f
XX
/16 f
XX
/32
1/32 f
XX
/32 f
XX
/64
1/64 f
XX
/64
f
XX
/128
1/128 f
XX
/128 f
XX
/256
1/256 f
XX
/256 f
XX
/512
•
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
•
TO3 output buffer set to off by INTP4 input (high-impedance state)
Remarks 1.
f
XX
: Internal system clock
2.
n = 0, 1
Содержание PD703114
Страница 2: ...2 User s Manual U15195EJ5V0UD MEMO ...