8-ch audio card USB Bus Problems

XCore Project reviews, ideas, videos and proposals.
hamtam
Member++
Posts: 27
Joined: Wed Jun 28, 2017 7:37 am

Re: 8-ch audio card USB Bus Problems

Postby hamtam » Wed May 23, 2018 11:30 am

The main issue was that the firmware did not wait until the PLL has locked. Thus the device could not reply properly to the USB Audio request of the host.

You have to wait until mclk is stable before reply on the USB Bus. What we saw on the board (on the oscilloscope) was no or a wrong MCLK Signal. So "AudioHwConfig" should only return if the MCLK is stable. It is a good idea to place test pads for eg. MCLK, PLL Sync, 3,3V 1,0V etc.

Another trick is to ad a resistor in the master clock line so you can check with different values e.g. 33 Ohm if the signal gets more solid.

To increase "AUDIO_PLL_LOCK_DELAY" is only a hack, which might help in some cases. By the way the USB standard needs a reply within 1 second so you must not increase AUDIO_PLL_LOCK_DELAY to much.

I assume you have an issue with the MCLK try to measure is on the board.
  • Which PLL are you using?
  • does it generate the right frequencies?
  • are the DAC and DAC configured right?

Who is online

Users browsing this forum: No registered users and 5 guests