- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There is no configuration for Capture mode in the PWM_Init() function, there does not seem to exist any bits in the Control register to configure the edge of the Capture as opposed to the Counter module (see Datasheets), the PWM module does not work as expected when capturing events in Either edge mode.
Solved! Go to Solution.
- Labels:
-
PSoC 5LP
- Tags:
- pwm module
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I've tested the PWM v3.30 component in test code. Capture mode with edge parameters does work. Attached is the very simple test code.
However, you are correct, there is NO API call to set the capture edge programmatically.
My test code pre-sets all three edge types for three individual PWMs. Additionally since the "FIFO not empty" status doesn't work, you have no means to notify the SW when a capture occurred except for setting an ISR on the capture input.
Len
"Engineering is an Art. The Art of Compromise."