Skip to main content
HBroo.1
Associate
May 4, 2020
Question

STM32F042: externally clocking other usb devices upstream?

  • May 4, 2020
  • 2 replies
  • 1098 views

My application will have a STM32F042 fed USB from a TUSB2036 USB hub IC. That chip has the option to feed a 48MHz clock in directly (from MCO on the STM?), which would save me a crystal and supporting parts. I'm wondering if this would be alright accuracy wise: the STM32's crystal-less USB relies on it's CRS, which is fed by USB SOF packets, which I guess it would not be getting until the USB hub connects to the PC: would it be able to do that before the clock manages to recover itself? TI does not spec a tolerance for the 48MHz clock, but I suspect it is the same as the USB spec (which I believe is .25%?)

This topic has been closed for replies.

2 replies

waclawek.jan
Super User
May 4, 2020

This doesn't sound as a viable plan...

JW

TDK
Super User
May 4, 2020

It's hard to figure out exactly what you're asking here.

If TUSB2036 puts out a 48MHz clock, there's no reason you can't use it to clock the STM32.

"If you feel a post has answered your question, please click ""Accept as Solution""."
HBroo.1
HBroo.1Author
Associate
May 4, 2020

I would be doing it the other way around: my concern is with the accuracy of the clock for USB and if it would still be possible to use the CRS with the hub. I'll be honest: my USB knowledge is not massive.

TDK
Super User
May 4, 2020
Oh that makes more sense.
Yeah, I would bet it would work. Cant imagine the TI chip cares much about the clock when the interface isn't even active.
Could be wrong.
"If you feel a post has answered your question, please click ""Accept as Solution""."