cancel
Showing results for 
Search instead for 
Did you mean: 

OSC32_IN and OSC32_OUT when are not used for LSE on STM32F070CBT

tensaisakuragi06
Associate III

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) ?

2 REPLIES 2
STTwo-32
ST Employee

Hello @tensaisakuragi06 

As you can see on the Table63 and Table 64 of the RM0360 rev5 

STTwo32_1-1738154541475.png

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.

tensaisakuragi06
Associate III

Thank you for your reply. I'll try it.