Shenzhen Waytronic Electronics Co., Ltd. WT2003S-16S Chip WT2003S-16S Chip V1.03 2017- 01- 17 Note: WAYTRONIC ELECTRONIC CO.,LTD reserves the right to change this document without prior notice. Information provided by WAYTRONIC is believed to be accurate and reliable. However, WAYTRONIC makes no warranty for any errors which may appear in this document. Contact WAYTRONIC to obtain the latest version of device specifications before placing your orders.
Shenzhen Waytronic Electronics Co., Ltd. WT2003S-16S Chip WT2003S-16S Chip Brief introduction WT2003S-16S is a kind of new MP3 chip with powerful function and high quality, satisfying customer’s needs from many aspects. Support standard asynchronous serial communication. Baud rate is 9600, flexible control method. Also support SPI-Flash as memory. It has many play modes: file index play, inter-cut play, single loop play and loop playback. 32 levels volume is adjustable. Stereo sound output.
Shenzhen Waytronic Electronics Co., Ltd. WT2003S-16S Chip Content 1. Part 1.......................................................................................................................................................................1 1.1. Chip features.............................................................................................................................................. 1 1.2. Chip I/O port.....................................................................................
Shenzhen Waytronic Electronics Co., Ltd. WT2003S-16S Chip 3.3.1. Key control.....................................................................................................................................18 3.4. Serial port control.....................................................................................................................................18 3.4.1. Protocol command format...........................................................................................................
Shenzhen Waytronic Electronics Co., Ltd. 1. Part 1 1.1. Chip Features Built in 48MHZ crystal oscillator Support MP3 audio decoding Built in watchdog Four multifunctional 16 bits timer One full-duplex standard UART serial interface Infrared remote control decoder SD card interface Support full-speed USB2.0 Common I/O port can develop many kinds of customized functions 1.2.
Shenzhen Waytronic Electronics Co., Ltd. WT2003S-16S Chip 1 DACL/P45 AO Audio DAC left channel output/ P45 common I/O port 2 DACR AO Audio DAC right channel output 3 AVSS AO Ground 4 VDDIO IO 3.
Shenzhen Waytronic Electronics Co., Ltd. WT2003S-16S Chip 1.4. Electric Parameter Name Mark Condition Mini. value Typica l value Max. value Unit VDD50 LDO input voltage - 3.0 5.0 5.5 V VDD33 LDO 3.3V output current Vout3.3>3.1V - - 150 mA Quiescent current Current under no load Non-loaded - 30 - mA Working current Current in playing state 8R/1W speaker, 32-level volume.
Shenzhen Waytronic Electronics Co., Ltd. WT2003S-16S Chip 2. Part 2 Simulated U Disk version This part mainly introduces current simulated U disk features. 2.1. Simulated U Disk version features Support SPI-FLASH, not support micro SD card. Standard UART communication interface. Can achieve special address play, special inter-cut address play, volume levels, next/ previous, play/ pause, cycle model, etc. Default bit rate is 9600. Not play by default with power on.
Shenzhen Waytronic Electronics Co., Ltd.
Shenzhen Waytronic Electronics Co., Ltd. Start code 0X7E Length WT2003S-16S Chip Command code Parameters Cumulative sum check See below See below See below See below End code 0XEF Note: “Length” (number of bytes) = length (1 byte) + command code (several bytes) + parameters (several bytes) + check sum (1 byte); Cumulative sum check means the low byte of the cumulative summation of “length + command code + parameter”.
Shenzhen Waytronic Electronics Co., Ltd. WT2003S-16S Chip C9 Query the file track number currently playing C9 XXXX CA Query current external device connection status CA XX CB Query the song name currently playing CB XX (8 bytes) 2.3.4.Write operation command 2.3.4.1. Return code format Operation code XX Note: After executing each write command, return the corresponding one-byte operation code.
Shenzhen Waytronic Electronics Co., Ltd. WT2003S-16S Chip “54, 30, 30, 32” are ASCII codes of T002. Only file names are in the from of ASCII code while other data is Hexadecimal; above commands mean T002XXX.mp3 audio file playing in the specified root directory; only corresponding to the first 4 bits is OK. If there are 2 audios and the front 4 audio are the same, it will not play to send this command. 2.3.4.4.
Shenzhen Waytronic Electronics Co., Ltd. WT2003S-16S Chip It sends the maximum volume 31 level in this example. This command is available to adjust volume in real time. 2.3.4.9. Specified play mode (AF) Start code Length 7E Command 04 AF Parameter Check code 00: Single play, no loop playback (default) B3 01:Single loop play mode B4 02:All audio loop play mode B5 03:Random play mode B6 End code EF Note: this command modifies the playing mode in the condition of no power down.
Shenzhen Waytronic Electronics Co., Ltd. WT2003S-16S Chip 2.3.4.12. Specify whether need to return code after playing ends(BA) Start code 7E Length Command Parameter BA 00: no need to return information (default) BE 01: need to return information BF 04 Check code End code EF This command will decide whether need to return information after finishing every audio playing, to show the current song position. Return format: BA XX XX (return the index position, 2-byte data.
Shenzhen Waytronic Electronics Co., Ltd. WT2003S-16S Chip Return format Operation code Return value(2BYTE) 0XC5 The total number of files 2.3.4.16. Query the file track currently playing (C9) Start code Length Command Check code End code 7E 03 C9 CC EF Return format Operation code High byte of file number Low byte of file number 0XC9 XX XX 2.3.4.17.
Shenzhen Waytronic Electronics Co., Ltd. WT2003S-16S Chip Return format Operation code Return value 0XCB XX(8bytes) The return data is in the form of ASCII code. If the song name is less than 8 bytes, those without 8 bytes will be supplemented with 20H to return. 2.3.5.Active feedback code 2.3.5.1. External storage connection status Operation code Return value 0XCA XX When insert or remove U disk, WT2003S will automatically return data to make prompt.
Shenzhen Waytronic Electronics Co., Ltd. WT2003S-16S Chip 2.4. Reference circuit 2.4.1. Stimulated U disk version smallest system circuit (include amplifier circuit) Remark: 1. VDDLDO is the only power input pin, input voltage 2.8V-5.5V. 2. VDDIO is the chip internal LDO output 3.3V, available to supply power for those with low power consumption, such as SPI, SD card, single chip pull-up, etc.. 3. I/O port of chip is 3.3V. 5V single chip microcomputer communication.
Shenzhen Waytronic Electronics Co., Ltd. WT2003S-16S Chip 2.4.2. USB connection circuit Remark: 1. VDDLDO is the only power input pin, input voltage 2.8V-5.5V. 2. VDDIO is the chip internal LDO output 3.3V, available to supply power for those with low power consumption, such as SPI, SD card, single chip pull-up etc.. 3. I/O port of chip is 3.3V. 5V single chip microcomputer communication.
Shenzhen Waytronic Electronics Co., Ltd. WT2003S-16S Chip 2.4.3. Key control circuit Remark: 1. VDDLDO is the only power input pin, input voltage 2.8V-5.5V. 2. VDDIO is the chip internal LDO output 3.3V, available to supply power for those with low power consumption, such as SPI, SD card, single chip pull-up etc.. 3. I/O port of chip is 3.3V. 5V single chip microcomputer communication. If there need to be communication between 5V single chip and WT2003S-16S, 470R resistance can be used to reduce voltage.
Shenzhen Waytronic Electronics Co., Ltd. WT2003S-16S Chip convenient for Windows system to sort. You can copy all the files to the root of reservoir after naming all the audio files and arranging in good order. There are two common copying methods: First is to use shortcut key”Ctrl+C” and “Ctrl+V”. But note that the mouse can not click on any of the files selected to be sent, otherwise it will start sending the file that mouse click on. This would upset file order. Second is sorting file orderly.
Shenzhen Waytronic Electronics Co., Ltd. WT2003S-16S Chip Support combination play. Support index in folder and specify file name to play. 32 levels volume. DAC double channel output. DC 5V power supply. 3.2. SD card version pin introduction Pin No. Pin name Type Function description 1 DACL PWP Audio DAC left channel output 2 DACR AO Audio DAC right channel output 3 VSS AO Ground 4 VDDIO IO 3.3V output port 5 VDDLDO IO Chip main power input port(3.0~5.
Shenzhen Waytronic Electronics Co., Ltd. WT2003S-16S Chip 3.3. Control mode 3.3.1.Key control Key Corresponding resistor Function and operation K1 0R short press, play/pause K2 1K Short press, next audio K3 2K Short press, previous audio K4 3.3K Short press, volume up K5 5.1K Short press, volume down K6 10K Short press, stop playing 3.4. Serial port control 3.4.1.Protocol command format WT2003S is built in standard UART asynchronous serial interface, which belongs to 3.
Shenzhen Waytronic Electronics Co., Ltd. WT2003S-16S Chip 3.4.2.
Shenzhen Waytronic Electronics Co., Ltd.
Shenzhen Waytronic Electronics Co., Ltd. WT2003S-16S Chip 3.4.3.2. Specify SD card file index play(A2) This command can specify to play the audio file in the SD card, influenced by the file storage order, sorting files according to the index order. Start code Length Command High order of track Low order of track Check code End code 7E 05 A2 00 01 XX EF Note: If the specified track does not exist, it will not influence the current play. 3.4.3.3.
Shenzhen Waytronic Electronics Co., Ltd. WT2003S-16S Chip 3.4.3.6. File name play in the specified U disk (A7) Start code Length Command 7E 07 A7 File name (from high to low) 54‘T’ 30(‘0’) 30(‘0’) Check code End code XX EF 32(‘2’) “54, 30, 30, 32” are ASCII codes of T002, and only file names are in the form of ASCII code while other data is hexadecimal; above commands mean T002XXX.mp3 audio play under the specified root directory; only corresponding to the first 4 bits is OK. 3.4.3.7.
Shenzhen Waytronic Electronics Co., Ltd. WT2003S-16S Chip 3.4.3.11. Previous command(AD) Start code Length Command Check code End code 7E 03 AD B0 EF This command can trigger to play the previous music. When playing the first music, sending this command will trigger to play the last music. 3.4.3.12. Volume control command(AE) There are 32 volume levels in total, from 00 to 31(00~1F). 00 is mute; 31 is full volume.
Shenzhen Waytronic Electronics Co., Ltd. WT2003S-16S Chip Combination play means that continue sending 10 or less music group code to WT200S-16S. WT2003S-16S plays audio in turn, according to the sequence of receiving code The difference from directly sending file name to control music play is that before finishing playing music, send the next code, it will not be interrupted. After receiving command, it will do FIFO processing.
Shenzhen Waytronic Electronics Co., Ltd. WT2003S-16S Chip Mark Word: 00 stands for inter-cut specified index address in SPI-FLASH 01 stands for inter-cut specified index address in SD card 02 stands for inter-cut specified index address in U disk Note:Only support inter-cut function when playing audio files in SD card or U disk, support inter-cut play between several devices. When playing in Flash, not support inter-cut, return to 02.
Shenzhen Waytronic Electronics Co., Ltd. WT2003S-16S Chip Return format Operation code Return value(2BYTE) 0XC5 The total number of files 3.4.4.4. Query the total number of music files in the specified SD card folder (C6) Start code Length Command 7E 08 C6 Folder Name (from high to low) ‘M’ ‘U’ ‘S’ ‘I’ Check code End code XX EF ‘C’ The folder name is in the form of ASCII code. The above commands mean reading the total number of audio files in “MUSIC” folder of root directory.
Shenzhen Waytronic Electronics Co., Ltd. WT2003S-16S Chip Return format Operation code High byte of file number Low byte of file number 0XC9 XX XX 3.4.4.8. Query the current external connection status(CA) Start code Length Command Check code End code 7E 03 CA CD EF Return format Operation code Return value 0XCA XX When insert or remove SD card or U disk, WT2000 will automatically return information to make prompt.
Shenzhen Waytronic Electronics Co., Ltd. WT2003S-16S Chip 3.4.5.Attention The interval time of sending command should not be less than 300ms. After sending control command, ensure the command execution by checking the return code to make sure whether it is executed correctly. 3.5. Audio file sorting WT2003S audio file index sort is according to the audio file sort order stored to micro SD card instead of the file name order.
Shenzhen Waytronic Electronics Co., Ltd. WT2003S-16S Chip 3.6. Reference circuit 3.6.1. Micro SD card version smallest system circuit(include amplifier) Remark: 1. WT2003S-16S chip has no internal amplifier. DACR and DACL can directly connect earphone for output. If you want to connect speaker, need connect the corresponding amplifier chip. 2. I/O port of WT2003S-16S chip I/O: 3.3V. 3.6.2.
Shenzhen Waytronic Electronics Co., Ltd. WT2003S-16S Chip Remark: 1. WT2003S-16S chip has no internal amplifier. DACR and DACL can directly connect earphone for output. If you want to connect speaker, need connect the corresponding amplifier chip. 2. I/O port of WT2003S-16S chip I/O: 3.3V, the ADK pin of chip has to connect to a 10k pull-up resistor, the power of chip needs to connect to a capacitance for output/ input to the ground. 3.6.3.Key circuit Remark: 1.
Shenzhen Waytronic Electronics Co., Ltd. WT2003S-16S Chip 4. Chip package dimension Unit: mm 5. History version Version Modification date Description V1.00 2016-01-09 Original version V1.01 2016-2-19 Modify some incorrect description V1.02 2016-10-17 Modify some equivocal description of ADK pin V1.
Shenzhen Waytronic Electronics Co., Ltd. WT2003S-16S Chip Shenzhen Waytronic Electronics Co., Ltd. (previously named Guangzhou Waytronic Electronics Co., Ltd.)-founded in 1999, is a high-tech company specializing in voice technology research, audio product design & control and other software & hardware design.