mc68hc912bc32 Freescale Semiconductor, Inc, mc68hc912bc32 Datasheet - Page 134

no-image

mc68hc912bc32

Manufacturer Part Number
mc68hc912bc32
Description
M68hc12 Microcontrollers
Manufacturer
Freescale Semiconductor, Inc
Datasheet
Pulse-Width Modulator (PWM)
11.2.10 PWM Channel Period Registers 0–3
Read: Anytime
Write: Anytime
The value in the period register determines the period of the associated PWM channel. If written while the
channel is enabled, the new value takes effect when the existing period terminates, forcing the counter to
reset. The new period is then latched and is used until a new period value is written. Reading this register
returns the most recent value written. To start a new period immediately, write the new period value and
then write the counter, forcing a new period to start with the new period value.
134
Period = Channel-Clock-Period × (PWPER + 1)(CENTR = 0)
Period = Channel-Clock-Period × PWPER × 2(CENTR = 1)
Address: $004C
Address: $004D
Address: $004E
Address: $004F
Reset:
Reset:
Reset:
Reset:
Read:
Read:
Read:
Read:
Write:
Write:
Write:
Write:
Figure 11-16. PWM Channel Period Register 0 (PWPER0)
Figure 11-17. PWM Channel Period Register 1 (PWPER1)
Figure 11-18. PWM Channel Period Register 2 (PWPER2)
Figure 11-19. PWM Channel Period Register 3 (PWPER3)
Bit 7
Bit 7
Bit 7
Bit 7
Bit 7
Bit 7
Bit 7
Bit 7
1
1
1
1
Bit 6
Bit 6
Bit 6
Bit 6
6
1
6
1
6
1
6
1
M68HC12B Family Data Sheet, Rev. 9.1
Bit 5
Bit 5
Bit 5
Bit 5
5
1
5
1
5
1
5
1
Bit 4
Bit 4
Bit 4
Bit 4
4
1
4
1
4
1
4
1
Bit 3
Bit 3
Bit 3
Bit 3
3
1
3
1
3
1
3
1
Bit 2
Bit 2
Bit 2
Bit 2
2
1
2
1
2
1
2
1
Bit 1
Bit 1
Bit 1
Bit 1
1
1
1
1
1
1
1
1
Freescale Semiconductor
Bit 0
Bit 0
Bit 0
Bit 0
Bit 0
Bit 0
Bit 0
Bit 0
1
1
1
1

Related parts for mc68hc912bc32