cancel
Showing results for 
Search instead for 
Did you mean: 

how can i read rising pr falling edge status in timer

Raider E
Associate III
Posted on April 20, 2017 at 08:39

Hi everyone,

I have setup a timer in an input capture mode on both edges(rising and falling) and just would like to know when the interrupt is triggered wether its a rising edge or a falling edge. any hal library macro to do this ?

many thanks

1 REPLY 1
Posted on April 20, 2017 at 09:11

No hardware for this, thus no macro.

You can of course always read the current state of the pin from GPIO_IDR.

JW