Waveshare Music Shield Скачать руководство пользователя страница 5

Music Shield User Manual 

 

 

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

share awesome hardware

0x4  rw 

0  100 CLKI 

DECODE_TIME  Decode time in seconds 

0x5  rw 

0  450 CLKI 

AUDATA 

Misc. audio data 

0x6  rw 

0  100 CLKI 

WRAM 

RAM write/read 

0x7  rw 

0  80 CLKI 

WRAMADDR 

Base address for RAM write/read 

0x8  r 

0  80 CLKI 

HDAT0 

Stream header data 0 

0x9  r 

0  210 CLKI 

HDAT1 

Stream header data 1 

0xA  rw 

0  80 CLKI 

AIADDR 

Start address of application 

0xB  rw 

0  80 CLKI 

VOL 

Volume control 

0xC  rw 

0  80 CLKI 

AICTRL0 

Application control register 0 

0xD  rw 

0  80 CLKI 

AICTRL1 

Application control register 1 

0xE  rw 

0  80 CLKI 

AICTRL2 

Application 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 for more details) 

SCI_MODE Register: 

it is used to control the operation of VS1053b. 

Bit  Name 

Function 

Value  Description 

SM_DIFF 

Differential 

normal in-phase audio 

left channel inverted 

SM_LAYER12 

Allow MPEG layers I & II 

no 

yes 

SM_RESET 

Soft reset 

no reset 

reset 

SM_CANCEL 

Cancel decoding current file  0 

no 

yes 

SM_EARSPEAKER  EarSpeaker low setting 

off 

active 

SM_TESTS 

Allow SDI tests 

not allowed 

allowed 

SM_STREAM 

Stream mode 

no 

yes 

SM_EARSPEAKER  EarSpeaker high setting 

off 

active 

SM_DACT 

DCLK active edge 

rising 

falling 

SM_SDIORD 

SDI bit order 

MSb first 

MSb last 

Содержание Music Shield

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Отзывы: