NEC PD703114 User Manual page 201

V850e/ia2 32-bit single-chip microcontrollers
Table of Contents

Advertisement

(2) Dead-time timers 00 to 02, 10 to 12 (DTM00 to DTM02, DTM10 to DTM12)
DTMn0 to DTMn2 are dedicated 12-bit down timers that generate dead time, which is effective for inverter
control applications. DTMn0 to DTMn2 operate as one-shot timers.
Counting by a dead-time timer is enabled or disabled by the TM0CEDn bit of timer control register 0n
(TMC0n) and cannot be controlled by software.
hardware.
A dead-time timer starts counting down when the value of dead-time timer reload register n (DTRRn) is
transferred in synchronization with the compare match timing of CM0n0 to CM0n2.
When the value of a dead-time timer changes from 000H to FFFH, the dead-time timer generates an
underflow signal, and the timer stops at the value FFFH.
If the value of a dead-time timer matches the value of the corresponding compare register before underflow of
the dead-time timer takes place, the value of DTRRn is transferred to the dead-time timer again, and the
timer starts counting down.
The count clock of the dead-time timer is fixed to the base clock (f
of DTRRn + 1)/base clock (f
If TM0n operates in PWM mode 0 or PWM mode 1 with the dead-time timer count operation disabled, an
inverted signal without dead time is output to TO0n0 and TO0n1, TO0n2 and TO0n3, and TO0n4 and TO0n5.
(3) Dead-time timer reload registers 0, 1 (DTRR0, DTRR1)
The DTRRn register is a 12-bit register used to set the values of the three dead-time timers (DTMn0 to
DTMn2 registers) (n = 0, 1). However, a value is transferred from the DTRRn register to each dead-time
register independently.
DTRRn can be read/written in 16-bit units. All 0s are read for the higher 4 bits when the DTRRn register is
read accessed in 16 bits.
15
14
13
DTRR0
0
0
0
15
14
13
DTRR1
0
0
0
Cautions 1. Changing the value of the DTRRn register during TM0n operation (TM0CEn bit of TMC0n
register = 1) is prohibited.
2. Be sure to write 0 to the higher 4 bits.
(4) Compare registers 000 to 002, 010 to 012 (CM000 to CM002, CM010 to CM012)
CM0n0 to CM0n2 are 16-bit registers that always compare their own values with the value of TM0n. If the
value of a compare register matches the value of TM0n, the compare register outputs a trigger signal, and
changes the contents of the flip-flop (F/F) connected to the compare register. Each of CM0n0 to CM0n2 is
provided with a buffer register (BFCMn0 to BFCMn2), so that the contents of the buffer are transferred to
CM0n0 to CM0n2 at the next transfer timing. Transfer is enabled or disabled by the BFTEN bit of the TMC0n
register.
If CM010 to CM012 of timer 01 match TM01, the INTCM010 to INTCM012 interrupts occur.
CHAPTER 9 TIMER/COUNTER FUNCTION
).
CLK
12
11
10
9
8
7
0
12
11
10
9
8
7
0
User's Manual U15195EJ5V0UD
Dead-time timer count start and stop is controlled by
), and the dead-time width is (set value
CLK
6
5
4
3
2
1
6
5
4
3
2
1
0
Address
After reset
FFFFF570H
0FFFH
0
Address
After reset
FFFFF5B0H
0FFFH
201

Advertisement

Table of Contents
loading

Table of Contents