Applications
446
SPRUH82C – April 2013 – Revised September 2016
Copyright © 2013–2016, Texas Instruments Incorporated
Enhanced Capture (eCAP) Module
Example 15-6. Code Snippet for Multichannel PWM Generation with Synchronization
// Code snippet for APWM mode Example 2
// Run Time (Note: Example execution of one run-time instant)
//============================================================
ECAP1Regs.CAP2 = 7000;
// Set Duty cycle i.e., compare value = 7000
ECAP2Regs.CAP2 = 2000;
// Set Duty cycle i.e., compare value = 2000
ECAP3Regs.CAP2 = 550;
// Set Duty cycle i.e., compare value = 550
ECAP4Regs.CAP2 = 6500;
// Set Duty cycle i.e., compare value = 6500
15.3.5.3
Multichannel PWM Generation with Phase Control Example
In
, the Phase control feature of the APWM mode is used to control a 3 phase Interleaved
DC/DC converter topology. This topology requires each phase to be off-set by 120° from each other.
Hence if “Leg” 1 (controlled by APWM1) is the reference Leg (or phase), that is, 0°, then Leg 2 need 120°
off-set and Leg 3 needs 240° off-set. The waveforms in
show the timing relationship between
each of the phases (Legs). Note eCAP1 module is the Master and issues a sync out pulse to the slaves
(modules 2, 3) whenever TSCTR = Period value.