cancel
Showing results for 
Search instead for 
Did you mean: 

Can I use a pin as gpio input and counter input at the same time ?

ko
Associate
Posted on October 26, 2015 at 17:08

If i use a pin as counter input, can I read its value in gpio input register ?

#timer
1 REPLY 1
Posted on October 26, 2015 at 18:07

Yes, I'd expect GPIOx->IDR to reflect the state of the pin regardless of the mode it's in. Although ANALOG mode would turn off the schmitt-trigger on the input.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..