Stepper Motor Controller (SMC)
MPC5606S Microcontroller Reference Manual, Rev. 7
Freescale Semiconductor
1129
NOTE
The SMC will release the pins after the next PWM timer counter overflow
without accommodating any channel delay if a single channel has been
disabled or if the period register has been cleared or all channels have been
disabled. Program one or more inactive PWM frames (duty cycle = 0)
before writing a configuration that disables a single channel or the entire
SMC.
35.3.2.5
Motor Controller Duty Cycle Register (MCDC0..11)
Each duty cycle register sets the sign and duty functionality for the respective PWM channel. The number
of each register refires directly the PWM channel it controls. The relation between channels, pin names
and register names is shown in
.
Table 35-7. MCCCx field descriptions
Field
Description
MCOM
Output Mode — MCOM controls the PWM channel’s output mode.
00 Half H-bridge mode, PWM on pin MnCxM, pin MnCxP is released
01 Half H-bridge mode, PWM on pin MnCxP, pin MnCxM is released
10 Full H-bridge mode
11 Dual full H-bridge mode
MCAM
PWM Channel Alignment Mode — MCAM controls the PWM channel’s PWM alignment mode and
operation.
MCAM and MCOM 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
[PER] 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.
00 Channel disabled
01 Left aligned
10 Right aligned
11 Center aligned
CD
PWM Channel Delay — Each PWM channel can be individually delayed by a programmable number
of PWM timer counter clocks. The delay will be n/f
TC
.
00 Zero PWM clocks channel delay
01 One PWM clock channel delay
10 Two PWM clocks channel delay
11 Three PWM clocks channel delay
Offset Module Base + 0x0020 . . . 0x0037
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
R SIGN
[4]
SIGN[3:0]
DUTY
W
Reset
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
Figure 35-6. Motor Controller Duty Cycle Register (MCDC0..11)
Содержание MPC5602S
Страница 76: ...Overview MPC5606S Microcontroller Reference Manual Rev 7 74 Freescale Semiconductor...
Страница 82: ...Memory Map MPC5606S Microcontroller Reference Manual Rev 7 80 Freescale Semiconductor...
Страница 112: ...Signal Description MPC5606S Microcontroller Reference Manual Rev 7 110 Freescale Semiconductor...
Страница 166: ...Analog to Digital Converter ADC MPC5606S Microcontroller Reference Manual Rev 7 164 Freescale Semiconductor...
Страница 182: ...Boot Assist Module BAM MPC5606S Microcontroller Reference Manual Rev 7 180 Freescale Semiconductor...
Страница 234: ...Clock Description MPC5606S Microcontroller Reference Manual Rev 7 232 Freescale Semiconductor...
Страница 286: ...Crossbar Switch XBAR MPC5606S Microcontroller Reference Manual Rev 7 284 Freescale Semiconductor...
Страница 470: ...e200z0h Core MPC5606S Microcontroller Reference Manual Rev 7 468 Freescale Semiconductor...
Страница 524: ...Enhanced Direct Memory Access eDMA MPC5606S Microcontroller Reference Manual Rev 7 522 Freescale Semiconductor...
Страница 546: ...Error Correction Status Module ECSM MPC5606S Microcontroller Reference Manual Rev 7 544 Freescale Semiconductor...
Страница 669: ...Flash Memory MPC5606S Microcontroller Reference Manual Rev 7 Freescale Semiconductor 667...
Страница 670: ...Flash Memory MPC5606S Microcontroller Reference Manual Rev 7 668 Freescale Semiconductor...
Страница 716: ...FlexCAN MPC5606S Microcontroller Reference Manual Rev 7 714 Freescale Semiconductor...
Страница 882: ...LIN Controller LINFlex MPC5606S Microcontroller Reference Manual Rev 7 880 Freescale Semiconductor...
Страница 901: ...Memory Protection Unit MPU MPC5606S Microcontroller Reference Manual Rev 7 Freescale Semiconductor 899...
Страница 902: ...Memory Protection Unit MPU MPC5606S Microcontroller Reference Manual Rev 7 900 Freescale Semiconductor...
Страница 955: ...Mode Entry Module MC_ME MPC5606S Microcontroller Reference Manual Rev 7 Freescale Semiconductor 953...
Страница 956: ...Mode Entry Module MC_ME MPC5606S Microcontroller Reference Manual Rev 7 954 Freescale Semiconductor...
Страница 1072: ...Quad Serial Peripheral Interface QuadSPI MPC5606S Microcontroller Reference Manual Rev 7 1070 Freescale Semiconductor...
Страница 1096: ...Reset Generation Module MC_RGM MPC5606S Microcontroller Reference Manual Rev 7 1094 Freescale Semiconductor...
Страница 1106: ...Real Time Clock RTC API MPC5606S Microcontroller Reference Manual Rev 7 1104 Freescale Semiconductor...
Страница 1186: ...Stepper Stall Detect SSD MPC5606S Microcontroller Reference Manual Rev 7 1184 Freescale Semiconductor...
Страница 1213: ...System Integration Unit Lite SIUL MPC5606S Microcontroller Reference Manual Rev 7 Freescale Semiconductor 1211...
Страница 1214: ...System Integration Unit Lite SIUL MPC5606S Microcontroller Reference Manual Rev 7 1212 Freescale Semiconductor...
Страница 1238: ...Voltage Regulators and Power Supplies MPC5606S Microcontroller Reference Manual Rev 7 1236 Freescale Semiconductor...
Страница 1252: ...Wakeup Unit WKPU MPC5606S Microcontroller Reference Manual Rev 7 1250 Freescale Semiconductor...
Страница 1258: ...Registers Under Protection MPC5606S Microcontroller Reference Manual Rev 7 1256 Freescale Semiconductor...
Страница 1323: ...Register Map MPC5606S Microcontroller Reference Manual Rev 7 Freescale Semiconductor 1321...
Страница 1324: ...Register Map MPC5606S Microcontroller Reference Manual Rev 7 1322 Freescale Semiconductor...