cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F407 - HSE Bypass using external clock.

Wood.Andy
Associate III

Hi

I wish to use an external clock into PH0 from an oscillator module already present in my design.

Does this mean PH1 becomes a spare pin?

Thanks

Andy.

6 REPLIES 6
Uwe Bonnes
Principal III

HSEBYP needs HSEON and HSEON withh use PH0/1. I fear you can't use PH1 with external HSE. Perhaps try do some experiments . Perhaps PH1 is usable as Input pin.

Wood.Andy
Associate III

Hi Uwe

Will probably have to give it a try if I don't get a definite answer.

Thanks

Andy.

RM0090 clearly says:

The external clock signal (square, sinus or triangle) with ~50% duty cycle has to drive the OSC_IN pin while the OSC_OUT pin should be left HI-Z.

Also ch.8.3.14 Using the OSC_IN/OSC_OUT pins as GPIO PH0/PH1 port pins says that PH0/PH1's GPIO is overridden when HSEON is set.

But of course an experiment is worth thousand words.

JW

PVand.9
Associate II

I have the same situation on a NucleoL053 where a 8MHz signal is supplied to the STM32L053 on the PH0 pin. The PH1_pin seems not to be controllable and stays Hi_Z.

STM32L072CZ PH1 not a GPIO w/BYPASS

Ran into this with the Grashopper LoRa board, see this thread for context

https://community.st.com/s/feed/0D50X00009bLS7uSAG

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..