mc9s12hz256v2 Freescale Semiconductor, Inc, mc9s12hz256v2 Datasheet - Page 271

no-image

mc9s12hz256v2

Manufacturer Part Number
mc9s12hz256v2
Description
Hcs12 Microcontrollers
Manufacturer
Freescale Semiconductor, Inc
Datasheet
9.4
9.4.1
9.4.1.1
The motor controller is configurable between three output modes.
The mode of operation for each PWM channel is determined by the corresponding MCOM[1:0] bits in
channel control registers. 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 RECIRC bit (refer to
“RECIRC
state of the S bit 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, 3) 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 motor controller 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
Freescale Semiconductor
Pair Number
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.
Channel
PWM
Functional Description
Bit”), while in (dual) full H-bridge mode, or will be released, while in half H-bridge mode. The
n
0
Modes of Operation
Table 9-10. Corresponding Registers and Pin Names for Each PWM Channel Pair
PWM Output Modes
Channel Control
MCMCx + 1
Register
MCMCx
MCMC0
MCMC1
PWM
MC9S12HZ256 Data Sheet, Rev. 2.05
Duty Cycle
MCDCx + 1
Register
MCDC0
MCDC1
MCDCx
PWM Channel x + 1, x = 2 n
PWM Channel x, x = 2 n
PWM Channel 0
PWM Channel 1
Channel
Number
Chapter 9 Motor Controller (MC10B8CV1)
Table
Section 9.4.1.3.3,
MnC0M
MnC1M
M0C0M
M0C1M
Names
MnC0P
MnC1P
M0C0P
M0C1P
9-10.
Pin
271

Related parts for mc9s12hz256v2