English
Language : 

MC9S12HY64 Datasheet, PDF (694/792 Pages) Freescale Semiconductor, Inc – S12 Microcontrollers
Motor Controller (MC10B8CV1)
19.3.2.4 Motor Controller Channel Control Registers
Each PWM channel has one associated control register to control output delay, PWM alignment, and
output mode. The registers are named MCCC0... MCCC7. In the following, MCCC0 is described as a
reference for all eight registers.
Offset Module Base + 0x0010 . . . 0x0017
7
6
5
4
3
2
1
0
R
0
MCOM1
MCOM0
MCAM1
MCAM0
W
0
CD1
CD0
Reset
0
0
0
0
0
0
0
0
= Unimplemented or Reserved
Figure 19-7. Motor Controller Control Register Channel 0–7 (MCCC0–MCCC7)
Table 19-6. MCCC0–MCCC7 Field Descriptions
Field
Description
7:6
Output Mode — MCOM1, MCOM0 control the PWM channel’s output mode. See Table 19-7.
MCOM[1:0]
5:4
MCAM[1:0]
PWM Channel Alignment Mode — MCAM1, MCAM0 control the PWM channel’s PWM alignment mode and
operation. See Table 19-8.
MCAM[1:0] and MCOM[1:0] are double buffered. The values used for the generation of the output waveform
will be copied to the working registers either at once (if all PWM channels are disabled or MCPER is set to 0)
or if a timer counter overflow occurs. Reads of the register return the most recent written value, which are not
necessarily the currently active values.
1:0
PWM Channel Delay — Each PWM channel can be individually delayed by a programmable number of PWM
CD[1:0]
timer counter clocks. The delay will be n/fTC. See Table 19-9.
MCOM[1:0]
00
01
10
11
MCAM[1:0]
00
01
10
11
Table 19-7. Output Mode
Output Mode
Half H-bridge mode, PWM on MnCxM, MnCxP is released
Half H-bridge mode, PWM on MnCxP, MnCxM is released
Full H-bridge mode
Dual full H-bridge mode
Table 19-8. PWM Alignment Mode
PWM Alignment Mode
Channel disabled
Left aligned
Right aligned
Center aligned
MC9S12HY/HA-Family Reference Manual, Rev. 1.04
694
Freescale Semiconductor