Specifications
Contents
xi
Contents
6 Event Manager (EV) 6-1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Describes the event manager (EV) module. Includes descriptions of the general-purpose timer,
compare units, pulse-width modulation waveform circuits, capture units, and quadrature en-
coder pulse circuits.
6.1 Event Manager (EV) Functional Blocks 6-2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6.1.1 Differences Between ’C240 EV and ’240x EV 6-5. . . . . . . . . . . . . . . . . . . . . . . . . . .
6.1.2 EV Pins 6-6. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6.1.3 Power Drive Protection Interrupt (PDPINTx, x = A or B) 6-8. . . . . . . . . . . . . . . . . . .
6.1.4 EV Registers 6-9. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6.1.5 EV Interrupts 6-9. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6.2 Event Manager (EV) Register Addresses 6-11. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6.3 General-Purpose (GP) Timers 6-14. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6.3.1 GP Timer Counting Operation 6-21. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6.3.2 GP Timer Compare Operation 6-26. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6.3.3 Timer Control Registers (TxCON and GPTCONA/B) 6-31. . . . . . . . . . . . . . . . . . . .
6.3.4 Generation of PWM Outputs Using the GP Timers 6-35. . . . . . . . . . . . . . . . . . . . . .
6.3.5 GP Timer Reset 6-36. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6.4 Compare Units 6-37. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6.4.1 Compare Units Registers 6-39. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6.4.2 Compare Unit Interrupts 6-45. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6.4.3 Compare Unit Reset 6-45. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6.5 PWM Circuits Associated With Compare Units 6-46. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6.5.1 PWM Generation Capability of Event Manager 6-47. . . . . . . . . . . . . . . . . . . . . . . . .
6.5.2 Programmable Dead-Band (Dead-Time) Unit 6-48. . . . . . . . . . . . . . . . . . . . . . . . . . .
6.5.3 Output Logic 6-53. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6.6 PWM Waveform Generation With Compare Units and PWM Circuits 6-55. . . . . . . . . . . . .
6.6.1 Generation of PWM Outputs With Event Manager 6-56. . . . . . . . . . . . . . . . . . . . . .
6.6.2 Register Setup for PWM Generation 6-56. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6.6.3 Asymmetric PWM Waveform Generation 6-57. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6.6.4 Symmetric PWM Waveform Generation 6-58. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6.7 Space Vector PWM 6-60. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6.7.1 3-Phase Power Inverter 6-60. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6.7.2 Space Vector PWM Waveform Generation with Event Manager 6-62. . . . . . . . . . .
6.7.3 Space Vector PWM Boundary Conditions 6-64. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6.8 Capture Units 6-66. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6.8.1 Capture Unit Features 6-68. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6.8.2 Operation of Capture Units 6-69. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6.8.3 Capture Unit Registers 6-70. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6.8.4 Capture Unit FIFO Stacks 6-75. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6.8.5 Capture Interrupt 6-77. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6.9 Quadrature Encoder Pulse (QEP) Circuit 6-78. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6.9.1 QEP Pins 6-78. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6.9.2 QEP Circuit Time Base 6-78. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .










