English
Language : 

PXD20RM Datasheet, PDF (1431/1628 Pages) Freescale Semiconductor, Inc – PXD20 Microcontroller
41.4.2 PWM Duty Cycle
The PWM duty cycle for the SMC channel x can be determined by dividing the decimal representation of
the bits MCDCx[DUTY] by the decimal representation of the bits MCPER[PER] and multiplying the
result by 100% as shown in Equation 41-1.
Effective PWM Channel X % Duty Cycle
=
---D----U-----T----Y-----
MCPER

100%
Eqn. 41-1
NOTE
x = PWM Channel Number = 0, 1, 2, 3 ... 11. This equation is only valid if
MCDCx[DUTY] <= MCPER[PER] and MCPER[PER] is not equal to 0.
Whenever MCDCx[DUTY] >= MCPER[PER], a constant low level (MCCTL1[RECIRC] = 0) or high
level (MCCTL1[RECIRC] = 1) will be output.
41.4.3 Motor Controller Counter Clock Source
Figure 41-32 shows how the PWM motor controller timer counter clock source is selected.
Clock
Generator
CLK
Peripheral
Bus
Clock fBUS
Clocks and
Reset
Generator
Module
Motor Controller
Timer
Counter Clock
Prescaler Select
MPPRE0, MPPRE1
1
 Motor Controller Timer
1/4
1/8
Counter Clock fTC
Motor Controller Timer
Counter Prescaler
11-Bit Motor Controller
Timer Counter
Figure 41-32. Motor Controller Counter Clock Selection
The peripheral bus clock is the source for the motor controller counter prescaler. The motor controller
counter clock rate, fTC, is set by selecting the appropriate prescaler value. The prescaler is selected with
the MCCTL0[MCPRE] bits. The SMC channel frequency of operation can be calculated using
Equation 41-2 if MCCTL0[DITH] = 0.
Motor Channel Frequency (Hz)
=
-------------f--T--C--------------
MCPER  M
Eqn. 41-2
The SMC channel frequency of operation can be calculated using Equation 41-3 if MCCTL0[DITH] = 1.
Motor Channel Frequency (Hz)
=
----------------f---T--C-----------------
MCPER  M  2
Eqn. 41-3
Freescale Semiconductor
PXD20 Microcontroller Reference Manual, Rev. 1
Preliminary—Subject to Change Without Notice
41-31