PWM3.30 does not work well as Capture unit?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
ranac_286331
Level 1
Level 1

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.

0 Likes
1 Solution
lock attach
Attachments are accessible only for community members.
Len_CONSULTRON
Level 9
Level 9
Beta tester 500 solutions authored 1000 replies posted

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

Len
"Engineering is an Art. The Art of Compromise."

View solution in original post

0 Likes
2 Replies