Is it possible to GPIO_ReadInputDataBit while the pin is connected to TIM channel ?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-10-27 4:51 AM
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 discussion is locked. Please start a new topic to ask your question.
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-10-27 5:07 AM
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.Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-10-27 6:18 AM
Posted on October 27, 2011 at 15:18
It's working, no problem.
