EasyManua.ls Logo

NXP Semiconductors MPC5606S - Page 1140

NXP Semiconductors MPC5606S
1344 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Stepper Motor Controller (SMC)
MPC5606S Microcontroller Reference Manual, Rev. 7
1138 Freescale Semiconductor
Figure 35-17. Typical dual full H-bridge mode configuration
16-bit write accesses to the duty cycle registers are allowed, 8-bit write accesses can lead to unpredictable
duty cycles.
The following sequence should be used to update the current magnitude and direction for coil 0 and coil 1
of the motor to achieve consistent PWM output:
1. Write to duty cycle register x
2. Write to duty cycle register x + 1
At the next timer counter overflow, the duty cycle registers will be copied to the working duty cycle
registers. Sequential writes to the duty cycle register x will result in the previous data being overwritten.
35.4.1.1.2 Full H-bridge mode
In full H-bridge mode (MCCCx[MCOM]=0x2), the PWM channels x and x + 1 operate independently.
The duty cycle working registers are updated whenever a timer counter overflow occurs.
35.4.1.1.3 Half H-bridge mode
In half H-bridge mode (MCCCx[MCOM] = 0x0 or 0x1), the PWM channels x and x + 1 operate
independently. In this mode, each PWM channel can be configured such that one pin is released and the
other pin is a PWM output. Figure 35-18 shows a typical configuration in half H-bridge mode.
The two pins associated with each channel are switchable between released mode and PWM output
dependent upon the state of the output mode bits
MCCCx[MCOM]. See register description in
Section 35.3.2.4, Motor Controller Channel Control Register (MCCC0..11). In half H-bridge mode, the
state of the MCDCx[SIGN[4]] bit has no effect.
MnC0P
MnC0M
MnC1P
MnC1M
Motor n, Coil 0
Motor n, Coil 1
PWM Channel x
PWM Channel x + 1

Table of Contents

Related product manuals