About 1053 - Please check my schematic

Designing hardware that uses VLSI Solution's devices as slave codecs such as an external MP3 decoder chip for a host microcontroller.
demonoR
Senior User
Posts: 59
Joined: Sun 2011-01-16 20:08

About 1053 - Please check my schematic

Post by demonoR » Sun 2011-01-16 20:12

Hello,

I just recently bought one of your products, it is vs1053 decoder, I want to connect it to my atmega32 microcontroller, and test it, I made some schematics, but I do not know If i did not any stupid mistakes.. So if it is possible maybe somebody could check my schematic.



Nick
Attachments
fat32.jpg
fat32.jpg (218.86 KiB) Viewed 5555 times
Last edited by Panu on Mon 2011-01-17 12:44, edited 1 time in total.
Reason: clarified the topic title

User avatar
Panu
VLSI Staff. Currently on holiday.
Posts: 2736
Joined: Tue 2010-06-22 13:43

Re: About 1053

Post by Panu » Mon 2011-01-17 12:43

Hi, and thanks for your mail. It's a good idea to let us review the schematic before implementing!

Here's some random observations:

VS1053:

- Pull RX high
- Put RC circuit also to GBUF
- Might be better to pull XRESET high than low, so the chip will work even without the XRESET connection to microcontroller.
- I would recommend a series resistor of 10 ohm between the headphone connector and the LEFT and RIGHT pins.
- serious: the common of the headphones must not be connected to ground if DC connection is made to LEFT, RIGHT. Connect the common pin of the headphones directly to GBUF pin.

SD card:

- The data output of SD card requires a pull-up resistor
- I guess from the schematic that you are pulling the extra data pins of SD card low; I believe this might be a violation; better to leave unconnected or pull weakly high.

-Panu
Info: Line In and Line Out, VS1000 User interface, Overlay howto, Latest VSIDE, MCU Howto, Youtube
Panu-Kristian Poiksalo, VLSI Solution Oy

demonoR
Senior User
Posts: 59
Joined: Sun 2011-01-16 20:08

Re: About 1053 - Please check my schematic

Post by demonoR » Mon 2011-01-17 16:54

Oh, thank you for so quick reply, I have one more question, do I need to have so many 100n capacitors? I saw some schematics without 100n capacitor near CVDD, IOVDD and AVDD ports, can I remove them for testing purpose?

User avatar
Panu
VLSI Staff. Currently on holiday.
Posts: 2736
Joined: Tue 2010-06-22 13:43

Re: About 1053 - Please check my schematic

Post by Panu » Wed 2011-01-19 10:29

Hi!
do I need to have so many 100n capacitors?
The old rule of thumb is one 100n cap per each power supply pin. I would recommend following the rule of thumb, but if you're tight on PCB real-estate, you can omit some. I'd have a couple of caps per each voltage (AVDD, IOVDD, CVDD) at least.

-Panu
Info: Line In and Line Out, VS1000 User interface, Overlay howto, Latest VSIDE, MCU Howto, Youtube
Panu-Kristian Poiksalo, VLSI Solution Oy

demonoR
Senior User
Posts: 59
Joined: Sun 2011-01-16 20:08

Re: About 1053 - Please check my schematic

Post by demonoR » Thu 2011-01-20 12:49

Hi,

Yes I made some changes, but I do not get it about sd card pull up resistor?? What about it?

Nick
Attachments
fat32.jpg
fat32.jpg (74.7 KiB) Viewed 5528 times

User avatar
Panu
VLSI Staff. Currently on holiday.
Posts: 2736
Joined: Tue 2010-06-22 13:43

Re: About 1053 - Please check my schematic

Post by Panu » Thu 2011-01-20 13:34

demonoR wrote:Yes I made some changes, but I do not get it about sd card pull up resistor?? What about it?
See the SD card pinout image at: http://elasticsheep.com/wp-content/uplo ... pinout.png.

I feel that the DAT0, DAT1, DAT2 and DAT3 pins all require pull-ups or need to be totally disconnected. And I fail to see the pins in your connector diagram, where they might be connected to. But I see a lot of ground pins in the connector, which makes me afraid that maybe some of the DAT pins (like DAT2 and DAT3) might be pulled to ground and I know from experience that that will make most SD cards not work...

Maybe the DAT2 and DAT3 pins are the ones marked "NC" and "RES", which are floating, which is OK, though I would be more comfortable with pull-ups. Also a pull-up for the chip select (CS/DAT3) would make me more comfortable..

-Panu
Info: Line In and Line Out, VS1000 User interface, Overlay howto, Latest VSIDE, MCU Howto, Youtube
Panu-Kristian Poiksalo, VLSI Solution Oy

demonoR
Senior User
Posts: 59
Joined: Sun 2011-01-16 20:08

Re: About 1053 - Please check my schematic

Post by demonoR » Thu 2011-01-20 13:56

Hi,

Here I uploaded my micro sd card connection.. So you can see why there are so many ground pins.. And some card detection pins. I wrote the pings in SPI mode.. But I havent seen the circuits with pull up resistors.. Can you show any example, And why do I need them?

http://fps-clan.ucoz.com/micro_sd.pdf

Nick

User avatar
Panu
VLSI Staff. Currently on holiday.
Posts: 2736
Joined: Tue 2010-06-22 13:43

Re: About 1053 - Please check my schematic

Post by Panu » Thu 2011-01-20 14:03

Here I uploaded my micro sd card connection..
Ok, so the NC and RES pins are DAT1 and DAT2 and they are unconnected, so you're ok.
Can you show any example
Not at the top of my head... only personal experience...
And why do I need them?
Some SD cards go from SPI mode to SD mode if DAT1 or DAT2 is low and stop working in SPI mode. I have experienced this among some of the more than 50 different brands/models of SD cards I've written code for during the last few years...

-Panu
Info: Line In and Line Out, VS1000 User interface, Overlay howto, Latest VSIDE, MCU Howto, Youtube
Panu-Kristian Poiksalo, VLSI Solution Oy

demonoR
Senior User
Posts: 59
Joined: Sun 2011-01-16 20:08

Re: About 1053 - Please check my schematic

Post by demonoR » Thu 2011-01-20 14:26

Ok, I understand.. So my sd is ok? And my full schematic is ok? Or you see more mistakes? You see I simulated my sd card in proteus, and it worked. But proteus allow to do mistakes and it ignores it. Do you know which micro sd card is better to use?

Nick

shernas
User
Posts: 2
Joined: Fri 2011-01-28 22:01

Re: About 1053 - Please check my schematic

Post by shernas » Sat 2011-01-29 0:43

Dear demonoR.

1. Seems like VCC for the Atmega is 5V0. The VS1053's I/O pins are rated for 3V3 working voltage ( same for SD card). You must set working voltage for the MCU 3V3 or add the level shifters etc.
2. Use the ca. 100R series resistors for SPI bus. Connect the ISP's SPI lines directly to the MCU pins. It can prevent the situation "I can't program the Atmega"
3. Add the transistor to control the power for SD card.
4. Connect DREQ to the MCU pin that can hold the external interrupt.

And visit the very great resource:
http://www.dharmanitech.com/2009/01/sd- ... fat32.html

P.S. Tip - modify "READ FILE" to read not via RS232 but via SPI ;)

Post Reply