Setup Example - Panasonic MN101L Series User Manual

Lsi
Table of Contents

Advertisement

Chapter 9
16-bit Timer
9.11.2

Setup Example

Setup Example of IGBT Output with Dead Time (Timer 7)
Here is an example that, using Timer 7 with HCLK (f
rupt 0 input signal is generated, the IGBT output waveform having a duty cycle of 1/4 and a frequency of 200 Hz
is output from the TM7IO and TM8IO output pins with a dead time of 0.01 ms or 0.02 ms added.
The setup procedure and its description are shown below.
Step
Setting
1
Disable the timer counter
2
Set the timer mode register
3
4
5
6
Set the external interrupt
7
Set the interrupt level
8
Enable the interrupt
9
Set the timer mode register
10
Set the IGBT output cycle
11
Set the "High" period of IGBT
12
Set the dead time
IX - 62
IGBT Output with Dead Time
IGBT trigger
(IRQ0)
IGBT waveform
TM7IO output
waveform
TM8IO output
waveform
0.01 ms
Figure:9.11.3 Output Waveform of TM7IO and TM8IO
Register
TM7MD.TM7EN = 0
TM7MD2.TM7BCR = 1
TM7MD2.T7PWMSL = 1
TM7MD3.T7IGBT1-0 = 01
TM7MD3.T7IGBTTR = 0
TM7MD2.T7ICEDG0 = 1
TM7MD3.T7IGBTDT = 0
IRQISEL0.IRQ0SEL = 0
IRQIEN.IRQI0EN = 1
IRQ0ICR.IRQ0LV1-0
IRQ0ICR.IRQ0IE = 1
TM7MD1.TM7CK1-0 = 00
TM7MD1.TM7PS1-0 = 00
TM7PR1 = 0x9C3F
TM7PR2 = 0x270F
TM7DPR1 = 0x4F
TM7DPR2 = 0x9F
= 8 MHz) as a clock source, while the external inter-
HCLK
0.02 ms
0.01 ms
0.02 ms
Disable the timer count operation.
Select the TM7BC clear source and the duty determination
source of IGBT output.
Select the IGBT trigger source.
Select the IGBT trigger level and IGBT trigger edge.
Select the dead time input timing.
Enable the external interrupt pin.
Refer to [3.1.3 Maskable Interrupt Control Register Setup].
Select HCLK as the count clock source.
Set the IGBT output cycle.
Setup value: 40000 - 1 = 39999 (0x9C3F)
Set the "High" period of IGBT output.
Setup value: 40000 / 4 - 1 = 9999 (0x270F)
The time from the falling edge of TM7IO to the rising edge of
TM8IO: 0.02 ms (0x4F)
The time from the falling edge of TM8IO to the rising edge of
TM7IO: 0.01 ms (0x9F)
0.01 ms
200 Hz
Description

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mn101lr05dMn101lr04dMn101lr03dMn101lr02d

Table of Contents