AM263x MCU+ SDK  09.02.00
EPWM HR Deadband SFO

Introduction

This example modifies the MEP control registers to show edge displacement for high-resolution deadband with ePWM in Up count mode due to the HRPWM control extension of the respective ePWM module.

Block diagram

External Connections

  • EPWM0_A/B pin can be connected to an oscilloscope to view the waveform.

AM263X-CC

When using AM263x-CC with TMDSHSECDOCK (HSEC180 controlCARD Baseboard Docking Station)

  • Connect HSEC 49 for epwm0_A
  • Connect HSEC 51 for epwm0_B

Supported Combinations

Parameter Value
CPU + OS r5fss0-0 nortos
Toolchain ti-arm-clang
Board am263x-cc, am263x-lp
Example folder examples/drivers/epwm/hrpwm_deadband_sfo/

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 High Resolution Deadband Test Started ...
Please observe pins HSEC 49 and HSEC 51.
High Resolution Deadband 20.00 ns.
EPWM0 DBRED, DBFED = 8, DBREDHR, DBFEDHR = 0
Calibration... Running...
High Resolution Deadband 20.14 ns.
EPWM0 DBRED, DBFED = 8, DBREDHR, DBFEDHR = 7
Calibration... Running...
High Resolution Deadband 20.29 ns.
EPWM0 DBRED, DBFED = 8, DBREDHR, DBFEDHR = 15
Calibration... Running...
High Resolution Deadband 20.44 ns.
EPWM0 DBRED, DBFED = 8, DBREDHR, DBFEDHR = 23
Calibration... Running...
High Resolution Deadband 20.59 ns.
EPWM0 DBRED, DBFED = 8, DBREDHR, DBFEDHR = 30
Calibration... Complete
SFO status=1 , MEP_ScaleFactor=46
High Resolution Deadband 20.74 ns.
EPWM0 DBRED, DBFED = 8, DBREDHR, DBFEDHR = 38
Calibration... Running...
High Resolution Deadband 20.89 ns.
EPWM0 DBRED, DBFED = 8, DBREDHR, DBFEDHR = 46

Expected output