|
S912XHZ512F1VAG Datasheet, PDF (447/978 Pages) Freescale Semiconductor, Inc – Covers MC9S12XHZ384, MC9S12XHZ256 | |||
|
◁ |
Chapter 11 Motor Controller (MC10B12CV2) Block Description
11.4.1.3.2 Sign Bit (S)
Assuming RECIRC = 0 (the active state of the PWM signal is low), when the S bit for the corresponding
channel is cleared, MnC0P (if the PWM channel number is even, n = 0, 1, 2...5, see Table 11-11) or MnC1P
(if the PWM channel number is odd, ,n = 0, 1, 2...5 see Table 11-11), outputs a logic high while in (dual)
full H-bridge mode. In half H-bridge mode the state of the S 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 11-11) or MnC1M
(if the PWM channel number is odd, n = 0, 1, 2...5).
Assuming RECIRC = 0 (the active state of the PWM signal is low), when the S bit for the corresponding
channel is set, MnC0M (if the PWM channel number is even, n = 0, 1, 2...5, see Table 11-11) or MnC1M
(if the PWM channel number is odd, n = 0, 1, 2...5, see Table 11-11), outputs a logic high while in (dual)
full H-bridge mode. In half H-bridge mode the state of the S 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 11-11) or MnC1P (if
the PWM channel number is odd, n = 0, 1, 2...5).
Setting RECIRC = 1 will also invert the effect of the S bit such that while S = 0, MnC0P or MnC1P will
generate the PWM signal and MnC0M or MnC1M will be a static low output. While S = 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 11-12 for detailed information about the impact of SIGN and RECIRC bit on the PWM output.
Table 11-12. Impact of RECIRC and SIGN Bit on the PWM Output
Output Mode
RECIRC
SIGN
MnCyM
MnCyP
(Dual) Full H-Bridge
0
0
PWM1
1
(Dual) Full H-Bridge
(Dual) Full H-Bridge
0
1
1
0
1
PWM
0
PWM2
(Dual) Full H-Bridge
1
1
PWM
1
Half H-Bridge: PWM on MnCyM
Donât care
Donât care
PWM
â3
Half H-Bridge: PWM on MnCyP
Donât care
Donât care
â
PWM
1 PWM: The PWM signal is low active. e.g., the waveform starts with 0 in left aligned mode. Output M generates the PWM signal.
Output P is static high.
2 PWM: The PWM signal is high active. e.g., the waveform starts with 1 in left aligned mode. output P generates the PWM signal.
Output M is static low.
3 The state of the output transistors is not controlled by the motor controller.
11.4.1.3.3 RECIRC Bit
The RECIRC bit controls the ï¬ow of the recirculation current of the load. Setting RECIRC = 0 will cause
recirculation current to ï¬ow through the high side transistors, and RECIRC = 1 will cause the recirculation
current to ï¬ow through the low side transistors. The RECIRC bit is only active in (dual) full H-bridge
modes.
Effectively, RECIRC = 0 will cause a static high output on the output terminal not driven by the PWM,
RECIRC = 1 will cause a static low output on the output terminals not driven by the PWM. To achieve the
same current direction, the S bit behavior is inverted if RECIRC = 1. Figure 11-12, Figure 11-13,
Figure 11-14, and Figure 11-15 illustrate the effect of the RECIRC bit in (dual) full H-bridge modes.
MC9S12XHZ512 Data Sheet, Rev. 1.06
Freescale Semiconductor
447
|
▷ |