AM263x MCU+ SDK  09.02.00
EPWM Configure Signal API usage

Example Description

This example configures EPWM0, EPWM1, epEPWM2 to produce signal of desired frequency and duty. It also configures phase between the configured modules.

Signal of 10kHz with duty of 0.5 is configured on ePWMxA & ePWMxB with ePWMxB inverted. Also, phase of 120 degree is configured between EPWM0 to EPWM2 signals.

During the test, monitor EPWM0, EPWM1, and/or epwEPWM2 outputs on an oscilloscope.

External Connections

On AM263x CC/ AM263Px CC with HSEC Dock

Probe the following on the HSEC pins

  • EPWM 0A/0B : 49 / 51
  • EPWM 1A/1B : 53 / 55
  • EPWM 2A/2B : 50 / 52

On AM263x LP/ AM263Px LP

Probe the following on boosterpack

  • EPWM 0A/0B : J4 11 / J8 59
  • EPWM 1A/1B : J2 37 / J2 38
  • EPWM 2A/2B : J2 39 / J2 40

Supported Combinations

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

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 Configure Signal Test Started ...
EPWM Configure Signal Example runs for 5 Secs
EPWM Configure Signal Test Passed!!
All Tests have Passed!!

EPWM Chopper Example Sample Capture