English
Language : 

MC68HC908MR8 Datasheet, PDF (139/372 Pages) Motorola, Inc – Microcontrollers
Technical Data — MC68HC908MR8
Section 9. Pulse-Width Modulator for Motor Control
(PWMMC)
9.1 Contents
9.2 Introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .140
9.3 Features. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .141
9.4 Timebase . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .146
9.4.1 Resolution. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .146
9.4.2 Prescaler . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .148
9.5 PWM Generators. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .148
9.5.1 Load Operation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .148
9.5.2 PWM Data Overflow and Underflow Conditions . . . . . .152
9.6 Output Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .152
9.6.1 Selecting Six Independent PWMs or Three
Complementary PWM Pairs. . . . . . . . . . . . . . . . . . . . . . .152
9.6.2 Dead-Time Insertion. . . . . . . . . . . . . . . . . . . . . . . . . . . . .154
9.6.3 Output Polarity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .157
9.6.4 Output Port Control Register . . . . . . . . . . . . . . . . . . . . .159
9.7 Fault Protection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .161
9.7.1 Fault Condition Input Pins. . . . . . . . . . . . . . . . . . . . . . . .164
9.7.2 Software Output Disable . . . . . . . . . . . . . . . . . . . . . . . . .168
9.7.3 Output Port Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . .168
9.8 Initialization and the PWMEN Bit. . . . . . . . . . . . . . . . . . . . .169
9.9 PWM Operation in Wait Mode . . . . . . . . . . . . . . . . . . . . . . .170
9.10 PWM Operation in Stop Mode . . . . . . . . . . . . . . . . . . . . . . .170
9.11 PWM Operation in Break Mode . . . . . . . . . . . . . . . . . . . . . .171
9.12 Control Logic Block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .172
9.12.1 PWM Counter Registers . . . . . . . . . . . . . . . . . . . . . . . . .172
9.12.2 PWM Counter Modulo Registers. . . . . . . . . . . . . . . . . . .173
9.12.3 PWMx Value Registers. . . . . . . . . . . . . . . . . . . . . . . . . . .174
9.12.4 PWM Control Register 1 . . . . . . . . . . . . . . . . . . . . . . . . .175
MC68HC908MR8 — Rev 4.1
Freescale Semiconductor Pulse-Width Modulator for Motor Control (PWMMC)
Technical Data
139