FILE: ecap_ex4_sw_sync.c
This example configures ePWM3A for:
- Up count mode
- Period starts at 500 and goes up to 8000
- Toggle output on PRD
eCAP1, eCAP2 and eCAP3 are configured to capture the time between rising and falling edge of the ePWM3A output.
External Connections
- eCAP1, eCAP2, eCAP3 are on GPIO16
- ePWM3A is on GPIO4
- Connect GPIO4 to GPIO16.
Watch Variables
- ecapPassCount - Successful captures.
- ecap3IntCount - Interrupt counts.