cancel
Showing results for 
Search instead for 
Did you mean: 

Crystal Oscillator step by step activation and testing. STM32F405

Harry
Associate

Is there a document outlining how to power and test the crystal oscillator from ST? STM32F405

1 ACCEPTED SOLUTION

Accepted Solutions

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

View solution in original post

3 REPLIES 3

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

Harry
Associate

I have designed in the following oscillators:

  1. ABM7-8.000MHZ-DY2-T for the high speed oscillator 18pF
  2. ABS07-120-32.768KHZ-T for the low speed oscillator 6pF

0690X000009ZYOjQAO.jpg

0690X000009ZYOoQAO.jpg

Will these two crystals work in this configuration?

Piranha
Chief II