Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

TMS320F280049: ECAP capture register values do not reset to 0 when PWM input is disabled

$
0
0

Part Number:TMS320F280049

I have developed an ECAP module driver to read pulse inputs from connected peripherals. To unit test my driver, I have configured 2 GPIOs on the TMS320F280049 evaluation module to provide inputs to 2 ECAP modules on the controller and I am testing the ECAP functionality by feeding PWM pulses from 2 separate channels on a wave generator to these two pins.

I can observe the change in the capture register values when I change the frequencies on the two channels.

However when I disable the wave gen output, I would expect the capture registers to reset to 0 (since there is no pulse detected on the GPIO). This is not happening. The capture registers retain the values at the last capture, and when I observe the ECAP registers, the TSCTR (Timestamp counter register keeps incrementing).

Why is this happening?

My configuration settings are as follows:

GPIO Qualification : 6 sample

Capture Mode : Continuous, wrapping at ECAP_EVENT_4

Polarity: Rising on CAP1 and CAP3, Falling on CAP2 and CAP4.

Operation Mode: Delta (Counter resets on every capture)

ECAP Sync Mode: Sync out on Sync in

ECAP Interrupt enabled on ECAP_EVENT_4


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>