Function Overview Of Each Timer Gn - NEC V850E/Dx3 Preliminary User's Manual

32-bit single-chip microcontroller
Table of Contents

Advertisement

Chapter 13
438
Downloaded from
Elcodis.com
electronic components distributor

13.2 Function Overview of Each Timer Gn

• 16-bit timer/counter (TMGn0, TMGn1): 2 channels
• Bit length
– Timer Gn registers (TMGn0, TMGn1): 16 bits
• Capture/compare register (GCCny): 6
– 16-bit
– 2 registers are assigned fix to the corresponding one of the 2 counters
– 4 free assignable registers to one of the 2 counters
• Count clock division selectable by prescaler (frequency of peripheral clock:
f
= 16 MHz)
SPCLK0
– In 8 steps from f
• Interrupt request sources
– Edge detection circuit with noise elimination.
– Compare-match interrupt requests: 6 types
Perform comparison of capture/compare register with one of the 2
counters (TMGn0, TMGn1) and generate the INTCCGny (y = 0 to 5)
interrupt upon compare match.
– Timer counter overflow interrupt requests: 2 types
In free run mode the INTTMGn0 (INTTMGn1) interrupt is generated when
the count value of TMGn0 (TMGn1) toggles from FFFFH to 0000H.
– In match and clear mode the INTTMGn0 (INTTMGn1) interrupt is
generated when the count value of TMGn0 (TMGn1) matches the GCC0
(GCC1) value.
• PWM output function
– Control of the outputs of TOGn1- through TOGn4-pin in the compare
mode. PWM output can be performed using the compare match timing of
the GCCn1 to GCCn4 register and the corresponding timebase (TMGn0,
TMGn1).
• Output delay operation
– A clock-synchronized output delay can be added to the output signal of
pins TOGn1 to TOGn4.
– This is effective as an EMI counter measure.
• Edge detection and noise elimination filter
– External signals shorter than 1 count clock (f
eliminated as noise.
Note
The TIGn1 to TIGn4 and TOGn1 to TOGn4 are each alternative function pins.
The following figure shows the block diagram of Timer Gn.
Preliminary User's Manual U17566EE1V2UM00
16-bit Multi-Purpose Timer G (TMG)
/2 to f
/256
SPCLK0
SPCLK0
, not f
) are
COUNTn
SPCLK0

Advertisement

Table of Contents
loading

Table of Contents