English
Language : 

MC9S12T64 Datasheet, PDF (350/608 Pages) Motorola, Inc – Specification
Freescale Semiconductor, Inc.
Pulse Width Modulator (PWM8B8C)
PWM Channel
Duty Registers
(PWMDTYx)
Where: x=0,1,2,3,4,5,6,7
Address Offset: $00BC, $00BD, $00BE,$00BF, $00C0, $00C1, $00C2, $00C3
Bit 7
6
5
4
3
2
1
Bit 0
Read:
Bit 7
6
5
4
3
2
1
Bit 0
Write:
Reset:
1
1
1
1
1
1
1
1
Read: anytime
Write: anytime
There is a dedicated duty register for each channel. The value in this
register determines the duty of the associated PWM channel. The duty
value is compared to the counter and if it is equal to the counter value a
match occurs and the output changes state.
The duty registers for each channel are double buffered so that if they
change while the channel is enabled, the change will NOT take effect
until one of the following occurs:
• The effective period ends
• The counter is written (counter resets to $00)
• The channel is disabled
In this way, the output of the PWM will always be either the old duty
waveform or the new duty waveform, not some variation in between. If
the channel is not enabled, then writes to the duty register will go directly
to the latches as well as the buffer.
NOTE:
Reads of this register return the most recent value written. Reads do not
necessarily return the value of the currently active duty due to the double
buffering scheme.
Reference PWM Period and Duty for more information.
NOTE:
Depending on the polarity bit, the duty registers will contain the count of
either the high time or the low time. If the polarity bit is one, the output
starts high and then goes low when the duty count is reached, so the
MC9S12T64Revision 1.1.1
350
Pulse Width Modulator (PWM8B8C)
For More Information On This Product,
Go to: www.freescale.com
MOTOROLA