Skip to main content
Visitor II
November 10, 2020
Question

Can I clock USB and I2S clock off same crystal - STM32F407VGT?

  • November 10, 2020
  • 2 replies
  • 1124 views

Hi there,

I'm designing a PCB which will feed audio at 48KHz / 96KHz / 192KHz to a DAC over I2S (TI PCM5242).

I'd quite like the option to have USB - in an ideal world, USB Audio, but at the very least a COM port (USB device).

For the DAC, I'd need an HSE at 24.576MHz. For USB, I need something that can generate a precise 48MHz clock (right?)

Is there any way of doing this - the HSI isn't precise enough for either application? Do I need to move to a bigger pin count chip?

    This topic has been closed for replies.

    2 replies

    Super User
    November 10, 2020

    The 'F407 is a relatively old design with quite inflexible clocking scheme. You can use a "audio-friendly" external oscillator and input it directly through the I2S_CKIN pin.

    Alternatively, user the fact that the DAC of your choice can generate the I2S clocks itself, and use the I2S in the 'F407 as slave. The DAC even has a fractional-N PLL.

    JW

    Graduate II
    November 15, 2020