Stepper Motor Controller (SMC)
MPC5606S Microcontroller Reference Manual, Rev. 7
1136
Freescale Semiconductor
•
Dual full H-bridge mode can be used to control either a stepper motor or a 360
air core instrument.
In this case two PWM channels are combined.
•
In full H-bridge mode, each PWM channel is updated independently.
•
In half H-bridge mode, one pin of the PWM channel can generate a PWM signal to control a 90
air core instrument (or other load requiring a PWM signal) and the other pin is unused.
The mode of operation for PWM channel x is determined by the output mode bits
[MCOM]. After
a reset occurs, each PWM channel will be disabled, the corresponding pins are released.
Each PWM channel consists of two pins. One output pin will generate a PWM signal. The other will
operate as logic high or low output depending on the state of the recirculation bit
[RECIRC]
(refer to
Section 35.4.1.3.3, Recirculation Bit (MCCTL1[RECIRC])
), while in (dual) full H-bridge mode,
or will be released, while in half H-bridge mode. The state of the sign bit
[SIGN[4]] in the duty
cycle register determines the pin where the PWM signal is driven in full H-bridge mode. While in half
H-bridge mode, the state of the released pin is determined by other modules associated with this pin.
Associated with each PWM channel pair n are two PWM channels, x and x + 1, where x = 2
*
n and n
(0,1,2... 5) is the PWM channel pair number. Duty cycle register x controls the sign of the PWM signal
(which pin drives the PWM signal) and the duty cycle of the PWM signal for SMC channel x. The pins
associated with PWM channel x are MnC0P and MnC0M. Similarly, duty cycle register x + 1 controls the
sign of the PWM signal and the duty cycle of the PWM signal for channel x + 1. The pins associated with
PWM channel x + 1 are MnC1P and MnC1M. This is summarized in
.
Table 35-19. Corresponding Registers and Pin Names for each PWM Channel Pair
PWM Channel
Pair Number
PWM
Channel
Control
Register
Duty Cycle Register
Channel Number
Pin
Names
n
PWM Channel x, x = 2
n
MnC0M
MnC0P
+1
+1
PWM Channel x+1, x = 2
n
MnC1M
MnC1P
0
MCCC0
MCDC0
PWM Channel 0
M0C0M
M0C0P
MCCC1
MCDC1
PWM Channel 1
M0C1M
M0C1P
1
MCCC2
MCDC2
PWM Channel 2
M1C0M
M1C0P
MCCC3
MCDC3
PWM Channel 3
M1C1M
M1C1P
2
MCCC4
MCDC4
PWM Channel 4
M2C0M
M2C0P
MCCC5
MCDC5
PWM Channel 5
M2C1M
M2C1P
Содержание 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...