Skip to main content
Harry
Associate
July 5, 2019
Solved

Crystal Oscillator step by step activation and testing. STM32F405

  • July 5, 2019
  • 3 replies
  • 2682 views

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

This topic has been closed for replies.
Best answer by waclawek.jan

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

3 replies

waclawek.jan
waclawek.janBest answer
Super User
July 5, 2019

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
HarryAuthor
Associate
July 28, 2019

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
Principal III
July 28, 2019