Introduction
This example generates a signal for a specified time and duty cycle using ePWM module. The time and duty cycle can be configured by the user.
The example does the below
- Configures ePWM0 to generate a 1KHz signal with 25% duty cycle for 60 seconds.
- Output channel A is used in the example.
- The parameters frequency, duty cycle and application run time are configurable by the user.
- Deadband submodule and chopper submodule are entirely bypassed in this example.
- ISR is used to keep track of keep track of elapsed time.
- Show usage of ePWM APIs
- Short Pin 2 and 3 of J11 on expansion connector.
- Signal can be probed on Pin 7 of J6 on expansion connector.
Supported Combinations
Parameter | Value |
CPU + OS | r5fss0-0 nortos |
r5fss0-0 freertos |
Toolchain | ti-arm-clang |
Board | am64x-evm |
Example folder | examples/drivers/epwm/epwm_duty_cycle/ |
Steps to Run the Example
See Also
EPWM
Sample Output
Shown below is a sample output when the application is run,
EPWM Duty Cycle Test Started ...
App will wait for 60 seconds (using PWM period ISR) ...
EPWM Duty Cycle Test Passed!!
All tests have passed!!