Timer 2; Features (Timer 2); Function Overview (Timer 2) - NEC V850E/IA1 mPD703116 User Manual

32-bit single-chip microcontrollers
Hide thumbs Also See for V850E/IA1 mPD703116:
Table of Contents

Advertisement

CHAPTER 9 TIMER/COUNTER FUNCTION (REAL-TIME PULSE UNIT)

9.3 Timer 2

9.3.1 Features (timer 2)

Timers 20, 21 (TM20, TM21) are 16-bit general-purpose timer units that perform the following operations.
• Pulse interval or frequency measurement and programmable pulse output
• Interval timer
• PWM output timer
• 32-bit capture timer when 2 timer/counter channels are connected in cascade
(In this case, four 32-bit capture register channels can be used.)

9.3.2 Function overview (timer 2)

16-bit timer/counter (TM20, TM21): 2 channels
Bit length
Timer 2 registers (TM20, TM21): 16 bits
During cascade operation: 32 bits (higher 16 bits: TM21, lower 16 bits: TM20)
Capture/compare register
In 16-bit mode: 6
In 32-bit mode: 4 (capture mode only)
Count clock division selectable 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
334
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

Advertisement

Table of Contents
loading

Table of Contents