Introduction
This example uses the ECAP in APWM mode to generate a PWM signal.
The example does the below
- Configures ECAP in APWM mode and configures values in period and compare registers
- Waits for the specified time using the ECAP ISR.
External Connections
AM62X-SK
- The signal can be probed on Pin 7 (A18/GPIO1_30) of the User Expansion Connector (J3) on the base board.
AM62X-SIP-SK
- The signal can be probed on Pin 7 (A18/GPIO1_30) of the User Expansion Connector (J3) on the base board.
AM62X-SK-LP
- The signal can be probed on Pin 7 (C14/GPIO1_30) of the User Expansion Connector (J3) on the base board.
Supported Combinations
Parameter | Value |
CPU + OS | a53ss0-0 freertos |
Toolchain | arm.gnu.aarch64-none |
Board | am62x-sk, am62x-sk-lp, am62x-sip-sk |
Example folder | examples/drivers/ecap/ecap_apwm_mode/ |
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
ECAP
Sample Output
Shown below is a sample output when the application is run,
ECAP APWM Mode Test Started ...
ECAP APWM Test Passed!!
All tests have passed!!