307
Chapter 10
Timer
Preliminary User’s Manual U15839EE1V0UM00
10.3.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
PCLK
= 16 MHz)
- In 8 steps from f
PCLK
/2 to f
PCLK
/256
•
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
COUNT
, not f
PCLK
) are eliminated as noise.
Note: The TOGn1 to TOGn4 and TOGn1 to TOGn4 are each alternate function pins.
Figure 10-24, “Block Diagram of Timer Gn,” on page 308 shows the block diagram of Timer Gn.
Summary of Contents for mPD703128
Page 6: ...6 Preliminary User s Manual U15839EE1V0UM00 ...
Page 20: ...20 Preliminary User s Manual U15839EE1V0UM00 ...
Page 32: ...32 Preliminary User s Manual U15839EE1V0UM00 MEMO ...
Page 154: ...154 Preliminary User s Manual U15839EE1V0UM00 MEMO ...
Page 238: ...238 Preliminary User s Manual U15839EE1V0UM00 MEMO ...
Page 356: ...356 Preliminary User s Manual U15839EE1V0UM00 MEMO ...
Page 522: ...522 Preliminary User s Manual U15839EE1V0UM00 MEMO ...
Page 600: ...600 Preliminary User s Manual U15839EE1V0UM00 MEMO ...
Page 610: ...610 Preliminary User s Manual U15839EE1V0UM00 ...
Page 612: ......