Chapter 7
16-bit Timers
VII - 56
Dead Time IGBT Output
(4)
Select the external interrupt 1 (IRQ1) input as
the generation source of the IGBT trigger by
T7ICT1-0 flag of the TM7MD2 register.
(5)
Set the REDG1 flag of the external interrupt 1
control register (IRQ1ICR) to "1" to select the
rising edge as a Interrupt generation valid
edge.
(6)
Set the T7ICEDG flag of the TM7MD2
register to "1" to select the IGBT trigger event
as the specified edge of the external interrupt
signal.
(7)
Set the TM7EDG flag of the TM7MD3 register
to "1" to select falling edge standard as the
dead time edge.
(8)
Set the interrupt level by the IRQ1LV1-0 flag of
the IRQ1ICR register.
If any interrupt request flag is already set, clear
it.
(9)
Set the IRQ1IE flag of the IRQ1ICR register to
"1" to enable the interrupt.
(10) Select fosc as a clock source by the TM7CK1-
0 flag of the TM7MD1 register. Also, select 1/1
dividing as a count clock source by the
TM7PS1-0 flag.
(11) Set the IGBT output cycle to the timer 7 preset
register 1 (TM7PR1). To set 200 Hz by
dividing 8.0 MHz, set as;
40000 - 1 = 39999 (x'9C3F')
At the same time, the same value is loaded to
the timer 7 compare register 1 (TM7OC1), and
the timer 7 binary counter (TM7BC) is
initialized to x'0000'.
Setup Procedure
(4)
Select the IGBT trigger source
TM7MD2 (x'3F79')
bp1-0
: T7ICT1-0 = 00
(5)
Select the Interrupt generation valid
edge
IRQ1ICR (x'3FE3')
bp5
: REDG1
= 1
(6)
Select the IGBT trigger
generation edge
TM7MD2 (x'3F79')
bp7
: T7ICEDG = 1
(7)
Set the dead time edge.
TM7MD3 (x'3F6C')
bp4
: TM7EDG = 0
(8)
Set the interruput level.
IRQ1ICR (x'3FE3')
bp7-6
: IRQ1LV1-0 = 10
(9)
Enable the interrupt.
IRQ1ICR (x'3FE3')
bp1
: IRQ1IE
= 1
(10) Select the count clock source.
TM7MD1 (x'3F78')
bp1-0
: TM7CK1-0 = 00
bp3-2
: TM7PS1-0 = 00
(11) Set the IGBT output cycle.
TM7PR1 (x'3F75',x'3F74') = x'9C3F'
Description