Dynamically change pin configuration
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-09-05 1:53 AM
I would like to change the pin configuration from GPIO Input to INPUT_CAPTURE_MODE_Channel in the code (dynamically).
How to achieve this ?
I'm using STM32F103CBT6.
Please Help. Thank you.
- Labels:
-
GPIO-EXTI
-
STM32F1 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-09-05 2:07 AM
Yes you can and it is needless because pin level can be read anytime, while in alternate function too.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-09-05 2:59 AM
Could you please elaborate more about how to read pin status in input capture mode.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-09-05 3:01 AM
As I am new to the STM32, could you please explain it in more detail.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-09-05 3:18 AM
In exactly the same way as when it is set to GPIO input.
JW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-09-05 3:36 AM
Like I want to detect the frequency and also it should work GPIO input whenever I want, that's why I am searching for method to switch those functionalities or is it possible while the pin is in input capture mode.
