MC68HC908MR16/MC68HC908MR32 — Rev. 4.0 Advance Information
MOTOROLA Pulse-Width Modulator for Motor Control (PWMMC) 135
Advance Information — MC68HC908MR16/MC68HC908MR32
Section 9. Pulse-Width Modulator for Motor Control(PWMMC)

9.1 Contents

9.2 Introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .136
9.3 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .137
9.4 Timebase . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .141
9.4.1 Resolution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .141
9.4.2 Prescaler . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .143
9.5 PWM Generators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .143
9.5.1 Load Operation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .143
9.5.2 PWM Data Overflow and Underflow Conditions. . . . . . . . .147
9.6 Output Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .147
9.6.1 Selecting Six Independent PWMs
or Three Complementary PWM Pairs . . . . . . . . . . . . . .147
9.6.2 Dead-Time Insertion. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .149
9.6.3 Top/Bottom Correction with Motor Phase
Current Polarity Sensing . . . . . . . . . . . . . . . . . . . . . . . .153
9.6.4 Output Polarity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .157
9.6.5 PWM Output Port Control. . . . . . . . . . . . . . . . . . . . . . . . . .158
9.7 Fault Protection. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .160
9.7.1 Fault Condition Input Pins . . . . . . . . . . . . . . . . . . . . . . . . .161
9.7.1.1 Fault Pin Filter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .161
9.7.1.2 Automatic Mode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .163
9.7.1.3 Manual Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .164
9.7.2 Software Output Disable . . . . . . . . . . . . . . . . . . . . . . . . . .165
9.7.3 Output Port Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .166
9.8 Initialization and the PWMEN Bit . . . . . . . . . . . . . . . . . . . . . .166
9.9 PWM Operation in Wait Mode . . . . . . . . . . . . . . . . . . . . . . . .168
9.10 Control Logic Block. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .168
9.10.1 PWM Counter Registers. . . . . . . . . . . . . . . . . . . . . . . . . . .168
9.10.2 PWM Counter Modulo Registers . . . . . . . . . . . . . . . . . . . .169
9.10.3 PWMx Value Registers . . . . . . . . . . . . . . . . . . . . . . . . . . .170