Chapter 7
16-bit Timers
VII - 58
Dead Time IGBT Output
(12) Set the "H" period of the IGBT output to the
timer 7 preset register 2 (TM7PR2). To set
1/4 duty of 40000 dividing, set as;
40000 / 4 = 10000 (x'2710')
At the same time, the same value is loaded to
the timer 7 compare register 2 (TM7OC2).
(13) Set the dead time value to the timer 7 dead
time preset register (TM7DEAPR ).
The set value should be 80 (x'50') to obtain
0.02 ms dead time.
(14) Set the P1OMD4 and P1OMD5 flag of the port
1 output mode register (P1OMD) to "1" to set
the P14 and P15 pins as the special function
pins. Set the P1DIR4 and P1DIR5 flag of the
port 1 direction control register (P1DIR) to "1"
to set output mode.
Add pull-up / pull-down resistor, if necessary.
(15) Set the TM7EN flag of the TM7MD1 register to
"1" to start timer 7.
Setup Procedure
(12) Set the "H" period of the IGBT
output.
TM7PR2 (x'3F7D',x'3F7C')= x'2710'
(13) Set the dead time.
TM7DEADPR (x'3F7E')
= x'50'
(14) Set the special function pin to output
mode.
P1OMD (x'3F2F')
bp4
: P1OMD4
= 1
bp5
: P1OMD5
= 1
P1DIR (x'3F31')
bp4
: P1DIR4
= 1
bp5
: P1DIR5
= 1
(15) Start the timer operation.
TM7MD1 (x'3F78')
bp4
: TM7EN
= 1
Description
[
Chapter 4
I/O Ports ]
*Set P14, P15 as special function pins
after setup (11) to (13).
TM7BC counts up from x'0000'. The IGBT source waveform outputs "H" until TM7BC matches the
set value of the TM7OC2 register. Once they matches, it outputs "L". After that, TM7BC continues to
count up. Once TM7BC value matches the TM7OC1 register value to be cleared, the IGBT source
waveform outputs "H" and TM7BC counts up from x'0000' again. TM7IO pin outputs IGBT source
waveform of one count clock delay . TM8IO pin outputs inverted IGBT source waveform of one
count clock delay.
Set as TM7OC2 value
≤ TM7OC1 value.
When TM7OC2 value > TM7OC1 value, the IGBT output waveform is fixed as
P14 = "H", P15 = "L" at falling edge standard.
.
To output the IGBT output waveform from the large current pin TM7O, set the special function pin to
output mode as follows (reffer ro setup example(2)). Set each of P5OMD1 flag and P5OMD3 flag of
the port 5 output mode register (P5OMD) to "1" to select P51 pin and P53 pin as special function
pins. Set P5DIR1and P5DIR3 flag of the port 5 direction control register to "1" to set output mode.