Waveshare Music Shield User Manual Download Page 4

Music Shield User Manual 

 

 

Revision 1.1. Date: December 7, 2015. Author: W. L. Yan. Editor: Felix. 

share awesome hardware

address. After the address has been read in, any further data on SI is ignored by the chip. The 16-bit 

data corresponding to the received address will be shifted out onto the SO line. 

XCS should be driven high after data has been shifted out. 

DREQ is driven low for a short while when in a read operation by the chip. This is a very short 

time and doesn’t require special user attention. 

SCI Write 

 

(See the Figure 7 of VS1053b datasheet) 

VS1053b registers are written from using the following sequence. First, XCS line is pulled low to 

select the device. Then the WRITE opcode (0x2) is transmitted via the SI line followed by an 8-bit word 

address. 

After the word has been shifted in and the last clock has been sent, XCS should be pulled high to 

end the WRITE sequence. 

2.3.

 

SCI Register 

VS1053 has 16 SCI registers in total. They are used to control the operation of VS1053b, as 

shown in the following figure: 

SCI registers, prefix SCI_ 

Reg  Type  Reset 

Time 

Abbrev[bits] 

Description 

0x0  rw 

0x4800  80 CLKI 

MODE 

Mode control 

0x1  rw 

0x000C  80 CLKI 

STATUS 

Status of VS1053b 

0x2  rw 

0  80 CLKI 

BASS 

Built-in bass/treble control 

0x3  rw 

0  1200 XTALI  CLOCKF 

Clock freq + multiplier 

0

1

2

3

4

5

6

7

8

9

10 11 12 13

30 31

14 15 16 17

0

0

0

0

0

0

1

0

0

0

0

3

2

1

0

1

0

X

address

XCS

SCK

SI

15 14

data out

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

SO

0

0

0

0 X

0

instruction (write)

DREQ

execution

Summary of Contents for Music Shield

Page 1: ...audio files in TF card can be played directly Onboard MIC for recording with standard 3 5mm 4 segment headphone jack Onboard voltage level converter 74VHC125 compatible with 3 3V 5V MCUs One key cont...

Page 2: ...communicates with a MCU through SPI of which can be controlled by 7 data lines They are XRSET Active low asynchronous reset schmitt trigger input XCS Chip select input active low XDCS Data chip selec...

Page 3: ...an instruction byte address byte and one 16 bit data word Each read or write operation can read or write a single register Data bits are read at the rising edge so the user should update data at the...

Page 4: ...low to select the device Then the WRITE opcode 0x2 is transmitted via the SI line followed by an 8 bit word address After the word has been shifted in and the last clock has been sent XCS should be pu...

Page 5: ...pplication control register 2 0xF rw 0 80 CLKI AICTRL3 Application control register 3 Here are brief introductions about the main registers Please see the section SCI Registers of VS1053b datasheet fo...

Page 6: ...Treble Control in 1 5 dB steps 8 7 0 off ST_FREQLIMIT 11 8 Lower limit frequency in 1000 Hz steps 1 15 SB_AMPLITUDE 7 4 Bass Enhancement in 1 dB steps 0 15 0 off SB_FREQLIMIT 3 0 Lower limit frequenc...

Page 7: ...ster SCI_CLOCKF Bass Register SCI_BASS Vol Register SCI_VOL Register etc 3 Transmit audio data If configuration complete audio data can be transmitted to VS1053 constantly VS1053 will decode the audio...

Page 8: ...eater than 0 you can read as many 16 bit words from SCI HDAT0 See the section Reading PCM IMA ADPCM Data of VS1053b datasheet Note the recording data do not contain any RIFF header of the audio file S...

Page 9: ...STM32F103R 1 Playing Audio 1 Copy some audio files to the root directory of a TF card and insert it into the TF socket of a Music Shield 2 Connect the development board to a PC 3 Compile and program...

Page 10: ...l monitor software PuTTY SecureCRT Arduino Serial Monitor etc Set the software as Baud 9600 Data bits 8 Stop bits 1 Parity None Flow control None 4 Plug in an earphone and you will hear the beautiful...

Page 11: ...ess the Up Down button to adjust the volume and Left Right button to select the title Press the Middle button to play or pause Meanwhile the Serial Monitor software will print songs in TF card root di...

Page 12: ...Music Shield User Manual 12 Revision 1 1 Date December 7 2015 Author W L Yan Editor Felix share awesome hardware N 31 N 32 N 33 N 34 N 35 N 36 N 37 N 38 N 39 N 40...

Page 13: ...Music Shield User Manual 13 Revision 1 1 Date December 7 2015 Author W L Yan Editor Felix share awesome hardware 4 Revision history Revision Changes Date 1 0 Initial release June 26 2015...

Reviews: