CHAPTER 9 TIMER/COUNTER FUNCTION
196
User’s Manual U15195EJ5V0UD
9.1.2 Function overview (timer 0)
•
16-bit timer (TM0n) for 3-phase PWM inverter control: 2 channels
•
Compare registers: 6 registers
×
2 channels
•
12-bit dead-time timers (DTMn0 to DTMn2): 3 timers
×
2 channels
•
Count clock division selectable by prescaler (set the frequency of the count clock to 40 MHz or less)
•
Base clock (f
CLK
): 2 types (set f
CLK
to 40 MHz or less)
f
XX
and f
XX
/2 can be selected
•
Prescaler
division
ratio
The following division ratios can be selected according to the base clock (f
CLK
).
Base Clock (f
CLK
)
Division Ratio
f
XX
Selected
f
XX
/2 Selected
1/1 f
XX
f
XX
/2
1/2 f
XX
/2 f
XX
/4
1/4 f
XX
/4 f
XX
/8
1/8 f
XX
/8 f
XX
/16
1/16 f
XX
/16 f
XX
/32
1/32 f
XX
/32 f
XX
/64
•
Interrupt request sources
(a) Compare-match interrupt request: 9 types
•
Interrupt request signal INTCM0n3 generated by match of TM0n register count value and compare
register CM0n3
•
Interrupt request signals INTCM010 to INTCM012, INTCM0n4, and INTCM0n5 generated by match of
TM0n register count value and compare registers CM010 to CM012, CM0n4, and CM0n5
Setting Condition
INTCM010 to INTCM012,
INTCM0n4, INTCM0n5 Signal
Occurrence Status
CM010 to CM012, CM0n4, CM0n5
≤
CM0n3
Occurs
CM010 to CM012, CM0n4, CM0n5 = 0000H
Occurs
CM010 to CM012, CM0n4, CM0n5 > CM0n3
Does not occur
(b) Underflow interrupt request: 2 types
•
Interrupt request signal INTTM0n generated by underflow of the TM0n register
•
External pulse output (TO0n0 to TO0n5): 6
×
2 channels
Remark
f
XX
: Internal system clock
n = 0, 1
Содержание PD703114
Страница 2: ...2 User s Manual U15195EJ5V0UD MEMO ...