Author Topic: about stm32 hardware design  (Read 658 times)

0 Members and 1 Guest are viewing this topic.

Offline ranganatennakoon

  • Contributor
  • Posts: 37
  • Country: lk
about stm32 hardware design
« on: August 15, 2022, 11:15:23 am »
The stm32F103XX needs 2 oscillators. 8MHz is main one and 32KHz for RTC. If I don't use the RTC functions then adding the 32KHz oscillator is not essential right?

thanks
« Last Edit: August 15, 2022, 10:37:47 pm by ranganatennakoon »
 

Online gamalot

  • Super Contributor
  • ***
  • Posts: 1077
  • Country: au
  • Correct my English
    • Youtube
Re: about stm32 hardware design
« Reply #1 on: August 15, 2022, 11:24:19 am »
Yes, you are right, in fact both external crystals are optional and the STM32 can run without both of them.
 
The following users thanked this post: ranganatennakoon

Online JohanH

  • Frequent Contributor
  • **
  • Posts: 386
  • Country: fi
Re: about stm32 hardware design
« Reply #2 on: August 15, 2022, 12:02:33 pm »
If you use USB, the internal clock doesn't have good enough tolerance for the USB specification, although it might work in practice, but isn't guaranteed.
 
The following users thanked this post: ranganatennakoon

Offline jordannedev

  • Contributor
  • Posts: 17
  • Country: bg
Re: about stm32 hardware design
« Reply #3 on: August 15, 2022, 12:04:28 pm »
https://www.st.com/resource/en/application_note/an2586-getting-started-with-stm32f10xxx-hardware-development-stmicroelectronics.pdf
Here you will find all the basic information about the peripheral components that are required for the MCU. Personally, in my projects, I connect only the HSE crystal oscillator.
 

Offline ajb

  • Super Contributor
  • ***
  • Posts: 2330
  • Country: us
Re: about stm32 hardware design
« Reply #4 on: August 15, 2022, 04:52:21 pm »
If you use USB, the internal clock doesn't have good enough tolerance for the USB specification, although it might work in practice, but isn't guaranteed.

I don't know about these ST parts in particular, but some MCUs can use the USB SOF to discipline an internal oscillator, to allow USB to work without a more accurate local clock.  But in general, yes, internal RC oscillators are much lower accuracy and stability and might not be good enough for sensitive applications, including UART links, so you'll have to look at the datasheet and do the math.
 

Offline ranganatennakoon

  • Contributor
  • Posts: 37
  • Country: lk
Re: about stm32 hardware design
« Reply #5 on: August 15, 2022, 10:40:05 pm »
If I don't use the RTC functions then adding the 32KHz oscillator is not essential right?
 

Offline thm_w

  • Super Contributor
  • ***
  • Posts: 4690
  • Country: ca
  • Non-expert
Re: about stm32 hardware design
« Reply #6 on: August 15, 2022, 10:59:13 pm »
If I don't use the RTC functions then adding the 32KHz oscillator is not essential right?

Yes, gamalot answered this above.
Profile -> Modify profile -> Look and Layout ->  Don't show users' signatures
 
The following users thanked this post: ranganatennakoon


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf