|
MC9S12P64VLHR Datasheet, PDF (351/566 Pages) Freescale Semiconductor, Inc – MC9S12P128 Reference Manual | |||
|
◁ |
Pulse-Width Modulator (PWM8B6CV1) Block Description
Module Base + 0x001D
7
6
5
4
3
2
1
0
R
Bit 7
6
5
4
3
2
1
Bit 0
W
Reset
1
1
1
1
1
1
1
1
Figure 10-32. PWM Channel Duty Registers (PWMDTY5)
Read: anytime
Write: anytime
10.3.2.15 PWM Shutdown Register (PWMSDN)
The PWMSDN register provides for the shutdown functionality of the PWM module in the emergency
cases.
Module Base + 0x00E
R
W
Reset
7
PWMIF
0
6
5
4
3
2
0
0
PWM5IN
PWMIE
PWMLVL
PWMRSTRT
0
0
0
0
0
= Unimplemented or Reserved
Figure 10-33. PWM Shutdown Register (PWMSDN)
Read: anytime
Write: anytime
Table 10-10. PWMSDN Field Descriptions
1
0
PWM5INL PWM5ENA
0
0
Field
Description
7
PWMIF
PWM Interrupt Flag â Any change from passive to asserted (active) state or from active to passive state will be
ï¬agged by setting the PWMIF ï¬ag = 1. The ï¬ag is cleared by writing a logic 1 to it. Writing a 0 has no effect.
0 No change on PWM5IN input.
1 Change on PWM5IN input
6
PWMIE
PWM Interrupt Enable â If interrupt is enabled an interrupt to the CPU is asserted.
0 PWM interrupt is disabled.
1 PWM interrupt is enabled.
5
PWM Restart â The PWM can only be restarted if the PWM channel input 5 is deasserted. After writing a logic 1
PWMRSTRT to the PWMRSTRT bit (trigger event) the PWM channels start running after the corresponding counter passes
next âcounter = 0â phase.
Also, if the PWM5ENA bit is reset to 0, the PWM do not start before the counter passes 0x0000.
The bit is always read as 0.
4
PWMLVL
PWM Shutdown Output Level â If active level as deï¬ned by the PWM5IN input, gets asserted all enabled PWM
channels are immediately driven to the level deï¬ned by PWMLVL.
0 PWM outputs are forced to 0
1 PWM outputs are forced to 1.
S12P-Family Reference Manual, Rev. 1.13
Freescale Semiconductor
351
|
▷ |