mc68hc912d60c Freescale Semiconductor, Inc, mc68hc912d60c Datasheet - Page 219

no-image

mc68hc912d60c

Manufacturer Part Number
mc68hc912d60c
Description
Hc12 Microcontrollers
Manufacturer
Freescale Semiconductor, Inc
Datasheet
PWCTL — PWM Control Register
MC68HC912D60A — Rev. 3.1
Freescale Semiconductor
RESET:
Bit 7
0
0
6
0
0
The value in each duty register determines the duty of the associated
PWM channel. When the duty value is equal to the counter value, the
output changes state. If the register is written while the channel is
enabled, the new value is held in a buffer until the counter rolls over or
the channel is disabled. Reading this register returns the most recent
value written.
If the duty register is greater than or equal to the value in the period
register, there will be no duty change in state. If the duty register is set
to $FF the output will always be in the state which would normally be the
state opposite the PPOLx value.
Left-Aligned-Output Mode (CENTR = 0):
Duty cycle = [(PWDTYx + 1) / (PWPERx + 1)] × 100%
Duty cycle = [(PWPERx−PWDTYx)/(PWPERx+1)]×100% (PPOLx = 0)
Center-Aligned-Output Mode (CENTR = 1):
Duty cycle = [(PWPERx−PWDTYx)/PWPERx]×100%
Duty cycle = [PWDTYx / PWPERx] × 100%
Read and write anytime.
PSWAI — PWM Halts while in Wait Mode
CENTR — Center-Aligned Output Mode
To avoid irregularities in the PWM output mode, write the CENTR bit
only when PWM channels are disabled.
0 = Allows PWM main clock generator to continue while in wait
1 = Halt PWM main clock generator when the part is in wait mode.
0 = PWM channels operate in left-aligned output mode
1 = PWM channels operate in center-aligned output mode
5
0
0
mode.
Pulse Width Modulator
PSWAI
4
0
CENTR
3
0
RDPP
2
0
PUPP
1
0
PWM Register Description
Pulse Width Modulator
PSBCK
Bit 0
0
(PPOLx = 1)
(PPOLx = 0)
(PPOLx = 1)
Technical Data
$0054
219

Related parts for mc68hc912d60c