Timer 1; Features (Timer 1); Function Overview (Timer 1) - NEC UPD703116 User Manual

32-bit single-chip microcontrollers
Table of Contents

Advertisement

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 (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 (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
CHAPTER 9 TIMER/COUNTER FUNCTION
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 U14492EJ5V0UD
).
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
293

Advertisement

Table of Contents
loading

Table of Contents