Skip to main content
root
Associate III
October 27, 2011
Question

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

  • October 27, 2011
  • 2 replies
  • 627 views
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
    This topic has been closed for replies.

    2 replies

    root
    rootAuthor
    Associate III
    October 27, 2011
    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
    rootAuthor
    Associate III
    October 27, 2011
    Posted on October 27, 2011 at 15:18

    It's working, no problem.