cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to GPIO_ReadInputDataBit while the pin is connected to TIM channel ?

root
Associate II
Posted on October 27, 2011 at 13:51

Hello,

On my application I'd like to sense an input frequency (using a TIM channel in input capture), but at the same time be able to read the value of the pin at any time.

Idea is that when configuring the sensor, I'd like to display the state of the pin (on/off) but be able to sense the frequency without having to switch mode in code, be able to sense frequency using the input capture ...

Is it possible to read the pin raw value while connected to a peripheral ?

Thomas.

PS : STM32F205
2 REPLIES 2
root
Associate II
Posted on October 27, 2011 at 14:07

According to Reference Manual page 143/1317, it seens possible as the input driver drives both the alternate function input and the input data register.

I'll try and let you know.

Thomas.
root
Associate II
Posted on October 27, 2011 at 15:18

It's working, no problem.