VS1010 Ultra low cost LCD FM radio + USB DAC + SD/USB MP3 Player demo board

Designing hardware and software for systems that use the VS1010 MP3 Audio DSP Microcontroller.
Hannu
Senior User
Posts: 396
Joined: Mon 2016-05-30 11:54
Location: Finland
Contact:

Re: VS1010 Ultra low cost LCD FM radio + USB DAC + SD/USB MP3 Player demo board

Post by Hannu »

Reason is simple. VS1010 can't find SD card. But it tries to talk with it.

Here's schematics of minidemoboard. https://www.vlsi.fi/fileadmin/products/ ... 23_sch.pdf It is basically what you have built. Your design doesn't have SPI flash and SPI1 tv-out. Also you use LQFP48 package of the VS1010

Here viewtopic.php?t=2622 is some discussion and schematics of the LQFP board. The board is more complex but shows how the SD should be connected in LQFP version (With three pins CMD, DAT0 and CLK)

Take a look at those schematics and try to notice what's different in your design. VS1010 SD-interface is really robust and usually works even when everything is against it.
George
Senior User
Posts: 76
Joined: Fri 2021-12-03 11:03

Re: VS1010 Ultra low cost LCD FM radio + USB DAC + SD/USB MP3 Player demo board

Post by George »

Thank you.
My schematics is the same as yours. There is a difference in connecting the microSD. Your microSD connects directly, and mine through the module. But in this module, there are only 10k pull-up resistors for each signal and a 3.3V capacitor.
With the help of an oscilloscope, I see that the VS1010 sends a request to the microSD (MOSI or DI) (yellow) and receives a response from microSD (MISO or DO) (blue).
Is this response wrong?
pic_241_6.jpg
pic_241_6.jpg (151.04 KiB) Viewed 853 times
George
Senior User
Posts: 76
Joined: Fri 2021-12-03 11:03

Re: VS1010 Ultra low cost LCD FM radio + USB DAC + SD/USB MP3 Player demo board

Post by George »

I connected a logic analyzer to pins of microSD.
In the picture below channel 0 is CLK, channel 1 is MOSI, channel 2 is MISO. An exchange protocol file is also attached, in which VS1010 sends different messages to the microSD, and in response it always receives the same - 0xFF.
How does this correspond to the correct communication protocol between VS1010 and the microSD?
untitled.csv
(35.12 KiB) Downloaded 53 times
ff.JPG
ff.JPG (48.77 KiB) Viewed 842 times
Hannu
Senior User
Posts: 396
Joined: Mon 2016-05-30 11:54
Location: Finland
Contact:

Re: VS1010 Ultra low cost LCD FM radio + USB DAC + SD/USB MP3 Player demo board

Post by Hannu »

I have one idea. What if the card thinks, it is in SPI mode, not in SD mode...

If card pin 1 (CD/DAT3) is low, card enters to SPI mode, if it has high pull-up, card goes to SDIO mode. With LQFP48 the SD_DAT3 isn't available.

VS1010 doesn't support SPI mode as it is problematic modern high capacity cards. And no-one hasn't been interested in writing any support driver.

Another thing I noticed. In the photo, is the card really pushed to the end of the socket?
George
Senior User
Posts: 76
Joined: Fri 2021-12-03 11:03

Re: VS1010 Ultra low cost LCD FM radio + USB DAC + SD/USB MP3 Player demo board

Post by George »

:o :o :o
CD\DAT3 is CS in SPI.
My VS1010 have not other devices SPI so I make CS is low of course. :roll:
If VS1010 doesn't support SPI I must CD\DAT3 = high. It is not problem because for this it is enough to bite off the pin of module microSD!
I did not do this because I was sure that for the SDIO mode I need DAT0, DAT1 and DAT2 together .
This is not so, and in the SDIO mode there is enough DAT0? :?:
George
Senior User
Posts: 76
Joined: Fri 2021-12-03 11:03

Re: VS1010 Ultra low cost LCD FM radio + USB DAC + SD/USB MP3 Player demo board

Post by George »

I did CD\DAT3 = high.
And now I see this: :cry:
SDIO.JPG
SDIO.JPG (54.38 KiB) Viewed 831 times
Hannu
Senior User
Posts: 396
Joined: Mon 2016-05-30 11:54
Location: Finland
Contact:

Re: VS1010 Ultra low cost LCD FM radio + USB DAC + SD/USB MP3 Player demo board

Post by Hannu »

OK now we have connection. Last time I saw that error combination, I had bad power for SD card. How do you power it?

There are two SDIO modes (which in this case are interesting). 1-bit and 4 bit. I wrote down them below. SPI signals are separated with pipe. When using 4 bit mode, the DAT1,2, and 3 are used also. So those are the electrical differences.

1 CD/DAT3 | CS
2 CMD | DI
3 GND
4 Vdd
5 CLK | SCLK
6 GND
7 DAT0 | DO
8 DAT1
9 DAT2
George
Senior User
Posts: 76
Joined: Fri 2021-12-03 11:03

Re: VS1010 Ultra low cost LCD FM radio + USB DAC + SD/USB MP3 Player demo board

Post by George »

But I saw the answer 0xFF before, and now I see the same answer 0xFF.
Scheme below.
Resistors 10K to CLK, MISO and MOSI are located in the module.
schem.jpg
schem.jpg (485.58 KiB) Viewed 822 times
George
Senior User
Posts: 76
Joined: Fri 2021-12-03 11:03

Re: VS1010 Ultra low cost LCD FM radio + USB DAC + SD/USB MP3 Player demo board

Post by George »

I have vs1010_radio_lcd_v111.pdf
And I see:
Attachments
SD.JPG
SD.JPG (33.19 KiB) Viewed 820 times
Hannu
Senior User
Posts: 396
Joined: Mon 2016-05-30 11:54
Location: Finland
Contact:

Re: VS1010 Ultra low cost LCD FM radio + USB DAC + SD/USB MP3 Player demo board

Post by Hannu »

In my opinion this is power issue. You have AVDD and IOVDD together. It probably rises IOVDD to 3.6 volts. The separation is done so that AVDD is clean supply and noise wouldn't get to SAR, DAC or USB from digital side. Separating them would let IOVDD to be regulated to 3.3 volts.

I would also add the capacitors to every power pin. As I believe this board is for experimenting, I would take a piece of pcb, glue that on top of VS1010 and ground the board. If the power pin isn't on the first row of the, I would put some polyimide tape on top top of those non power pins and then solder the 100 nF capacitor to it and the ground side to the top pcb. That 3D build wouldn't win beauty contests.

Next bypass capacitor, if you don't have, would go close to SD-card module. Those are power hungry beasts and suck huge peak currents.

If I designed VS1010 LQFP48 circuit, I would use 9 bypass capacitors, 6 100 nF for each pin and pins 1,3,4 would get own 1-10 uF power reserve. But let's try to get this design stable.
Post Reply