2025-01-29 04:25 AM - last edited on 2025-01-29 05:01 AM by SofLit
Hi,
I am curious about one thig.
I am using STM32F070CBT microcontroller which has LQFP48 package. My curiosity is about 3rd and 4th pins. In datasheet these pins additional functions are OSC32_IN and OSC32_OUT respectively. In my project, i did not intend to use these pins as external oscillator. Am i have to initialize these pins to use as GPIO and disable HSE oscillator( even if i did not use it as an oscillator) ?
2025-01-29 04:41 AM - edited 2025-01-29 04:42 AM
Hello @tensaisakuragi06
As you can see on the Table63 and Table 64 of the RM0360 rev5
if you enable the LSE, the PC14 and PC15 will be automatically set for LSE use. If you want to use them as standard GPIO you have to set LSEON bit in
RCC_BDCR register PC14MODE bit and PC15MODE bit to 0 and configure the GPIO as standard one using the usual registers. I think throw CubeMX, you just have to disable LSE and enable the GPIO on the mode you want.
Best Regards.
STTwo-32
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2025-01-29 06:46 AM
Thank you for your reply. I'll try it.