mc68hc912bc32 Freescale Semiconductor, Inc, mc68hc912bc32 Datasheet - Page 131

no-image

mc68hc912bc32

Manufacturer Part Number
mc68hc912bc32
Description
M68hc12 Microcontrollers
Manufacturer
Freescale Semiconductor, Inc
Datasheet
11.2.4 PWM Prescale Counter
Read: Anytime
Write: Only in special mode (SMOD = 1)
PWPRES is a free-running 7-bit counter.
11.2.5 PWM Scale Register 0
Read: Anytime
Write: Anytime
A write causes the scaler counter PWSCNT0 to load the PWSCAL0 value unless it is in special mode with
DISCAL = 1 in the PWTST register.
PWM channels 0 and 1 can select clock S0 (scaled) as its input clock by setting the control bit PCLK0
and PCLK1 respectively. Clock S0 is generated by dividing clock A by the value in the PWSCAL0 register
plus one and dividing again by two. When PWSCAL0 = $FF, clock A is divided by 256 then divided by two
to generate clock S0.
11.2.6 PWM Scale Counter 0 Value
Read: Anytime
PWSCNT0 is a down-counter that, upon reaching $00, loads the value of PWSCAL0.
Freescale Semiconductor
Address: $0043
Address: $0044
Address: $0045
Reset:
Reset:
Reset:
Read:
Read:
Read:
Write:
Write:
Write:
Figure 11-9. PWM Scale Counter Register 0 (PWSCNT0)
Bit 7
Bit 7
Bit 7
Bit 7
Bit 7
0
0
0
0
Figure 11-8. PWM Scale Register 0 (PWSCAL0)
Figure 11-7. PWM Prescale Counter (PWPRES)
= Unimplemented
= Unimplemented
Bit 6
Bit 6
Bit 6
6
0
6
0
6
0
M68HC12B Family Data Sheet, Rev. 9.1
Bit 5
Bit 5
Bit 5
5
0
5
0
5
0
Bit 4
Bit 4
Bit 4
4
0
4
0
4
0
Bit 3
Bit 3
Bit 3
3
0
3
0
3
0
Bit 2
Bit 2
Bit 2
2
0
2
0
2
0
Bit 1
Bit 1
Bit 1
1
0
1
0
1
0
PWM Register Descriptions
Bit 0
Bit 0
Bit 0
Bit 0
Bit 0
Bit 0
0
0
0
131

Related parts for mc68hc912bc32