Pulse-Width Modulator (S12PWM8B8CV2)
MC9S12VRP Family Reference Manual Rev. 1.3
NXP Semiconductors
279
The clock source of each PWM channel is determined by PCLKx bits in PWMCLK and PCLKABx bits
in PWMCLKAB (see
Section 9.3.2.7, “PWM Clock A/B Select Register (PWMCLKAB)
). For Channel
0, 1, 4, 5, the selection is shown in
; For Channel 2, 3, 6, 7, the selection is shown in
Table 9-5. PWM Channel 0, 1, 4, 5 Clock Source Selection
Table 9-6. PWM Channel 2, 3, 6, 7 Clock Source Selection
9.3.2.4
PWM Prescale Clock Select Register (PWMPRCLK)
This register selects the prescale clock source for clocks A and B independently.
Read: Anytime
Write: Anytime
NOTE
PCKB2–0 and PCKA2–0 register bits can be written anytime. If the clock
pre-scale is changed while a PWM signal is being generated, a truncated or
stretched pulse can occur during the transition.
Table 9-4. PWMCLK Field Descriptions
Note:
Bits related to available channels have functional significance. Writing to unavailable bits has no effect. Read from
unavailable bits return a zero
Field
Description
7-0
PCLK[7:0]
Pulse Width Channel 7-0 Clock Select
0 Clock A or B is the clock source for PWM channel 7-0, as shown in
.
1 Clock SA or SB is the clock source for PWM channel 7-0, as shown in
.
PCLKAB[0,1,4,5] PCLK[0,1,4,5]
Clock Source Selection
0
0
Clock A
0
1
Clock SA
1
0
Clock B
1
1
Clock SB
PCLKAB[2,3,6,7] PCLK[2,3,6,7]
Clock Source Selection
0
0
Clock B
0
1
Clock SB
1
0
Clock A
1
1
Clock SA
7
6
5
4
3
2
1
0
R
0
PCKB2
PCKB1
PCKB0
0
PCKA2
PCKA1
PCKA0
W
Reset
0
0
0
0
0
0
0
0
= Unimplemented or Reserved
Figure 9-6. PWM Prescale Clock Select Register (PWMPRCLK)
Summary of Contents for MC9S12VRP64
Page 16: ...MC9S12VRP Family Reference Manual Rev 1 3 16 NXP Semiconductors ...
Page 46: ...Device Overview S12VRP Series MC9S12VRP Family Reference Manual Rev 1 3 46 NXP Semiconductors ...
Page 236: ...S12S Debug Module S12DBGV2 MC9S12VRP Family Reference Manual Rev 1 3 236 NXP Semiconductors ...
Page 244: ...Interrupt Module S12SINTV1 MC9S12VRP Family Reference Manual Rev 1 3 244 NXP Semiconductors ...
Page 358: ...Timer Module TIM16B2CV3 MC9S12VRP Family Reference Manual Rev 1 3 358 NXP Semiconductors ...
Page 436: ...Supply Voltage Sensor BATSV2 MC9S12VRP Family Reference Manual Rev 1 3 436 NXP Semiconductors ...
Page 528: ...NVM Electrical Parameters MC9S12VRP Family Reference Manual Rev 1 3 528 NXP Semiconductors ...
Page 530: ...Package Information MC9S12VRP Family Reference Manual Rev 1 3 530 NXP Semiconductors ...
Page 531: ...Package Information MC9S12VRP Family Reference Manual Rev 1 3 NXP Semiconductors 531 ...
Page 532: ...Package Information MC9S12VRP Family Reference Manual Rev 1 3 532 NXP Semiconductors ...