STM32F100RB: MCO and USART1_CK conflict on PA8
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2012-07-11 6:30 AM
Posted on July 11, 2012 at 15:30
Hello,
I am using an STM32F100RB and want to use the clock output MCO on GPIO PA8, so i have to set the GPIO to 'alternate function push-pull'. But I also want to use USART1 with TX on GPIO PA9 and RX on GPIO PA10. So far so good. But the clock output USART1_CK is also using GPIO PA8 when set to 'alternate function push-pull' and with USART1 set to enabled. I do not need the clock output of USART1, so I will disable it in USART1_CR2 via the CKEN bit. So can I us PA8 as MCO without having any conflict with USART1_CK, because it is switched to high-Z?
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2012-07-11 7:06 AM
Posted on July 11, 2012 at 16:06
Correct.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2012-07-11 8:43 AM
Posted on July 11, 2012 at 17:43
ST really doesn't document the internal wiring, it's probably much more likely an OR combination from the AF output peripherals, and two wires/paths for TIM1_CH1 (ie TIM1_CH1_OUT and TIM1_CH1_IN)
If you don't use USART1 in synchronous mode and don't use TIM1 CH1 in an output mode, you'll get your MCO output.
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Up vote any posts that you find helpful, it shows what's working..
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2012-07-11 10:44 PM
Posted on July 12, 2012 at 07:44
Thank You for your quick help.
I won't use USART1_CK nor TIM1_CH1 on PA8, so I will give it a try.