Datasheet

Chapter 11 Pulse Width Modulator with Fault Protection (PMF15B6CV2)
MC9S12E128 Data Sheet, Rev. 1.07
Freescale Semiconductor 351
11.3.2.27 PMF Counter B Register (PMFCNTB)
Read anytime and writes have no effect.
11.3.2.28 PMF Counter Modulo B Register (PMFMODB)
Read anytime and write only if MTG is set.
Table 11-35. PWM Prescaler B
PRSCB PWM Clock Frequency
00 f
bus
01 f
bus
/2
10 f
bus
/4
11 f
bus
/8
Module Base + 0x002A
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
R 0 PMFCNTB
W
Reset 0 0 0 0 0 0 0 0 0 0000000
= Unimplemented or Reserved
Figure 11-33. PMF Counter B Register (PMFCNTB)
Table 11-36. PMFCNTB Field Descriptions
Field Description
14–0
PMFCNTB
PMF Counter B — This register displays the state of the 15-bit PWM B counter.
Module Base + 0x002C
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
R0
PMFMODB
W
Reset 0 0 0 0 0 0 0 0 0 0000000
= Unimplemented or Reserved
Figure 11-34. PMF Counter Modulo B Register (PMFMODB)
Table 11-37. PMFMODB Field Descriptions
Field Description
14–0
PMFMODB
PMF Counter Modulo B — The 15-bit unsigned value written to this register is the PWM period in PWM clock
periods. Do not write a modulus value of zero.
Note: The PWM counter modulo register is buffered. The value written does not take effect until the LDOKB bit
is set and the next PWM load cycle begins. Reading PMFMODB reads the value in the buffer. It is not
necessarily the value the PWM generator B is currently using.