2019-07-04 05:59 PM
Is there a document outlining how to power and test the crystal oscillator from ST? STM32F405
Solved! Go to Solution.
2019-07-05 01:40 AM
Read the RCC chapter of RM0090.
You enable HSE by setting RCC_CR.HSEON, and then wait until RCC_CR.HSERDY is set, indicating the HSE is up and running.
A similar procedure is for LSE; its respective bits are in RCC_BDCR.
For checking, you can output HSE onto MCO1 or MCO2, see RCC_CFGR.MCO1 and RCC_CFGR.MCO2 (you may need to set the respective GPIOx_OSPEEDR to some of the higher settings).
Note, that if you want to probe on the crystal directly, you need a high-impedance oscilloscope probe (1:10 or an active one). LSE is a low-power oscillator and probing it may stop the oscillations entirely.
JW
2019-07-05 01:40 AM
Read the RCC chapter of RM0090.
You enable HSE by setting RCC_CR.HSEON, and then wait until RCC_CR.HSERDY is set, indicating the HSE is up and running.
A similar procedure is for LSE; its respective bits are in RCC_BDCR.
For checking, you can output HSE onto MCO1 or MCO2, see RCC_CFGR.MCO1 and RCC_CFGR.MCO2 (you may need to set the respective GPIOx_OSPEEDR to some of the higher settings).
Note, that if you want to probe on the crystal directly, you need a high-impedance oscilloscope probe (1:10 or an active one). LSE is a low-power oscillator and probing it may stop the oscillations entirely.
JW
2019-07-28 05:06 AM
I have designed in the following oscillators:
Will these two crystals work in this configuration?
2019-07-28 07:11 AM
For correct capacitor values check out AN2867 and this:
https://blog.adafruit.com/2012/01/24/choosing-the-right-crystal-and-caps-for-your-design/