STM32L072RBT6 - Define PC9 as AF2 for analog output
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-03-02 8:02 AM
Hi,
I am trying to Define PC9 as AF2 for analog output.
After defining, the output keeps high. How can I define it as "TIM3_CH4" not" USB_NOE"?
It could be the reason getting HIGH.
Thanks!
Jason
- Labels:
-
GPIO-EXTI
-
STM32L0 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-03-02 8:59 AM
- What do you mean by "analog output"? PC9 has no analog function.
Pins marked ***/*** usually have both functionalities simply connected together, so you cannot use both peripherals at the same time when using these pins. In other words, if you have USB enabled, you are probably unable to use that pin for TIM3, and vice versa.
[EDIT]
JW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-03-02 9:03 AM
Hi @Imen DAHMEN​ ,
this is IMO a surprising feature - two peripherals controlling a single pin - and maybe even more surprising is that it is multiplexed in TIM module.
I would suggest a footnote to both the Pin definitions and Alternate functions tables, in all related datasheets.
[EDIT] It also appears, that PC9 has this "dual" function only in 'L07x, so this IMO deserves also a mention, this time in the TIM3_OR bit 4 description, in the two relevant Reference Manuals.
Can you please look at this. Thanks.
JW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-03-02 9:38 AM
This is correct path. It is fixed.
Thanks!
Jason
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-03-03 2:16 AM
Hi @Community member​ ,
Thank you for rising this up. I will take the necessary action.
Imen
Thanks
Imen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-03-03 3:31 AM
Thanks, Imen.
Jan
@Imen DAHMEN​
