Skip to main content
MCrew.1
Associate III
September 22, 2020
Question

Looking into accuracy of internal oscillator, and wondering if it is sufficient to drive USB as virtual COM port over large variance in temperatures.

  • September 22, 2020
  • 6 replies
  • 1197 views

I am using the STM32L476 MCU on a board that will be used on a boat with varying temperature conditions, and using the USB as a virtual COM port to send and receive data for diagnostics of the board. When configuring the clock using the MSI to drive 48MHz, will this internal oscillator be accurate to operate over a large variance of temperatures? Or will I need to use an external clock?

This topic has been closed for replies.

6 replies

TDK
September 22, 2020

The L4 has a clock recovery system. If you use that, you can use USB without a crystal. The MSI by itself is not accurate enough.

0693W000004GjmIQAS.png

"If you feel a post has answered your question, please click ""Accept as Solution""."
waclawek.jan
Super User
September 22, 2020

> The L4 has a clock recovery system

Not the 'L476, though.

JW

MCrew.1
MCrew.1Author
Associate III
September 22, 2020

Can you explain how to use the clock recovery system?

TDK
September 22, 2020
I could, but it seems your chip doesn't have it so it wouldn't be much use.
"If you feel a post has answered your question, please click ""Accept as Solution""."
MCrew.1
MCrew.1Author
Associate III
September 24, 2020

Does the L496 have a clock recovery system? If so, can you explain how it would be used? Considering switching chips from the L476 to the L496.

MCrew.1
MCrew.1Author
Associate III
September 24, 2020

Or would the HSI48 be accurate for the application as specified above?