0

What does CS to for the VS1053 breakout board?
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

What does CS to for the VS1053 breakout board?

by fcohen on Sat Jan 02, 2021 2:07 pm

I'm wiring together an ESP32 development board, Adafruit VS1053 music player, ST7735 display, and a second Micro-SD card breakout. They all run on SPI. I am disabling the other devices when talking to the VS1053 using:

pinMode(deviceCS, OUTPUT);
digitalWrite(deviceCS, HIGH);

I am using these connections:

CS -> GPIO 16
XDCS-> GPIO 17
SDCS -> GPIO 32
DREQ -> GPIO 4

CLK - GPIO18
MOSI - GPIO23
MISO - GPIO19
RST - GPIO25

I understand why the VS1053 board has XDCS and SDCS (to talk to the VS1053 chip and the SD Card), and I'm wondering: what is the CS used for?

-Frank

fcohen
 
Posts: 24
Joined: Mon Jan 06, 2014 5:14 am

Re: What does CS to for the VS1053 breakout board?

by rafikii on Tue Jul 27, 2021 10:46 pm

I think thats the VS1053 chip

rafikii
 
Posts: 58
Joined: Sat Jan 30, 2021 1:18 pm

Re: What does CS to for the VS1053 breakout board?

by alphanumeric on Wed Jul 28, 2021 4:07 am

I'll be stating the obvious (for some) but here goes. CS is the Chip Select pin, or Chip Enable etc. You can have multiple devices on SPI, but each one has to use a different CE pin from the Pi. I hope this helps.

SPI0
GPIO 7, Pin 26, CE1
GPIO 8, Pin 24, CE0
GPIO 9, Pin 21, MISO
GPIO 10, Pin 19, MOSI
GPIO 11, Pin 23, SCLK

SPI1
GPIO 16, Pin 36, CE2
GPIO 17, Pin 11, CE1
GPIO 18, Pin 12, CE0
GPIO 19, Pin 35, MISO
GPIO 20, Pin 38, MOSI
GPIO 21, Pin 40, SCLK

alphanumeric
 
Posts: 589
Joined: Sun Sep 07, 2014 7:06 pm

Please be positive and constructive with your questions and comments.