mc68hc912bc32 Freescale Semiconductor, Inc, mc68hc912bc32 Datasheet - Page 132

no-image

mc68hc912bc32

Manufacturer Part Number
mc68hc912bc32
Description
M68hc12 Microcontrollers
Manufacturer
Freescale Semiconductor, Inc
Datasheet
Pulse-Width Modulator (PWM)
11.2.7 PWM Scale Register 1
Read: Anytime
Write: Anytime
A write causes the scaler counter PWSCNT1 to load the PWSCAL1 value unless it is in special mode with
DISCAL = 1 in the PWTST register.
PWM channels 2 and 3 can select clock S1 (scaled) as its input clock by setting the control bit PCLK2
and PCLK3 respectively. Clock S1 is generated by dividing clock B by the value in the PWSCAL1 register
plus one and dividing again by two. When PWSCAL1 = $FF, clock B is divided by 256 then divided by two
to generate clock S1.
11.2.8 PWM Scale Counter 1 Value
Read: Anytime
PWSCNT1 is a down-counter that, upon reaching $00, loads the value of PWSCAL1.
132
Address: $0046
Address: $0047
Reset:
Reset:
Read:
Read:
Write:
Write:
Figure 11-11. PWM Scale Counter 1 Value (PWSCNT1)
Bit 7
Bit 7
Bit 7
Bit 7
0
0
Figure 11-10. PWM Scale Register 1 (PWSCAL1)
= Unimplemented
Bit 6
Bit 6
6
0
6
0
M68HC12B Family Data Sheet, Rev. 9.1
Bit 5
Bit 5
5
0
5
0
Bit 4
Bit 4
4
0
4
0
Bit 3
Bit 3
3
0
3
0
Bit 2
Bit 2
2
0
2
0
Bit 1
Bit 1
1
0
1
0
Freescale Semiconductor
Bit 0
Bit 0
Bit 0
Bit 0
0
0

Related parts for mc68hc912bc32