EasyManua.ls Logo

NXP Semiconductors MPC5606S - Page 1143

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
Freescale Semiconductor 1141
Figure 35-21. Center aligned
35.4.1.3.2 Sign Bit (MCDCx[SIGN])
Assuming MCCTL1[RECIRC] = 0 (the active state of the PWM signal is low), when the
MCDCx[SIGN[4]] bit for the corresponding channel is cleared, MnC0P (if the PWM channel number is
even, n = 0, 1, 2...5, see Table 35-19) or MnC1P (if the PWM channel number is odd, n = 0, 1, 2...5 see
Table 35-19), outputs a logic high while in (dual) full H-bridge mode. In half H-bridge mode the state of
the MCDCx[SIGN[4]] bit has no effect. The PWM output signal is generated on MnC0M (if the PWM
channel number is even, n = 0, 1, 2...5, see Table 35-19) or MnC1M (if the PWM channel number is odd,
n = 0, 1, 2...5).
Assuming MCCTL1[RECIRC] = 0 (the active state of the PWM signal is low), when the
MCDCx[SIGN[4]] bit for the corresponding channel is set, MnC0M (if the PWM channel number is even,
n = 0, 1, 2...5, see Table 35-19) or MnC1M (if the PWM channel number is odd, n = 0, 1, 2...5, see
Table 35-19), outputs a logic high while in (dual) full H-bridge mode. In half H-bridge mode the state of
the MCDCx[SIGN[4]] bit has no effect. The PWM output signal is generated on MnC0P (if the PWM
channel number is even, n = 0, 1, 2...5, see Table 35-19) or MnC1P (if the PWM channel number is odd,
n = 0, 1, 2...5).
Setting MCCTL1[RECIRC] = 1 will also invert the effect of the MCDCx[SIGN[4]] bit such that while
MCDCx[SIGN[4]] = 0, MnC0P or MnC1P will generate the PWM signal and MnC0M or MnC1M will be
a static low output. While MCDCx[SIGN[4]] = 1, MnC0M or MnC1M will generate the PWM signal and
MnC0P or MnC1P will be a static low output. In this case the active state of the PWM signal will be high.
See Table 35-20 for detailed information about the impact of MCDCx[SIGN[4]] and MCCTL1[RECIRC]
bit on the PWM output.
Table 35-20. Impact of MCCTL1[RECIRC] and MCDCx[SIGN[4]] bit on the PWM output
Output Mode MCCTL1[RECIRC] MCDCx[SIGN[4]] MnCyM MnCyP
(Dual) Full H-Bridge 0 0 PWM
1
1
(Dual) Full H-Bridge 0 1 1 PWM
0 85
PWM Output
0
1 Period
100 Counts
Motor Controller
Timer Counter
Motor Controller
Timer Counter
Clock
0
1 Period
100 Counts
15 99
99
MCCTL0[DITH] = 0, MCCCx[MCAM] = 0x3, MCDCx[DUTY] = 15,
MCPER[PER] = 100, MCCTL1[RECIRC] = 0

Table of Contents

Related product manuals