CHAPTER 9 TIMER/COUNTER FUNCTION
294
User’s Manual U15195EJ5V0UD
9.2 Timer 1
9.2.1 Features (timer 1)
Timer 10 (TM10) is a 16-bit up/down counter that performs the following operations.
•
General-purpose timer mode (See
9.2.5 (1) Operation in general-purpose timer mode
.)
Free-running timer
PWM output
•
Up/down counter mode (See
9.2.5 (2) Operation in UDC mode
.)
UDC mode A (mode 1, mode 2, mode 3, mode 4)
UDC mode B (mode 1, mode 2, mode 3, mode 4)
9.2.2 Function overview (timer 1)
•
16-bit 2-phase encoder input up/down counter & general-purpose timer (TM10)
•
Compare registers: 2
•
Capture/compare registers: 2
•
Interrupt request sources
•
Capture/compare match interrupt: 2 types
•
Compare match interrupt request: 2 types
•
Capture request signal: 2 types
•
The TM10 value can be latched using the valid edge of the INTP100 and INTP101 pins corresponding to
the capture/compare register as the capture trigger.
•
Count clock selectable through division by prescaler (set the frequency of the count clock to 10 MHz or less)
•
Base clock (f
CLK
): 1 type (set f
CLK
to 20 MHz or less)
f
XX
/2
•
Prescaler division ratio
The following division ratios can be selected according to the base clock (f
CLK
).
Division Ratio
Base Clock (f
CLK
)
1/2 f
XX
/4
1/4 f
XX
/8
1/8 f
XX
/16
1/16 f
XX
/32
1/32 f
XX
/64
1/64 f
XX
/128
1/128 f
XX
/256