Setup Example - Panasonic MN101L Series User Manual

Lsi
Table of Contents

Advertisement

Chapter 9
16-bit Timer
9.9.2

Setup Example

Standard IGBT Output Setup Example
Here is an example that, using Timer 7 with HCLK (f
waveform with the 1/4 duty cycle and 152.59 Hz is output from TM7IOA output pin using IRQ0 input signal as a
trigger.
The setup procedure and its description are shown below.
Step
Setting
1
Disable the timer counter
2
Select the IGBT output pin
3
Set the timer mode register
4
5
6
7
8
9
Set the "High" period of IGBT
10
Set the external interrupt
11
12
Enable the timer counter
IX - 50
16-bit Standard IGBT Output (with Variable Duty)
IGBT trigger
TM7IO output
Figure:9.9.4 Output Waveform of TM7IO output pin
Register
TM7MD.TM7EN = 0
TMIOEN1.TM7OEN = 1
P0DIR.P0DIR4 = 1
TM7MD3.T7IGBTEN = 1
TM7MD2.TM7PWM = 1
TM7MD1.TM7CL = 0
TM7MD2.TM7BCR = 0
TM7MD3.T7IGBT1-0 = 01
TM7MD3.T7IGBTTR = 1
TM7MD4.T7NODED = 1
TM7MD1.TM7CK1-0 = 00
TM7MD1.TM7PS1-0 = 00
TM7PR1 = 0x3FFF
IRQISEL0.IRQ0SEL = 0
IRQIEN.IRQI0EN = 1
TM7MD1.TM7EN = 1
= 10 MHz) as the clock source, the IGBT output
HCLK
152.59 Hz
Disable the timer count operation.
Select the IGBT output pin.
[Chapter 7 I/O Port]
Enable the IGBT output.
Select the TM7BC clear source.
Select the IGBT trigger source.
Select the IGBT trigger level.
Select "No" as the dead time.
Select HCLK as the count clock source.
Set the "High" period of IGBT output.
Setup value: 65536 / 4 - 1 = 16383 (0x3FFF)
Enable the external interrupt pin.
Enable the timer count operation.
Description

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mn101lr05dMn101lr04dMn101lr03dMn101lr02d

Table of Contents