I want to know the level of the digital input signal.
With eCAP, I can only see the rising and falling edges.
What are the possible options and how to use them.
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.
I want to know the level of the digital input signal.
With eCAP, I can only see the rising and falling edges.
What are the possible options and how to use them.
Yadav,
I think you mean to prior to using the eCAP how do you know the state of the pin if there is no edge, correct?
You can use the base GPIO function that is embedded in the same signal pin that you have chosen for the eCAP. Even when a GPIO is commited to a certain mux function the input capture of the pin is always enabled. This is shown on page 114 of http://www.ti.com/lit/spruh18
For instance eCAP3 is muxed on GPIO9, so you could look at the GPADAT register, bit posistion 9 to determine if the pin is high or low.
Best,
Matthew