CHAPTER 9 TIMER/COUNTER FUNCTION (REAL-TIME PULSE UNIT)
9.2 Timer 1
9.2.1 Features (timer 1)
Timers 10, 11 (TM10, TM11) are 16-bit up/down counters that perform the following operations.
• General-purpose timer mode
Free-running timer
PWM output
• Up/down counter mode
UDC mode A
UDC mode B
9.2.2 Function overview (timer 1)
•
16-bit 2-phase encoder input up/down counter & general-purpose timer (TM1n): 2 channels
•
Compare register: 2 × 2 channels
•
Capture/compare register: 2 × 2 channels
•
Interrupt request source
• Capture/compare match interrupt: 2 types × 2 channels
• Compare match interrupt request: 2 types × 2 channels
•
Capture request signal: 2 types × 2 channels
• The TM1n value can be latched using the valid edge of the INTP1n0, INTP1n1 pins corresponding to the
capture/compare register as the capture trigger.
•
Count clocks selectable through division by prescaler (set the frequency of the count clock to 8 MHz or less)
•
Base clock (f
): 2 types (set f
CLK
f
/2 and f
/4 can be selected
XX
XX
•
Prescaler division ratio
The following division ratios can be selected according to the base clock (f
Division Ratio
298
to 16 MHz or less)
CLK
Base Clock (f
f
/2 Selected
XX
1/2
f
/4
XX
1/4
f
/8
XX
1/8
f
/16
XX
1/16
f
/32
XX
1/32
f
/64
XX
1/64
f
/128
XX
1/128
f
/256
XX
User's Manual U14492EJ3V0UD
).
CLK
)
CLK
f
/4 Selected
XX
f
/8
XX
f
/16
XX
f
/32
XX
f
/64
XX
f
/128
XX
f
/256
XX
f
/512
XX