English
Language : 

MC9S12HY64 Datasheet, PDF (710/792 Pages) Freescale Semiconductor, Inc – S12 Microcontrollers
Motor Controller (MC10B8CV1)
The motor controller channel frequency of operation can be calculated using the following formula if
DITH = 1:
Motor Channel Frequency (Hz) = M------C-----P---E--f--R-T--C---⋅---M-------⁄--2--
NOTE
Both equations are only valid if MCPER is not equal to 0. M = 1 for left or
right aligned mode, M = 2 for center aligned mode.
Table 19-14 shows examples of the motor controller channel frequencies that can be generated based on
different peripheral bus clock frequencies and the prescaler value.
Table 19-14. Motor Controller Channel Frequencies (Hz),
MCPER = 256, DITH = 0, MCAM = 10, 01
Prescaler
1
1/2
1/4
1/8
16 MHz
62500
31250
15625
7813
Peripheral Bus Clock Frequency
10 MHz
39063
19531
9766
4883
8 MHz
31250
15625
7813
3906
5 MHz
19531
9766
4883
2441
4 MHz
15625
7813
3906
1953
NOTE
Due to the selectable slew rate control of the outputs, clipping may occur on
short output pulses.
19.4.4 Output Switching Delay
In order to prevent large peak current draw from the motor power supply, selectable delays can be used to
stagger the high logic level to low logic level transitions on the motor controller outputs. The timing delay,
td, is determined by the CD[1:0] bits in the corresponding channel control register (MCMCx) and is
selectable between 0, 1, 2, or 3 motor controller timer counter clock cycles.
NOTE
A PWM channel gets disabled at the next timer counter overflow without
notice of the switching delay.
MC9S12HY/HA-Family Reference Manual, Rev. 1.04
710
Freescale Semiconductor