This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS570LS1227: Read pin state on ECAP module on TMS5701227

Part Number: TMS570LS1227

Tool/software:

Hello,

I'm currently using the ECAP module on TMS570LS1227 successfully to calculate the frequency of a PWM signal (I am doing this in all 6 ECAP pins). Sometimes that PWM signal will either clamp high ( value set to 1 permanently) or clamp low (set to 0).

I would like to be able to read the state of the pin on those cases and I can't see any way to do this within the ECAP module. The only solution I can think of is to re-program that pin as GPIO to read the value and then program it back as ECAP afterwards. 

Is there a better way to do this? I also thought about forgetting about using the ECAP module altogether and use the HET module to calculate the frequency of the signals, but for some of the 6 PWM signals there is no option to configure the pin as HET, so this is not an option.

Regards,