Introduction
Diagram featuring the DeadBand working in EPWM
Example Description
The Example sets up the following EPMWs to showcase the Deadband features, as follows,
- CONFIG_EPWM0 : Deadband disabled (Reference)
- CONFIG_EPWM1 : Deadband Active High
- CONFIG_EPWM2 : Deadband Active Low
- CONFIG_EPWM3 : Deadband Active High Complimentary
- CONFIG_EPWM4 : Deadband Active Low Complimentary
- CONFIG_EPWM5 : Deadband Output Swap i.e., (switch A and B outputs)
- CONFIG_EPWM6 : Deadband On Rising and Falling edges.
The sequence of operations to obtain the deadband occur in the following manner,
- Input (EPWMx_A or EPWMx_B) is selected for operation
- Rising edge delay operation (if selected)
- Falling edge delay operation (if selected)
- Inversion of the RED / FED output (if selected)
- Output Swap (if selected)
Note :
- All the EPWM in the example are synced with CONFIG_EPWM0 as its Counter reaches 0 and all EPMWs start counting up from 0 when sync pulse reaches.
EPWM DeadBand Example Block Diagram
External Connections
AM263X-CC or AM263PX-CC
When using AM263x-CC with TMDSHSECDOCK (HSEC180 controlCARD Baseboard Docking Station) Probe the following
- CONFIG_EPWM0 output on HSEC PIN 49 (EPWM0_A)
- CONFIG_EPWM0 output on HSEC PIN 51 (EPWM0_B)
- CONFIG_EPWM1 output on HSEC PIN 53 (EPWM1_A)
- CONFIG_EPWM1 output on HSEC PIN 55 (EPWM1_B)
- CONFIG_EPWM2 output on HSEC PIN 50 (EPWM2_A)
- CONFIG_EPWM2 output on HSEC PIN 52 (EPWM2_B)
- CONFIG_EPWM3 output on HSEC PIN 54 (EPWM3_A)
- CONFIG_EPWM3 output on HSEC PIN 56 (EPWM3_B)
- CONFIG_EPWM4 output on HSEC PIN 153 (EPWM13_A)
- CONFIG_EPWM4 output on HSEC PIN 154 (EPWM13_B)
- CONFIG_EPWM5 output on HSEC PIN 159 (EPWM15_A)
- CONFIG_EPWM5 output on HSEC PIN 160 (EPWM15_B)
- CONFIG_EPWM6 output on HSEC PIN 57 (EPWM4_A)
- CONFIG_EPWM6 output on HSEC PIN 59 (EPWM4_B) Early Access:AM263Px-CC E1 EPWM 15_A/15_B doesn't have a pinout so insted used EPWM 5_A/5_B ie: CONFIG_EPWM5 output on HSEC PIN 61 (EPWM5_A) and CONFIG_EPWM5 output on HSEC PIN 63 (EPWM5_B)
AM263X-LP or AM263PX-CC
Probe the following
- CONFIG_EPWM0 output on PIN J2/4 11 (EPWM0_A)
- CONFIG_EPWM0 output on PIN J6/8 59 (EPWM0_B)
- CONFIG_EPWM1 output on PIN J2/4 37 (EPWM1_A)
- CONFIG_EPWM1 output on PIN J2/4 38 (EPWM1_B)
- CONFIG_EPWM2 output on PIN J2/4 39 (EPWM2_A)
- CONFIG_EPWM2 output on PIN J2/4 40 (EPWM2_B)
- CONFIG_EPWM3 output on PIN J6/8 77 (EPWM3_A)
- CONFIG_EPWM3 output on PIN J6/8 78 (EPWM3_B)
- CONFIG_EPWM4 output on PIN J6/8 79 (EPWM13_A)
- CONFIG_EPWM4 output on PIN J6/8 80 (EPWM13_B)
- CONFIG_EPWM5 output on PIN J2/4 34 (EPWM15_A)
- CONFIG_EPWM5 output on PIN J5/7 45 (EPWM15_B)
- CONFIG_EPWM6 output on PIN J2/4 35 (EPWM14_A)
- CONFIG_EPWM6 output on PIN J2/4 36 (EPWM14_B)
AM261X-LP
Probe the following
- CONFIG_EPWM0 output on PIN J5/7 70 (EPWM0_A)
- CONFIG_EPWM0 output on PIN J6/8 57 (EPWM0_B)
- CONFIG_EPWM1 output on PIN J5/7 69 (EPWM1_A)
- CONFIG_EPWM1 output on PIN J5/7 63 (EPWM1_B)
- CONFIG_EPWM2 output on PIN J2/4 40 (EPWM2_A)
- CONFIG_EPWM2 output on PIN J2/4 39 (EPWM2_B)
- CONFIG_EPWM3 output on PIN J2/4 38 (EPWM3_A)
- CONFIG_EPWM3 output on PIN J2/4 37 (EPWM3_B)
- CONFIG_EPWM4 output on PIN J2/4 36 (EPWM4_A)
- CONFIG_EPWM4 output on PIN J2/4 35 (EPWM4_B)
- CONFIG_EPWM5 output on PIN J6/8 80 (EPWM5_A)
- CONFIG_EPWM5 output on PIN J2/4 13 (EPWM5_B)
- CONFIG_EPWM6 output on PIN J6/8 78 (EPWM6_A)
- CONFIG_EPWM6 output on PIN J6/8 77 (EPWM6_B)
Supported Combinations
Parameter | Value |
CPU + OS | r5fss0-0 nortos |
Toolchain | ti-arm-clang |
Board | am263x-cc, am263x-lp |
Example folder | examples/drivers/epwm/epwm_deadband/ |
Steps to Run the Example
- When using CCS projects to build, import the CCS project for the required combination and build it using the CCS project menu (see Using SDK with CCS Projects).
- When using makefiles to build, note the required combination and build using make command (see Using SDK with Makefiles)
- Establish connections as mentioned in External Connections section
- Launch a CCS debug session and run the executable, see CCS Launch, Load and Run
See Also
EPWM
Sample Output
Shown below is a sample output when the application is run,
EPWM DeadBand Test Started ...
EPWM DeadBand Example runs for 5 Secs
Rising Edge timestamp of Reference waveform : 502
Rising Edge timestamp of Deadband Active High output B : 502 (Same as Reference Rising Edge Timestamp)
Rising Edge timestamp of Deadband Active High output A : 902 (Reference Rising Edge Timestamp + Rising Edge Delay)
Falling Edge timestamp of Reference waveform : 3502
Falling Edge timestamp of Deadband Active High output A : 3502 (Same as Reference Falling Edge Timestamp)
Falling Edge timestamp of Deadband Active High output B : 3702 (Reference Falling Edge Timestamp + Falling Edge Delay)
Observed Rising Edege Delay : 400
Observed Falling Edege Delay : 200
EPWM DeadBand Test Passed!!
All tests have passed!!
EPWM DeadBand Example Sample Capture