<<

eso:04,21-12 1 2011-11-24 0.42, Version: Features Key .1/.2 UI OE CIRCUIT AUDIO G.711/G.722 • • • • • • • • • • • • aeadut 2GI pins GPIO 12 upto soft- and with ware added be may functions New purposes debugging for UART processor standalone a as co-processor slave or a as either used be Can interfaces data and control Serial DAC external for interface I2S power-off and power-on protection Quiet code user for data ID and code Unique user for RAM KiB 96 Upto support Streaming ( G.711 PCM; : Duplex Full ADPCM) G.722 law, G.711 ADPCM, IMA (PCM, WAV kbps); (5-384 profiles all 4.0/4.1/7/8/9 WMA FLAC; PS); ; + (SBR 3) (Level v2 HE-AAC AAC-LC(+PNS), 2 / MPEG4 (optional); II) (layer MP2 (CBR III layer +ABR)); audio +VBR 2 & 1 (MPEG MP3 Decoders: PRELIMINARY ADPCM; ( IMA G.711 PCM; Vorbis; Ogg MP3; Encoders: µ MP3/OGG/AAC/WMA/FLAC/ lw -a) .2 ADPCM G.722 A-law); -law, µ lw -a) .2 ADPCM G.722 A-law); -law, S03 DATASHEET VS1063a S03 Datasheet VS1063a µ -law/A- Applications memory. SPI external system from boots a that cir- in stand-alone cuit a slave as or IC” microcontroller, a decoder encoder with “MP3 “MP3 an or as IC” both act can VS1063a ear- buffer. voltage an common by a and followed amplifier ADC, phone stereo a and DAC stereo variable-sample-rate well high-quality as UART, a a as pins, I/O upto purpose interfaces, general data 12 input and control run- serial applications decoder, built-in user any with for simultaneously ning RAM data upto and KiB RAM 80 instruction KiB 16 memories, VS_DSP core DSP low-power pro- prietary high-performance, a contains VS1063a audio of multitude a formats. for codec and decoder encoder, versatile easy-to-use, an is VS1063a Description • • • • • nentphones Internet recorder and player Standalone transfer audio Wireless client and server Streaming player audio MP3-recording 4 ROM , eso:04,21-12 2 2011-11-24 0.42, Version: features. or identification management unit rights digital for basis pro- a ID vides chip unique factory-programmable A VS1063a. to added been have plications ap- phone for functions codec full-duplex Also recording. Vorbis particu- Ogg and features, MIDI MP3 new larly and many MP1 and (except func- decoding) the VS1053 all of has tionality It for VS1053. alternative Solution’s pin-compatible VLSI a is VS1063a Description Further Features Additional • • • • • • • • • • • • • • PRELIMINARY package RoHS-compliant Lead-free I/O digital, analog, for voltages Separate 30 a driv- ing of capable driver earphone Stereo change volume smooth for detection Zero-cross channels between error phase no with DAC stereo on-chip High-quality operation Low-power multiplier clock PLL Internal or clock MHz MHz 26 13 . . . . 24. 12. single a with Operates Shifter Speed Adjustable stream main to listening while sidestream a inserting allows Mixer stream PCM to con- listening A/D while input monitoring verter allows Mixer AD equalizer 5-channel a Alternatively controls treble & Bass Processing Spatial EarSpeaker Ω load S03 Datasheet VS1063a otefl 0KBta saalbei VS1063a. in available is that KiB expanded 80 full be the can to RAM the for data on RAM the Depending data application, code free applications. free of plugin of KiB user 4 KiB 16 about are and there RAM default, a As Environment). opment Devel- Integrated us- Solution’s (VLSI or VS1063a VSIDE the interface ing for user code own processing their signal write can Users Code User controller. host a and by provided code be Alternatively can data memory. FLASH EEPROM the SPI or from processor either boot standalone can a VS1063a as used When interface. audio host full-duplex the by read In be processor. then can which data, the optionally inputs, analog its applications. from user load RAM to In user even the or to specific memory, effects, application DSP add decod- like to basic features, possible the is to it addition ing, In serial bus. a control via controlled is Decoding DAC. sigma- delta oversampling an to control dig- volume 18-bit ital stream an through input passed The and decoded bus. is input serial a through mode decoder modes: operation different three in operate can VS1063a co-processor slave a as used When standalone a as or processor. co-processor slave modes: a host two as of one in operates VS1063a Modes Operating noe mode encoder S03 eevsisiptbitstream input its receives VS1063a , encoder oe mode codec or S03 a ed audio reads can VS1063a codec oe In mode. S03 fesa offers VS1063a decoder eso:04,21-12 3 26 2011-11-24 0.42, Version: Formats Audio Supported 8 15 12 9 3 Buses SPI 7 LQFP-48 Diagram, Connection 6 Descriptions Pin and Packages 5 Specifications & Characteristics 4 Definitions 3 Licenses 2 Disclaimer 1 Figures of List Contents of Table VS1063 Contents 26 ...... Decoders Audio Supported 8.1 12 ...... 11 . 11 ...... 10 ...... 11 ...... 9 ...... 9 ...... Packages ...... 5.1 ...... Initialization . Boot . . . . . - . . Characteristics . . . Switching ...... Characteristics . Digital . . . 4.6 . . . . . Consumption . Power 4.5 . . . . . Characteristics Analog . 4.4 . . Conditions Operating . Recommended 4.3 Ratings Maximum Absolute 4.2 4.1 23 ...... PRELIMINARY . . . 24 ...... 21 . . . . 18 . . . . . set 17 . . SM_SDISHARED . and . . SM_SDINEW . . with . . . Examples . SPI . . . . . Diagram . Timing . 19 . SPI 17 7.7 ...... 7.6 ...... (SCI) . . Interface . . Command . . . . Serial for . . . . Protocol . . Serial ...... 7.5 ...... (SDI) . Interface . . Data . Serial . . . for Protocol . . . Serial . . DREQ Pin . . Request . Data . 7.4 . . . . 7.3 ...... Descriptions . Pin Bus . SPI . General 7.2 7.1 12 ...... LQFP-48 5.1.1 24 . 24 ...... 22 . 25 . . . . 22 . . 21 ...... 21 ...... 20 ...... 19 ...... Bytes . . . . SDI . . . Two . . . . of . . . . Middle . . . . . in . . . . Operation ...... SCI ...... Bytes . . . SDI . . Two . . . 7.7.3 ...... Writes . . . SCI . Two . . . 7.7.2 ...... 7.7.1 ...... 19 ...... 20 . . . . Write . . Multiple . . . . . SCI ...... Write . . SCI . . . . 7.5.4 ...... Read . . . . SCI . 7.5.3 . . . . . 17 . . . . General . . 17 . 7.5.2 ...... 7.5.1 ...... Mode . . . SDI . (deprecated) . Passive . Mode . . Compatibility . . VS1001 . Mode) in . (New . SDI . Modes 7.4.4 . . Native . VS10xx . . in . SDI . . 7.4.3 . . . . . General 7.4.2 ...... 7.4.1 . . . . (deprecated) Mode . Compatibility VS1001 Mode) (New Modes Native VS10xx 7.2.2 7.2.1 S03 Datasheet VS1063a CONTENTS 17 8 7 7 6 1 eso:04,21-12 4 2011-11-24 0.42, Version: 33 Operation 10 Description Functional 9 39 ...... 38 . . 38 ...... 37 . . . 36 . 33 ...... 35 ...... 34 ...... Registers . . . . SCI . . . . (SCI) . . . Interface . . . Control . . . . Serial . . 9.8 . . (SDI) . 31 . . Interface . . . Data . . . Serial . 9.7 ...... Processing . . . Spatial . EarSpeaker . . VS1063a 9.6 . . of . . Flow . . Data . . . Codec VS1063a 9.5 . . of . Flow . . Data . Encoder . VS1063a 9.4 . of . Flow . Data . Decoder . 9.3 . . . Features Main . 9.2 . . 9.1 ...... Formats Encoding Audio Supported 8.2 55 . . 54 ...... 51 ...... 51 . . . . . 51 ...... 50 ...... 50 PRELIMINARY ...... Encoding . . Audio ...... Data . 10.7 . . PCM . . Feeding ...... 10.6 ...... Decode . . and . . Play . . . . . Mode . 10.5 . Power . Low . . . . . 10.4 Reset . Software . . . . 10.3 Reset Hardware . . 10.2 Clocking 10.1 49 49 . . . . . 49 ...... 45 45 ...... 46 . . . . . 45 ...... 44 . . 43 . . . . . 45 ...... 42 ...... 40 ...... (RW) ...... SCI_AICTRL[x] ...... 9.8.12 . (RW) . . . . SCI_VOL ...... 9.8.11 (RW) ...... SCI_AIADDR . . (R) . SCI_HDAT1 ...... and SCI_HDAT0 . . . . . 9.8.10 ...... (W) . . . . . SCI_WRAMADDR . . 9.8.9 ...... (RW) . . SCI_WRAM . . . . . 9.8.8 ...... SCI_AUDATA (RW) . 9.8.7 ...... (RW) . SCI_DECODE_TIME . . . 9.8.6 . . . . . (RW) . . SCI_CLOCKF . 9.8.5 . . . . (RW) SCI_BASS . . 9.8.4 . . . (RW) SCI_STATUS 9.8.3 . (RW) SCI_MODE 9.8.2 9.8.1 32 . 32 ...... 30 30 . 31 ...... 29 ...... Formats . . . Encoding . WAV . . . RIFF . . Supported . Formats . . Encoding . . Vorbis . . Formats Ogg 27 . Encoding . Supported . III) 8.2.3 . layer . . (MPEG . . MP3 . . . Supported . . 8.2.2 ...... Formats 8.2.1 . . Decoder . WAV 26 . RIFF . . Supported . . Formats . . Decoder 26 . FLAC . . Supported 8.1.7 . . Formats . Decoder . . WMA . Decoder Supported . . 8.1.6 14496-3) . . . ISO/IEC . and . . . 13818-7 8.1.5 . . (ISO/IEC . . . AAC . Supported . Formats . Decoder . Vorbis . Formats Ogg Decoder Supported . II) 8.1.4 layer (MPEG Formats MP2 Decoder Supported III) 8.1.3 layer (MPEG MP3 Supported 8.1.2 8.1.1 57 . 58 . 55 ...... 52 ...... 53 . . 52 ...... 52 ...... 53 ...... SCI . . . . Through . . . . Data . . . Encoded . . . . Reading ...... Procedure . . . 10.7.3 Encoding . . . . The ...... Registers . . 10.7.2 Control . . . Encoding ...... 10.7.1 ...... Time . . Decode . Correct . . Audio Maintaining . without . . Rewind . and . . 10.5.5 Forward . Fast ...... 10.5.4 Play . Fast . . . 10.5.3 Playback Cancelling File Whole 10.5.2 a Playing 10.5.1 27 ...... Formats S03 Datasheet VS1063a CONTENTS 50 eso:04,21-12 5 82 2011-11-24 0.42, Version: 78 80 Information Contact 13 Changes Version Document Latest 12 Changes Version VS1063a 11 PRELIMINARY76 ...... 78 ...... 2011-04-13 . VS1063a, and . VS1053b Between . Changes Firmware . . 11.1 . . . 63 . . 63 ...... 62 ...... 64 . Tests . . SDI . . 10.12 ...... Structure) . . (Parametric . Parameters . . Extra . 10.11 . . . Boot . . I2C . 10.10 Boot SPI . . 10.9 Mode Codec 10.8 76 77 76 . . . . 77 ...... 76 ...... 72 . . . . 73 ...... 72 ...... 70 ...... 69 ...... 71 ...... 68 ...... Tests . . . . . ...... and . . . Sine ...... New ...... 10.12.5 ...... Test . . . . . Memory ...... 66 . 10.12.4 ...... Test ...... SCI ...... 10.12.3 . . . . 65 ...... Test . . Pin ...... 10.12.2 ...... Test ...... Sine . . . . . 10.12.1 ...... Parameters . . . . . Other . . . . 10.11.9 ...... EarSpeaker ...... 10.11.8 . . 62 . . . . Shifter . . . Speed . . . 10.11.7 ...... Equalizer . . 5-band . . . . EQ5 ...... 10.11.6 ...... 59 Mixer 60 . . PCM . . . 61 10.11.5 ...... 60 . . Mixer . . . . . AD . . . . 10.11.4 ...... Meter . . . . VU ...... 10.11.3 ...... 60 . Configurations . . . Player . . . 10.11.2 ...... config1 . . . version, . . chipID, . . . . . 10.11.1 ...... Delays . Encoder/Decoder ...... 10.7.9 Considerations . . . Encoder-Specific . . . . . Volume . . 10.7.8 Monitoring . Encode . . . . Considerations 10.7.7 Samplerate . . Encoder . Data . 10.7.6 Encoded Playing . . 10.7.5 Headers File 10.7.4 S03 Datasheet VS1063a CONTENTS eso:04,21-12 6 2011-11-24 0.42, Version: Figures of List PRELIMINARY36 . . 24 35 . . . . . 34 ...... 24 . . . 23 ...... 22 ...... 22 ...... 21 ...... 25 ...... 37 ...... 20 ...... sound ...... inside-the-head . . . . 20 . . normal ...... vs. . . . sources ...... sound ...... externalized . . . . . EarSpeaker . . . . VS1063a ...... of . . . . flow ...... data . . . 12 16 . . Codec 12 . . . . . VS1063a . . . of ...... flow . . . data ...... 15 Encoder . . VS1063a ...... 15 . of . . . flow operation ...... data SCI . . . 14 . . Decoder . an . . . . . by ...... separated . . . . . bytes ...... SDI . . 13 Two ...... bytes . . . . SDI . . 12 Two ...... operations ...... SCI . . 11 Two . . diagram . . . . . timing . . SPI ...... write 10 . . . . word . . . multiple ...... SCI ...... 9 . write . . . word . . . SCI . . . . . 8 . . . read . . word . transfer . . SCI byte . . two . . 7 - . . . signal . transfer BSYNC . byte . . one 6 . . - . signal . . BSYNC LQFP-48 . . 5 using diagram . . connection Typical . packaging 4 LQFP-48 . in . VS1063a 3 LQFP-48 configuration, Pin 2 1 S03 Datasheet VS1063a ITO FIGURES OF LIST eso:04,21-12 7 PRELIMINARY 2011-11-24 decoding 0.42, SBR Version: and PS Also SCI_HDAT1. default, register by disabled. of disabled with separately the contents or is be AAC, variable, the can parametric_x.config1 II or on the layer format using based WMA, by MPEG specific microcontroller excluded II, of be a a layer can Decoding play formats 1.0/2.0 AAC not required. and MPEG WMA does be and license: product not customer should end license the a respective if require knowledge, would Solution’s otherwise VLSI that of best the To see licensing, AAC MPEG4 technologies the of (PS) part stereo currently parametric are http://www.vialicensing.com/licensing/aac-overview.aspx Both and Technologies. (SBR) Coding replication by developed band spectral patent individual contains or VS1063a Corporation Licensing Via from license which proper 14496-3) a ISO/IEC holders. without and used 13818-7 be (ISO/IEC technology cannot decoding AAC contains VS1063a Microsoft. from cannot license and a Microsoft without of distributed rights further property or intellectual used certain be by protected is Microsoft. product from This technology decoding WMA contains VS1063a arise may II. that layer issues to patent pertaining any patents for all liable are formats. you these decoding, using II from Layer for enable license you If independent Note: An http://mp3licensing.com. like). visit please the discs, details, and For versatile digital required. cards is discs, audio-on- memory use (compact of such drives, media physical (pay-audio hard on systems chips, Internet, or distribution semiconductior like) (via the content applications and other streaming applications networks), demand channels), other distribution (terres- systems other and/or Layer-3 broadcast and/or intranets MPEG revenue-generating distribute cable in to satellite, product right any this trial, imply with nor license created a content convey compliant not does product this of Supply Thomson. and IIS Fraunhofer from licensed technology coding audio Layer-3 MPEG Licenses 2 called documents two Guide in ’s provided VS1063a is information Additional http://www.vlsi.fi/en/support/software/vs10xxplugins.html the that assumes datasheet This a is This Disclaimer 1 preliminary aahe.Alpoete n grsaesbett change. to subject are figures and properties All datasheet. S03 Datasheet VS1063a on iesn fME . . ae I eoigde o cover not does decoding III Layer 2.0 / 1.0 MPEG of licensing Joint . S03 Patches VS1063a akg,aalbeat available package, o oeinformation. more for a enlae n activated. and loaded been has , S03 adaeGuide Hardware VS1063a LICENSES 2 and , eso:04,21-12 8 2011-11-24 0.42, Version: W VSIDE VS_DSP VBR Mi Ki CBR b B ABR Definitions 3 Bit. ye bits. 8 Byte, od nV_S,isrcinwrsae3-isaddt od r 6bt wide. 16-bits are words data and 32-bits are words instruction VS_DSP, In Word. Kb”= “Kibi” Mb”= “Mebi” hnaeae vralne time. longer a over averaged when aibeBtae irt ilvr eedn ntecmlxt ftesuc material. source the of complexity the on depending vary will Bitrate BitRate. Variable osatBtae irt fsra ilb h aefrec opeso block. compression each for same the be will stream of Bitrate BitRate. Constant number given a to close stay will but locally, vary may stream of Bitrate BitRate. Average

PRELIMINARY Environment. Development Integrated Solution’s VLSI LISlto’ S core. DSP Solution’s VLSI 2 10 2 20 04(E 60027-2). (IEC 1024 = 087 IC60027-2). (IEC 1048576 = S03 Datasheet VS1063a DEFINITIONS 3 eso:04,21-12 9 2011-11-24 0.42, Version: CLKI. for specification maximum exceed able not be Do to MHz) (24.576 MHz speed. 12.288 correct least at 4 at kHz be 48 must play XTALI to Thus, set). is SM_CLK_RANGE if 3 2 1 Conditions Operating Recommended 4.2 2 1 Ratings Maximum Absolute 4.1 Specifications & Characteristics 4 atrCokDt Cycle Duty Clock Master Multiplier Clock Internal Frequency Clock Internal Frequency Clock Input Voltage I/O Digital Positive REF=1.65V Analog, Positive REF=1.23V Analog, Positive Ground Digital and Analog Temperature Operating Ambient Parameter Temperature Storage Temperature Operating Input Digital Any at Voltage Pin Non-Power Any at Current Supply Positive I/O Supply Positive Digital Supply Positive Analog Parameter ee au is value Reset 9.8.2. section see 1.65V, and immunity. 1.23V latch-up between for selected possible internally as be device can the voltage close Reference as together connected be Must V 3.6 exceed not Must latch-up. cause can current Higher PRELIMINARY XTALI/512 (or XTALI/256 is speed correct with played be can that samplerate maximum The 1 . 0 × eomne SC_MULT= Recommended . S03 Datasheet VS1063a 3 4 1 2 1 Symbol IOVDD CVDD GDDGND AGND AVDD Symbol IOVDD CVDD AVDD AVDD XTALI CLKI -0.3 -0.3 -0.3 -0.3 Min -65 -30 3 . 5 IOVDD+0.3 1 × Min -30 1.8 1.7 3.3 2.5 40 12 12 . HRCEITC SPECIFICATIONS & CHARACTERISTICS 4 0 SC_ADD= , × +150 1.85 Max ± +85 3.6 3.6 50 36.864 12.288 3 Typ 2.8 1.8 3.3 2.8 0.0 50 . 5 × 2 1 . ◦ ◦ V mA V V V Unit 0 C × 5 61.5 1.85 Max +85 3.6 3.6 3.6 60 13 . 0 (SCI_CLOCKF=0x8800). × % MHz MHz V V V V V ◦ Unit C uptsnwv,maueetbnwdh2...200H,aao uptla:LF oGBUF f to V, LEFT 1.26 load: amplitude output analog Hz, 20000 . 30 . 20. bandwidth measurement sinewave, output eso:04,21-12 10 2011-11-24 0.42, Version: 3 2 1 XTALI= noted: otherwise Unless Characteristics Analog 4.3 ieiptimpedance input Line Ratio S/N input Line Distortion Harmonic Total input Line amplitude input Line pin per impedances, input Microphone Ratio S/N Microphone Distortion Harmonic Total Microphone amplitude input Microphone gain amplifier input Microphone Capacitance Load Output Analog Resistance Load Output Analog Phase Linear from Deviation (Peak-to-peak) Voltage Output Scale Full Response Frequency Mismatch Gain Interchannel 30 Talk), (Cross Isolation Interchannel 600 Talk), (Cross Isolation Interchannel signal) scale (full Ratio S/N A-weighted) unmuted, (DAC Range Dynamic Distortion Harmonic Third Distortion Harmonic Total Resolution DAC Parameter bv yia mltd h amncDsoto increases. Distortion Harmonic the amplitude sound. below typical difference but Above mono lower, for much wiring be +-to-+ may with AOLR achieved be can volts 3.0 Ω IH oGU 30 GBUF to RIGHT , PRELIMINARY Multiplier Clock Internal 13MHz, . . 12. s 1kHz. =1 S03 Datasheet VS1063a AVDD Ω irpoets mltd 8mp,f mVpp, 48 amplitude test Microphone . =3.3V, CVDD Typical Ω Ω GBUF + GBUF + =1.8V, 3 itrinpromnemyb compromised. be may performance distortion . 5 × IOVDD= A etdwt 3784H full-scale Hz 1307.894 with tested DAC . Symbol HRCEITC SPECIFICATIONS & CHARACTERISTICS 4 MSNR MTHD AOLR LSNR MICG LTHD SNR THD IDR 2.8V, REF= 1.64 -0.1 -0.5 Min 85 60 16 1.65V, s 1kz ieipttest input Line kHz. =1 0.005 1.85 2500 0.03 Typ 100 30 53 80 94 18 80 90 45 70 48 26 2 1 TA= 2800 0.014 3...+85 . . -30. 140 2.06 0.02 0.07 0.07 Max 100 0.1 0.5 5 3 3 Vpp dB dB dB dB dB dB % % bits Unit k dB % mVpp k dB % mVpp dB pF Ω ◦ Ω Ω ◦ C, AC AC eso:04,21-12 11 2011-11-24 0.42, Version: 1 Initialization Boot - Characteristics Switching 4.6 2 1 Characteristics Digital 4.5 Internal volume. full at Output sine. generated and sample multiplier kbps clock 128 Vorbis Ogg an with Tested Consumption Power 4.4 oe nrst ietm oCVDD to time rise reset, on Power ready software to inactive XRESET time active XRESET Parameter pF 50 = load pins, output all of time Rise Frequency Clock Input SPI Current Leakage Input I at Voltage Output Low-Level I at Voltage mA Output High-Level 0.1 = XTALO at Voltage mA Output -0.1 Low-Level = XTALO at Voltage Output High-Level Voltage Input Low-Level Voltage Input High-Level Voltage Input High-Level Parameter 1.8V = CVDD Consumption Supply Power 30 AVDD, Consumption Supply 30 Power load output AVDD, Consumption Supply Power load no AVDD, Consumption test Supply sine Power 1.8V, = CVDD Consumption Supply 30 Power test, sine AVDD, Consumption Supply Reset Power 1.8V, = CVDD Consumption Supply Power Reset AVDD, Consumption Supply Power Parameter PRELIMINARY that. before commands or data any send not Do complete. is initialization when rises DREQ allow writes SDI and SCI reads. SCI for Value 3.6V exceed not Must 3 . 0 × TA=+25 . S03 Datasheet VS1063a ohriptpins) input (other XTALO) XTALI, (xRESET, 2 ◦ C. O O . mA 1.0 = 10mA -1.0 = Symbol Ω GBUF + CLKI Ω 22000 4 Min 10 Ω GBUF + 2 0 0 0 0 . . . . . HRCEITC SPECIFICATIONS & CHARACTERISTICS 4 7 7 7 7 × × × × -1.0 -0.2 Min IOVDD IOVDD IOVDD CVDD 50000 Max Min 30 8 1 IOVDD+0.3 IOVDD+0.3 0 0 0 . . XTALI XTALI . 3 3 36.9 3 Unit Typ 0.6 V/s × × 11 11 11 10 12 × CLKI 5 Max 1.0 50 IOVDD IOVDD CVDD 7 20.0 Max 5.0 15 60 1 1 ns MHz µ V V V V V V V Unit mA mA mA mA mA mA µ µ Unit A A A eso:04,21-12 12 PRELIMINARY 2011-11-24 0.42, Version: at are dimensions package LQFP-48 LQFP-48 of 5.1.1 name short a electrical is in RoHS substances hazardous package. certain of compliant use equipment RoHS the electronic also of and restriction and the free on 2002/95/EC (Pb) Directive lead a is LPQFP-48 Packages 5.1 Descriptions Pin and Packages 5 S03 Datasheet VS1063a 1 . iue2 S03 nLF-8packaging LQFP-48 in VS1063a 2: Figure 48 iue1 i ofiuain LQFP-48 configuration, Pin 1: Figure http://www.vlsi.fi/ . AKGSADPNDESCRIPTIONS PIN AND PACKAGES 5 eso:04,21-12 13 2011-11-24 0.42, Version: PRELIMINARYLINE2 AGND3 LEFT AVDD2 RCAP AVDD1 GBUF AGND2 AGND1 / RIGHT AVDD0 AGND0 I2S_LROUT GPIO4 GND GPIO1 GPIO0 XTEST CVDD3 SO SI SCLK TX RX I2S_MCLK / GPIO5 CVDD2 XCS DGND4 DGND3 DGND2 IOVDD2 XTALI XTALO DGND1 / VCO IOVDD1 BSYNC / XDCS I2S_SDATA GPIO7 I2S_SCLK / GPIO6 SDATA / GPIO3 DCLK / GPIO2 DREQ CVDD1 IOVDD0 CVDD0 DGND0 XRESET MICN LINE1 / MICP Name Pad 3 3 1 1 1 3 3 S03 Datasheet VS1063a 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 Pin LQFP AI AI Type Pin AI APWR AO APWR AIO APWR AO APWR APWR AO APWR APWR DIO DGND DIO DIO DI CPWR DO3 DI DI DO DI DIO CPWR DI DGND DGND DGND IOPWR AI AO DGND DO IOPWR DI DIO DIO DIO DIO DO CPWR IOPWR CPWR DGND DI / oe supply power I/O input Crystal output Crystal ground I/O & output) Core VCO (Clock only testing For supply power sync I/O byte / select chip Data I2S_SDATA / 7 IO purpose I2S_SCLK General / 6 input IO data purpose serial clock General / bus 3 data IO input purpose serial General / 2 IO purpose General bus input request, Data supply power Core supply power I/O supply power Core ground I/O & input Core schmitt-trigger reset, asynchronous low Active self-biasing input, 1 mic Line-in differential / Negative self-biasing input, mic differential Positive Function iei rgtchannel) (right 2 Line-in ground Analog output channel Left supply power Analog reference for capacitance Filtering to supply power connect Analog NOT do headphones, ground! for buffer Common ground Analog ground Analog output channel Right supply power Analog reference low-noise ground, Analog I2S_LROUT / 4 IO purpose General Ground I/O k 1 100 IO use purpose General (SPIBOOT), 0 IO resistor purp. IOVDD Gen. to connect test, for Reserved supply power Core output Serial input Serial bus serial for Clock used not transmit UART if IOVDD to connect receive, I2S_MCLK UART / 5 IO purpose General supply power Core low) (active input select Chip ground I/O & Core ground I/O & Core ground I/O & Core 2 AKGSADPNDESCRIPTIONS PIN AND PACKAGES 5 Ω pull-down eso:04,21-12 14 2011-11-24 0.42, Version: types: Pin details. for Interface DAC I2S details. for Boot, 3 I2C 10.10, and Boot, SPI 2 1 AI DO3 DIO DO DI Type 10.9, Chapters See tried. is Boot, I2C by followed Boot, SPI used, is resistor pull-down Unless is i ucini ciei e oe atri optblt Mode. Compatibility in latter Mode, New in active is function pin First fISC_N s’’tepn r sdfrGI.SeV16aHrwr ud’ Chapter Guide’s Hardware VS1063a See GPIO. for used are pins the ’0’ is I2S_CF_ENA If

PRELIMINARY input Analog Output Tri-stated Pad CMOS output, Digital input/output Digital Pad Input CMOS output, Digital Pad Input CMOS input, Digital Description S03 Datasheet VS1063a IOPWR CPWR DGND APWR AIO AO Type AKGSADPNDESCRIPTIONS PIN AND PACKAGES 5 / oe upypin supply power I/O pin supply power Core pin ground I/O or Core pin supply power Analog input/output Analog output Analog Description eso:04,21-12 15 PRELIMINARY 2011-11-24 0.42, Version: 7.2.1). Chapter (see high SM_SDISHARE tied also be If should ). 9.8.1 xDCS Chapter time. (see used, same active is is the SM_SDINEW at assumes both connection This not but Note: In, Line or In Microphone either Connect 1: Note Figure VS1063. for diagram connection typical a shows 3 Figure LQFP-48 Diagram, Connection 6 iue3 yia oncindarmuigLQFP-48 using diagram connection Typical 3: Figure S03 Datasheet VS1063a ONCINDARM LQFP-48 DIAGRAM, CONNECTION 6 eso:04,21-12 16 PRELIMINARY 2011-11-24 0.42, Version: XTALO. to load external unconnected. any be connect TX not and Do IOVDD to connected be should RX used, not is UART If should inputs microphone and line connected. Unused be resistor. not pull-down a have used, should pins not GPIO used. Unused is not GBUF is GBUF should If you when stable, even GBUF capacitor circumstances. keep and To any resistor capacitors. the coupling under have with always ground provided be to must RIGHT connected and LEFT be NOT must pins GBUF output connector. will audio earphone the This the thus to earphones. and directly for outputs, connected line V) be on (1.23 may capacitors voltage VS1063a isolation from common large for for used need be the eliminate can GBUF buffer common The S03 Datasheet VS1063a ONCINDARM LQFP-48 DIAGRAM, CONNECTION 6 eso:04,21-12 17 2011-11-24 0.42, Version: BSYNC and SDATA DCLK, mode, this In 0. to set is SM_SDINEW active. when are active is mode This (deprecated) Mode Compatibility VS1001 7.2.2 pins I/O general-purpose (XDCS). as select chip used interface be data can to DCLK they changes startup). function and at BSYNC transfer (default GPIO3). data 1 and to for (GPIO2 set used is not SM_SDINEW are when SDATA VS1063a and on active are modes These Mode) (New Modes Native VS10xx 7.2.1 Descriptions Pin Bus SPI 7.2 both for used SCI been Interface has Control - Serial devices and Motorola 9.6) some and 9.7). 7.4 in and (Chapters used 7.5 SDI (Chapters originally Interface was Data that Serial VS1063a’s - Bus SPI The General 7.1 Buses SPI 7 D Pin SDI XDCS -

PRELIMINARYSCK SI C Pin SCI XCS SO nwie Oi tahg meac state. edge. impedance SCK edge. high falling CLK a the rising at on the is out on SO shifted sampled writes is is In data SI reads, active, In written. is output. be select Serial to chip edge bit a clock first If rising the input. first marks the Serial low case, gone either has In XCS continuous. after or master gated the be as can internally SCK interface. used register also the is for clock clock serial The input. inverting clock by Serial internally generated is signal pin the 1, XCS. but is used, SM_SDISHARE not serial If is forces state. XDCS also impedance level high into high to interface A (SO) serial operation. output the current forces the level ending high mode, A standby input. select chip low Active Description S03 Datasheet VS1063a P BUSES SPI 7 eso:04,21-12 18 2011-11-24 0.42, Version: 9.8 every Chapter after in write. delay table register been enough Registers SCI long has SCI each a The command for need Because missed. time SCI you is handling a them case worst-case low. of this if the is none gives In determine certain DREQ receive. make not when to to can command ready commands you SCI not SCI SCI, is send and SDI to if SDI executed want between shared still is you DREQ when progress. cases in are is operation There SCI an while down goes already also has DREQ that VS1063a In transmission Note: A DREQ Thus, bytes. more transmission. byte send aborted. a to be during to whether even need decide time, doesn’t to any started used at a high be at or only low should data turn SDI may DREQ of low-speed Note: bytes for 32 easier VS1063a upto controlling send making may DREQ, sender of status the microcontrollers. the area, command. checking SCI safety without command. a 32-byte of SCI time duration one the the or for of data and SDI Because receiving full of too of bytes is capable buffer 32 stream is least the at FIFO when take 2048-byte low can VS1063a’s turned VS1063a is if high, DREQ signal is DREQ to If used data. is pin/signal DREQ The DREQ Pin Request Data 7.3 BSYNC D Pin SDI SDATA DCLK PRELIMINARY- - C Pin SCI SCK XCS SO SI - S03 Datasheet VS1063a tnb oe nigtecretoeain ihlvlas ocsserial forces also level into high interface A serial operation. the current forces the level ending high mode, A standby input. select chip low Active Description nwie Oi tahg meac state. edge. impedance SCK high falling a the low. at on is is out XCS SO shifted if writes is edge, In data SCK reads, rising In written. the output. be on Serial to sampled edge bit is clock first SI rising the input. first marks the Serial low case, gone either has In XCS continuous. after or master gated the be as can internally SCK interface. used register also the is for clock clock BSYNC. serial of The edge input. rising clock a Serial with synchronized is data state. SDI impedance high to (SO) output P BUSES SPI 7 eso:04,21-12 19 PRELIMINARY 2011-11-24 0.42, Version: recommended. are modes native input. VS10xx XCS using the designs, new inverting For by generated internally is signal XDCS is the 1, it is VS1063a, SM_SDISHARE If sync. using block, in data boards are disk VS1063a every the and after host in once main- the instance always glitches To for sure then, make be progress. and to in may now just is every there transfer XDCS XDCS. byte turn if by to data even recommended achieved a while synchronization is change synchronization data not byte tain may 1), XDCS of is state (SM_NEWMODE The modes native VS10xx In Mode) (New Modes Native VS10xx in SDI 7.4.2 supports. SDI the bitrate maximum the accept to able is firmware 9.8.1). either The (Chapter transmitted SM_SDIORD bit be SCI_MODE may register bytes of SDI depending byte-sychronized. first, be LSb to or MSb input data 9.8). (Chapter its DCLK assumes of VS1063a edge falling or rising an the either by at in generated clocked be be can must (SDATA signal) Data signal DCLK so mode slave in operates circuit. external interface data serial The General (SDI) Interface 7.4.1 Data Serial for Protocol Serial 7.4 S03 Datasheet VS1063a P BUSES SPI 7 optblt oe u isaeol eevdwieteBYCsga s’’ iigeg of edge Rising ’1’. is VS1001 signal the BSYNC like the otherwise synchronization. while for is received used operation only still the is are BSYNC 1, bits is but SM_SDISHARE mode, and compatibility 0 is SM_NEWMODE If Mode SDI Passive 7.4.4 eso:04,21-12 20 PRELIMINARY 2011-11-24 0.42, Version: when ’1’ received. is also BSYNC are If bits 8 used). next is and of order active stays bit MSB-first receiver first if the the MSB, received, marks used, is high, is or bit is order last (rising BSYNC the LSB-first edge the if sampling which (LSB, DCLK byte during first generated The a polarity), be selected bitstream. must on input signal depending the BSYNC falling, of a bit-alignment mode, correct compatibility ensure VS1001 to in running is VS1063a When (deprecated) Mode Compatibility VS1001 in SDI 7.4.3 SDATA BSYNC DCLK DCLK SDATA BSYNC 7D 5D 3D 1D0 D1 D2 D3 D4 D5 D6 D7 S03 Datasheet VS1063a iue4 SN inl-oebt transfer byte one - signal BSYNC 4: Figure iue5 SN inl-tobt transfer byte two - signal BSYNC 5: Figure 7D 5D 3D 1D0 D1 D2 D3 D4 D5 D6 D7 7D 5D 3D 1D0 D1 D2 D3 D4 D5 D6 D7 P BUSES SPI 7 eso:04,21-12 21 short very a 2011-11-24 is 0.42, This Version: chip. the by operation read attention. a user in special when require while doesn’t short and a time for low driven is DREQ out. shifted been has data after high driven be be should further will XCS address any received via in, the transmitted read to been is corresponding line. data has (0x3) SO 16-bit address opcode The the the onto READ chip. After First, the out the by shifted address. Then ignored 6. word is Figure 8-bit SI device. an on in the data by shown select followed as line to sequence, SI low following the pulled the is using line from XCS read are registers VS1063a Read SCI again. 7.5.2 high is DREQ before operation - SCI/SDI the new on a depends finish duration to The allowed operation. not SCI is each It after tion. low DREQ sets VS1063a Note: read are instructions supported The opcode. below. table instruction See 8-bit write. an and by of specified duration full is the operation for The data needed. low update if be should bits should user between XCS the pauses first. have so MSb can edge, an you send rising but always of the read operation, are at can consists the Bytes read operation 9.7) edge. are write falling or bits (Chapter the read Data SCI at Each register. word. single Interface data a Command 16-bit write one Serial or and the byte address for byte, protocol instruction bus serial The General 7.5.1 (SCI) Interface Command Serial for Protocol Serial 7.5 SO SI SCK XCS PRELIMINARYDREQ 0 0 31 30 0 0 0 0 0 0 0 0 0 0 0 13 12 0 11 10 0 9 0 8 0 7 0 6 0 5 0 4 0 3 2 1 0 ntuto ra)address instruction (read) S03 Datasheet VS1063a 0 0 0 0 1 1 0 WRITE READ Name iue6 C odread word SCI 6: Figure b000010 0b0000 0011 0b0000 Opcode Instruction 0 1 2 3 41 617 16 15 14 rt data Write data Read Operation 51 0 1 14 15 o’ aedon’tcare don’t care data out X execution P BUSES SPI 7 eso:04,21-12 22 bringing of instead that 2011-11-24 is 0.42, write Version: fast single allows a which to register, difference SCI main same The the 8. to Figure words in multiple shown send uploads, to SCI user the for allows VS1063a Write Multiple SCI 7.5.4 checked be must DREQ the from of takes status it byte, update, what contents operation. SDI register than SCI/SDI its or longer the next and command is the of time SCI register finishing maximum duration next before the the the the on If feed for depending details). to low varies for microcontroller 9.8 driven time Chapter The is in table DREQ figure. (see sent, the been in “execution” has marked bit last high pulled the be After should XCS sent, been has clock last sequence. the WRITE and the in end shifted to been has word the the After via transmitted is (0x2) address. First, opcode word WRITE 7. 8-bit the Figure Then an in by device. followed shown the line select as SI to sequence, low following pulled the is using line XCS from written are registers VS1063a Write SCI 7.5.3 SI SO SCK XCS DREQ SI SO SCK XCS DREQ 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 PRELIMINARY 0 0 0 0 13 12 11 10 1 9 0 8 0 7 0 6 0 5 0 4 0 3 2 1 0 instruction (write) 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 01 21 031 30 0 0 0 0 13 12 11 10 1 9 0 8 0 7 0 6 0 5 0 4 0 3 2 1 0 instruction (write) S03 Datasheet VS1063a 0 iue8 C utpewr write word multiple SCI 8: Figure 0 address iue7 C odwrite word SCI 7: Figure 0 1 2 3 address 41 617 16 15 14 0 1 2 3 514 15 0 0 data out1 41 617 16 15 14 29 1 30 0 0 0 0 514 15 0 0 0 0 31 514 15 0 data out execution X data out2 0 1 233 32 X X d.out n m−2m−1 0 1 0 0 execution X X execution P BUSES SPI 7 eso:04,21-12 23 2011-11-24 0.42, Version: 6 is well. tH as + tWH speed + SPI tWL higher Because a Note: use can you rise, in up to starts DREQ always for system waited the and CLKI, clock internal the from derived 1 is timing the Although Note: 1 9. Figure in presented is diagram timing SPI The Diagram Timing SPI 7.6 be must DREQ of status byte, takes SDI it its what or operation. and than register command SCI/SDI longer register next the SCI is the of the next time finishing duration the on maximum before feed the the checked depending If to for varies microcontroller low details). time for the driven 9.8 The from is Chapter DREQ in figure. table sent, (see the been contents has in word “execution” a marked of After update, immediately. bit write. sent last word is the single word After a data with next as the high word, driven data is a XCS of word, bit data last last the the sending after up XCS . 5n swe i oddwt 0 Fcpctne h iei hre ihlwrcapacitance. lower with shorter is time The capacitance. pF 100 with loaded pin when is ns 25 0 × oe hsCLKI thus mode, PRELIMINARYSO SI SCK XCS tZ tSU 1 0 tXCSS tH S03 Datasheet VS1063a = TL.Atryuhv ofiue ihrcoktruhSCI_CLOCKF through clock higher a configured have you After XTALI. tDIS tXCS tXCSH tV tWH tWL tZ tH tSU tXCSS Symbol iue9 P iigdiagram timing SPI 9: Figure × +2 ns 25 (+ 2 LI+2 s h aiu pe o C ed sCLKI/7. is reads SCI for speed maximum the ns, 25 + CLKI 416 14 Min 15 1 2 1 2 2 0 2 0 5 ) W tWH tWL Max 10 ns cycles CLKI cycles CLKI cycles CLKI cycles CLKI cycles CLKI ns cycles CLKI ns ns Unit tV 30 tXCSH 31 tXCS tDIS P BUSES SPI 7 eso:04,21-12 24 2011-11-24 0.42, Version: every However, 11 . Figure in shown as xCS of edge synchronization. separate raising need a doesn’t with byte synchronized is data SDI xCS that Note operations. SCI consecutive two shows 10 Figure Writes SCI Two 7.7.1 set SM_SDISHARED and SM_SDINEW with Examples SPI 7.7 .. w D Bytes SDI Two 7.7.2 figure. the in shown as respected be must DREQ Also writes. the between state XCS DREQ DREQ PRELIMINARYXCS SI SCK SI SCK 0 0 0 0 0 1 2 5 6 7 0 1 3 4 5 6 7 0 31 15 14 13 9 8 7 6 0 031 30 3 2 1 3 2 1 S03 Datasheet VS1063a SCI Write1 SDI Byte1 iue1:ToSIoperations SCI Two 10: Figure iue1:ToSIbytes SDI Two 11: Figure 0 1 X 0 0 23 16 63 62 61 33 32 DREQ upbeforefinishingnextSCIwrite SDI Byte2 SCI Write2 must 2 0 1 erie oinactive to raised be X X P BUSES SPI 7 eso:04,21-12 25 2011-11-24 0.42, Version: figure. edges the in xCS shown as operations. DREQ SDI respect to between Remember in SCI. and embedded SDI is both operation synchronize to SCI used an are how shows 12 Figure Bytes SDI Two of Middle in Operation SCI 7.7.3

PRELIMINARYXCS DREQ SI SCK 1 5 6 7 0 iue1:ToSIbtssprtdb nSIoperation SCI an by separated bytes SDI Two 12: Figure 1 S03 Datasheet VS1063a SDI Byte 7 0 0 94 14 47 46 41 40 39 9 8 SCI Operation 0 1 5 6 7 0 DREQ highbeforeendofnexttransfer SDI Byte X P BUSES SPI 7 eso:04,21-12 26 2011-11-24 0.42, Version: 1.0: MPEG SCI_MODE. register from enabled specifically be must decoding II Formats Layer Decoder Note: II) layer (MPEG MP2 Supported 8.1.2 1 2.5 MPEG 2.0 MPEG 1.0 MPEG compliant. full-accuracy is decoder MP3 VS1063 Formats The Decoder III) layer (MPEG MP3 Supported 8.1.1 Decoders Audio Supported 8.1 Formats Audio Supported 8 apeae/Hz / Samplerate Hz / Samplerate Hz / Samplerate Hz / Samplerate - + Mark loalvral irt VR omt r supported. are formats (VBR) bitrate variable all Also

PRELIMINARY exist doesn’t supported Format not is but exists Format supported is Format Description 32000 44100 48000 11025 12000 16000 22050 24000 32000 44100 48000 1 1 1 8000 : : : Conventions + + + 8 + + + 8 + + + 32 + + + 32 S03 Datasheet VS1063a + + + 16 + + + 16 + + + 40 + + + 48 + + + 24 + + + 24 + + + 48 + + + 56 + + + 32 + + + 32 + + + 56 + + + 64 + + + 40 + + + 40 + + + 64 + + + 80 + + + 80 + + + 96 + + + 48 + + + 48 irt kbit/s / Bitrate irt kbit/s / Bitrate kbit/s / Bitrate kbit/s / Bitrate + + + 96 + + + 112 + + + 56 + + + 56 + + + 112 + + + 128 + + + 64 + + + 64 + + + 128 + + + 160 + + + 80 + + + 80 + + + 160 + + + 192 + + + 96 + + + 96 UPRE UI FORMATS AUDIO SUPPORTED 8 + + + 192 + + + 224 + + + 112 + + + 112 + + + 224 + + + 256 + + + 128 + + + 128 + + + 256 + + + 320 + + + 144 + + + 144 + + + 320 + + + 384 + + + 160 + + + 160 eso:04,21-12 27 2011-11-24 0.42, Version: modes mixing both Also, supported. including are and PS) upto without samplerates supported or channels, are (with 2 3 SBR of level with maximum ( (PS) and that Stereo without means Parametric kHz 3 48 and Level 3, v2). level (HE-AAC (SBR) Replication Band Spectral 960 and (120 frames supported. Short fully not supported. are is samples) (PNS) substitution noise pseudo-random MPEG4 For supported. are window Kaiser-Bessel-derived and window Sine Both information. enhance DRC or limit contains to that user material the the by controlled of be range can dynamic and the supported is (DRC) control range Dynamic one first the select single- to 16 is the stream. default from more the The decode contains in elements. to appears stream low-frequency one that a which 16 select If and can channel-pair, decoded. you 16 type, be channel, element can and/or channels element two one of than low maximum the with i.e. profile streams, complexity MPEG4-AAC-LC-2.0.0.0 and MPEG2-AAC-LC-2.0.0.0 decodes VS1063a Formats Decoder 14496-3) ISO/IEC and 13818-7 (ISO/IEC AAC Supported 8.1.4 be pre- should early files since Vorbis encoders Ogg known two-channel and No one- All supported. decoder. is 0. this 1 floor with playable used floor ever only have floors, releases Vorbis liminary Ogg two the Of Formats Decoder Vorbis Ogg Supported 8.1.3 2.0: MPEG feald h nenlcok(LI satmtclyicesdi A eoignesahigher a needs decoding AAC if increased automatically is (CLKI) clock internal the selected. enabled, be If can modes operating different Also disabled. be also can See decoding PS and SBR samplerates implemented. coder (core mode synthesis downsampled R Bitrate Samplerate size Window Channels Parameter Hz / Samplerate a and config1

PRELIMINARYR 16000 22050 24000 b ,IDODsnhssad3 rqec ad eouinaeipeetd The implemented. are resolution bands frequency 34 and synthesis IPD/OPD ), and Min + + + 8 64 sbrAndPsStatus 0 1 1 S03 Datasheet VS1063a + + + 16 48000 4096 Max 500 24 + + + 2 kbit/sec Hz samples Unit 32 + + + :"xr parameters". "Extra : 10.11 section in 40 + + + + + + 48 irt kbit/s / Bitrate + + + 56 + + + 64 > + + + 80 4kzand kHz 24 + + + 96 UPRE UI FORMATS AUDIO SUPPORTED 8 + + + 112 < + + + 128 = 8kzwt B)is SBR) with kHz 48 + + + 144 + + + 160 eso:04,21-12 28 2011-11-24 0.42, Version: limit. specification. upper AAC or the lower by fixed defined a have as actually samplerate not specific does a decoder for The channels two for allowed bitrate 2 XTALI). MHz 12.288 with Hz (48000 1 AAC example For too. VS1063a for files process to tool of so-called kind into .m4a streamable and .mp4 the mdat the why optimize also that exist is Programs This required. satisfy is not conversion do formatters recommended. of all file is stream, kind MP4 format a Several ADTS some as received. data and is all requirement data receives music VS1063a this the Because before file. available MP4 be the must in atom last the be only contain Note: that Important those files, MPEG4 just played. are are files content HE-AACv2 (.3g2) or 3GPPv2 HE-AAC and (.3gp) 3GPP much Because but robust less are slightly ). 10.5.4 still files using Section can or .m4a) (see You table, mechanism / operations. points resync forward (.mp4 jump automatic fast the AUDIO easier and using rewind MPEG4 by for features and suitable these (.aac) less implement are ADIF formats MPEG2 these (.aac), but played, ADTS to addition In fast and rewind easy possible. allows easily format This is resynchronization recommended. because is forward format ADTS streaming the for AAC For slow too is clock 4.5 internal need 3.5 the why files if is v2 off This HE-AAC switched content. Generally automatically is decoding. operation correct SBR and PS clock. apeae/Hz / Samplerate loalvral irt VR omt r upre.Nt httetbegvstemaximum the gives table the that Note supported. are formats (VBR) bitrate variable all Also 40 z 80 z n 60 zACfie r lyda h ihs osbesamplerate possible highest the at played are files AAC Hz 96000 and Hz, 88200 Hz, 64000 12 tmls ntefie n hssial o e evr’adosraig o a s this use can You streaming. audio servers’ web for suitable thus and file, the in last atom PRELIMINARY: 11025 12000 16000 22050 24000 32000 44100 48000 8000 + + + + + + + + + ≤ ob bet lyte.g,.g,.p n mafie,the files, .m4a and .mp4 .3g2, .3gp, the play to able be To 96 S03 Datasheet VS1063a + + + + + + + + 132 aiu irt bts-fr2channels 2 for - kbit/s Bitrate Maximum × 1.0 + + + + + + + + 144 × lc stercmedddefault. recommended the is clock + + + + + + 192 + + + + + 264 + + + + 288 + + + 384 + + 529 × pcetr-piiefile.mp4 -optimize mp4creator lc odcd ohSRadPS and SBR both decode to clock + 576 streamable UPRE UI FORMATS AUDIO SUPPORTED 8 omtta a the has that format mdat tmmust atom . eso:04,21-12 29 for capability transfer 2011-11-24 peak 0.42, higher Version: not a does need WMA you that so bitrate. com- same Note MP3, samplerate the as and at streams. playback evenly bitrate clean WMA as other bitrate bitstream all variable the profiles, including consume decoding supported, WMA are expected binations these to addition In 9: WMA 8: WMA 7: WMA and supported. 4.1: not / 2b, (L1, are 4.0 Audio 2a, profiles and WMA Media codecs 1, WMA Windows different Classes are All program. Voice into testing Audio separated conformance Media supported. Windows Microsoft’s were are and passed streams Professional 9 has Previously decoder and The 8, supported. 3. are 7, L3) 2, and versions L2, codec Audio Media Windows Formats Decoder WMA Supported 8.1.5 Samplerate Samplerate Samplerate Samplerate 48000 44100 32000 22050 16000 11025 48000 44100 32000 22050 16000 11025 48000 44100 32000 22050 16000 11025 48000 44100 32000 22050 16000 11025 8000 8000 8000 8000 Hz / PRELIMINARY Hz / Hz / Hz / + 5 + 5 + 5 + 5 + 6 + 6 + 6 + 6 S03 Datasheet VS1063a + + 8 + + 8 + + 8 + + 8 + + 10 + + 10 + + 10 + + 10 + + 12 + + 12 + + 12 + + 12 + + 16 + + 16 + + 16 + + 16 + + + + 20 20 + + + 20 + + + 20 + + + + 22 irt kbit/s / Bitrate irt kbit/s / Bitrate kbit/s / Bitrate irt kbit/s / Bitrate 22 + + 22 + 22 + + + + 32 + 40 32 + + + 32 + + + 32 + + + + + 48 40 + 40 + 40 + + + 64 48 + + 48 + + 48 + + UPRE UI FORMATS AUDIO SUPPORTED 8 + 80 64 + + 64 + 64 + + + 96 80 + 80 + 80 + + + 128 96 + 96 + 96 + + + 160 128 + + 128 + + 128 + + + + 192 160 + + 160 + + 160 + + + 256 192 192 + + 192 + + 320 eso:04,21-12 30 2011-11-24 0.42, Version: samplerate any and channels audio 2 or 1 with supported, upto are formats WAV RIFF following The Formats Decoder WAV RIFF Supported larger 8.1.7 a providing by little a requirement transfer data peak KiB). (12 the buffer lowers stream even decoder be must FLAC rate The transfer files. WAV data uncompressed peak for the required itself, rate size, data format block sustained FLAC FLAC the the default than the lossy in higher for than choices than shorter design higher being much some buffer are and audio transfer , for of requirements Because the codecs. rate, data high the supported. of are Because channels two upto with files FLAC 24-bit and kHz 48 decompression. Upto audio lossless providing by quality highest the provides decoder FLAC The Formats Decoder FLAC Supported 8.1.6 0xfffe 0x28f 0x65 0x55 0x11 0x07 0x06 0x03 0x01 Format PRELIMINARY ALI/ XT MULAW ALAW IEEE_FLOAT PCM Name xeddPCM Extended ADPCM_G722 G722_ADPCM MPEGLAYER3 IMA_ADPCM 256 4 H ih1.8 H clock). MHz 12.288 with kHz (48 S03 Datasheet VS1063a 2 4 6ad8bt,dfutcanlcngrto supported configuration channel default bits, 8 and 0x65 16 as 24, same 32, bits, 8 0x28f in as samples same two bits, 8 in 8.1.1 samples Chapter two see modes, MP3 supported For sample per bits 4 (G.711 samples 8-bit non-linear-quantized A-law) (G.711 samples 8-bit non-linear-quantized data point floating bits IEEE 8 and 16 24, 32, Comments UPRE UI FORMATS AUDIO SUPPORTED 8 µ -law) eso:04,21-12 31 2011-11-24 0.42, Version: mono: rates), low (MP3 III layer 2.5 & 2.0 MPEG mono: full-rates), (MP3 III layer 1.0 MPEG stereo: rates), low (MP3 III layer 2.5 & 2.0 MPEG stereo: full-rates), (MP3 III layer 1.0 MPEG formats. constant both with to both apply mono, tables following and The stereo (VBR). in bitrate variable bitrates, or and (CBR) samplerates bit-rate MP3 all supports VS1063a Formats Encoding III) layer (MPEG MP3 Supported 8.2.1 Formats Encoding Audio Supported 8.2 PRELIMINARY Hz / Samplerate Hz / Samplerate Hz / Samplerate Hz / Samplerate - < v x + ++ Symbol 11025 12000 16000 22050 24000 32000 44100 48000 11025 12000 16000 22050 24000 32000 44100 48000 8000 8000 omtdentexist. doesn’t Format quality. recommended. supported. same is isn’t give bitrate but will exists same bitrate Format with lower samplerate but lower supported quality reasons. is best Format quality for for but discouraged supported strongly is is Format use but supported bitrate. is and Format configuration channel supported. this is for Format recommended and supported is Format Description 32 ++ v v x x x 8 v v v 32 ++ v v v v v 8 + v v S03 Datasheet VS1063a 40 ++ v v v v v 16 v v v 40 ++ v v v v v 16 + v v 48 ++ v v v v v 24 v v v 48 + + ++ + + + 24 + v v 56 ++ + + v v v 32 v v v 56 + + + ++ + + 32 ++ + + 64 + + ++ + v v 40 v v v 64 + + + ++ + + 40 ++ + + irt bts stereo kbit/s, / Bitrate irt bts stereo kbit/s, / Bitrate irt bts mono kbit/s, / Bitrate mono kbit/s, / Bitrate 80 + + + + + ++ 48 + + ++ 80 + + ++ + v v 48 + v v Conventions 96 < + + + + + 56 + + ++ 96 + + ++ + + v 56 + + v 112 < + + + + + 64 + + ++ 112 + + + ++ + + 64 ++ + + 128 < < < + + + 80 + + ++ 128 + + + + + ++ 80 ++ + + 160 < < < < + + 96 + + ++ 160 + + + + + ++ 96 + + ++ UPRE UI FORMATS AUDIO SUPPORTED 8 192 < < < < + + 112 + + ++ 192 + + + + + + 112 + + ++ 224 < < < < < < 128 < + ++ 224 < + + + + + 128 + + ++ 256 < < < < < < 144 < + ++ 256 < < < < < + 144 + + ++ 320 < < < < < < 160 < < < 320 < < < < < < 160 < + ++ eso:04,21-12 32 2011-11-24 0.42, Version: two or one with modes codec and encoding upto in samplerates supported and are channels formats WAV RIFF following The Formats Encoding WAV RIFF Supported 8.2.3 music. HiFi for intended are profiles “Music” The profiles. Voice” “HiFi the use required, is speech quality high extremely When directional with quality speech high when used be to required. intended is information is Voice” Stereo “Wideband required. is quality speech high when used be to intended is Voice” “Wideband applications. not speech for is intended are encoder profiles the “Voice” The that however, Note, below. configurations. provided these are to limited profiles setting example Some variable using encoded always is Vorbis between Ogg samplerate settings. any (VBR). quality with different bitrate stereo, with and and Hz, mono 48000 in and encoding 1 supports Encoder Vorbis Ogg The Formats Encoding Vorbis Ogg Supported 8.2.2 PRELIMINARY0x28f 0x11 0x07 0x06 0x01 Format kbit/s Typical setting Quality kbit/s Typical setting Quality kbit/s Typical setting Quality kbit/s Typical setting Quality kbit/s Typical setting Quality ADPCM_G722 IMA_ADPCM MULAW ALAW PCM Name ieadSee oc:100H stereo Hz 16000 Voice: Stereo Wideband ieadVie 60 zmono Hz 16000 Voice: Wideband 53 37 10 7 0 6 0 0 0 0 S03 Datasheet VS1063a 11 7 1 oc:80 zmono Hz 8000 Voice: 72 47 18 1 iiVie 80 zmono Hz 48000 Voice, HiFi 1 1 1 9 2 iiVie 80 zstereo Hz 48000 Voice, HiFi 14 72sbadAPM w ape n8bits 8 in block samples per two samples ADPCM, 505 subband sample, G722 per bits 4 ADPCM, IMA µ samples 8-bit non-linear-quantized PCM A-law, linear bits 8 and 16 Comments 91 57 26 2 lw o-ierqatzd8btsamples 8-bit non-linear-quantized -law, 10 2 2 2 3 TALI/ XT 18 110 68 34 3 12 3 3 4 3 21 4 78 42 13 129 4 4 256 5 25 4 5 88 50 4 H ih1.8 H clock). MHz 12.288 with kHz (48 16 5 5 6 148 31 6 99 65 5 19 6 6 7 37 185 7 110 81 22 7 6 8 7 43 8 96 222 25 122 8 9 7 49 8 UPRE UI FORMATS AUDIO SUPPORTED 8 9 112 28 10 259 133 9 55 10 8 9 127 10 296 144 10 9 333 10 eso:04,21-12 33 PRELIMINARY 2011-11-24 0.42, Version: Devel- Integrated Solution’s VLSI with connect to VSIDE. purposes Environment debugging opments for provided is UART A directions. both using in operation same full-duplex the supports that mode codec ADPCM, a PCM, exists there applications streaming For converter. A/D stereo a and inputs line-level and/or amplifier microphone ADPCM, PCM, OGG, MP3, Also output ADPCM analog + and DAC PCM WAV audio stereo code and multirate FLAC filters. the a and WMA, all interfaces, AAC, amplifiers contains serial MP3, with It Vorbis, VS_DSP. together Ogg processor, decoding for audio signal needed digital memory proprietary data a and on based is VS1063a Features Main 9.1 Description Functional 9 µ lw -a rG72fras h omt n apeae o’ aet be to have don’t samplerates and formats The formats. G.722 or A-law -law, S03 Datasheet VS1063a µ lw -a n .2 ui noigi upre sn a using supported is encoding audio G.722 and A-law -law, UCINLDESCRIPTION FUNCTIONAL 9 eso:04,21-12 34 2011-11-24 0.42, Version: stopped. is transmission audio 1, is pause bit playMode is register Parameters audio Extra 1, If is monoOutputSelect bit playMode register Parameters Extra mono. to if converted is and shifter stage, speed this done. At is 1, processing is headphone playMode 0, not register is Parameters EarSpeakerLevel if Extra and of Otherwise, called. speedShifterEnable bit the if 1, Next, is playMode register Parameters Extra SCI_BASS in the used. bit on is Enable depending equalizer EQ5 Control 5-channel but Treble the and 0, Enhancer is Bass SCI_BASS the If to register. address sent be the may from data Guide. Then executed Programmer’s VS1063a is see code details, more plugin For user register. that non-zero, by is to pointed SCI_AIADDR if decoded. and decoding, bus After SDI the from received SCI_MODE (register is set bitstream not audio is 0), mode encoding is provided SM_ENCODE and but data, audio the on depending First, VS1063a. of dataflow decoder the presents 13 Figure VS1063a of Flow Data Decoder 9.2 Mic/Line In SCI bus SDI bus PCM audio MONO_OUTPUT=1 MONO_OUTPUT=0 AIADDR !=0 PRELIMINARYAIADDR=0 Mono Bitstream plugin User FIFO ADC Bitstream S03 Datasheet VS1063a SB_AMPLITUDE !=0 iue1:Dcdrdt o fVS1063a of flow data Decoder 13: Figure SB_AMPLITUDE=0 Pause AAC, FLAC OGG, WMA, WAV, MP2/3, 0 enhancer PAUSE_ON Bass PCMMISER_ON=0 &ADMIXER_ON=0 PCMMIXER_ON=1& Audio FIFO ADMIXER_ON=1 ADMIXER_ON=0 ST_AMPLITUDE!=0 ST_AMPLITUDE=0 EQ5 Enable=1 ST_AMPL=0 & SB_AMPL=0 & 5−channel equalizer rbeSpeed control Treble DAC SRC UCINLDESCRIPTION FUNCTIONAL 9 SCI_VOL EarSpeakerLevel!=0 & Sidestream SPEEDSHIFTER_ON=1 SPEEDSHIFTER_ON=0 SPEEDSHIFTER_ON=0& earSpeakerLevel=0 SDM EarSpeaker shifter adMixerGain or pcmMixerVol To DAC eso:04,21-12 35 UART. 2011-11-24 the 0.42, to Version: VS1063a either the then by is output data The or FIFO. user out the Bitstream the by the SCI to reads fed through encoder is read encoder the the by which generated from bitstream The FIFO, at in digitized audio be will to fed it is kHz, audio 8 samples. is stages, samplerate decimator chosen the decimator). From if Software the (E.g. with which 3 3. decimator by or Software downsampled the Sample 2 then to Resampler kHz, by 24 and/or the signal tuning, to the fine fed samplerate decimate be for may encoder.can used it the is resampled, to that be going Converter to path Rate needs other signal the the monitoring, whether to Depending going path one two: (not into filter split high-pass is subsonic audio Hz 10 Here signal. A the to kHz. 48 applied or is 24, figure) the 12, Analog-to-Digital the in or from shown samplerates read of is data one requested, with has Converter user the samplerate which on Depending VS1063a. of dataflow encoder the presents 14 Figure VS1063a of Flow Data Encoder 9.3 amplifier. earphone the to forwarded then filtered is low-pass signal is This output at oversampled filter. The operates analog signal. on-chip converter analog an DA in-phase by clock the stereo input a clock, fixed creates MHz and one MHz, 12.288 with accuracy a samplerate With unlimited PLL-based complex frequency. almost for allows need and the removes schemes samplerate clocking common a to audible conversion zero samplerate all The removes the changed. completely crosses suddenly almost signal is detection volume upsampled zero-crossing when the occurs This when that timeout). noise only the a loaded upsampled after times are the (or 128 in settings point performed or volume is XTALI/2, New control Volume to precision. domain. samplerates 18-bit different with PCM samplerate all either usable highest upsamples be input. may converter line/mic which the samplerate from sidestream The data optional analog an or is with bus control SCI combined volume the is where through converter, it coming samplerate step samples a this to After sent is applied. audio processed (2 stereo and 2048 decoded is Now FIFO audio the of size The KiB. FIFO. Audio 8 the or to samples, fed is data the that After PRELIMINARYMic/Line In ADC Resampler S03 Datasheet VS1063a SRC iue1:Ecdrdt o fVS1063a of flow data Encoder 14: Figure decimator Software Audio in FIFO MP3,OGG, Encoder WAV SCI_VOL DAC SRC UCINLDESCRIPTION FUNCTIONAL 9 128 Bitstream out FIFO × 48 H,ie 6.144 i.e. kHz, UartTxEna=0 UartTxEna=1 × To UART To DAC 16-bit) To SCI oe fACi sd noigaddcdn apeae utb h ae tews they Otherwise same. the be must samplerates decoding and different. encoding be used, may is AEC If Note: active. is AEC if EarSpeaker use not Do mode. Pause Note: nor mode, Codec in shifter Speed use not Do feedbackNote: a is there path. case of input this In the amount to active. is path the (AEC) output Cancellation and the Echo from path Acoustic used. when not side is is path audio new SRC flow A Resampler decoder data the no because encoder limited and is more decoder there much the is that encoder in the except as in 9.3 , similar samplerates almost and are 9.2 paths Chapters encoder and decoder The VS1063a. of dataflow codec the presents 15 Figure eso:04,21-12 36 2011-11-24 0.42, Version: VS1063a of Flow Data Codec 9.4 Mic/Line In SDI bus MONO_OUTPUT=1 PCM audio MONO_OUTPUT=0 AIADDR !=0 AIADDR=0 plugin Mono PRELIMINARYBitstream User FIFO ADC Bitstream AEC S03 Datasheet VS1063a decimator SB_AMPLITUDE !=0 Software SB_AMPLITUDE=0 Pause iue1:Cdcdt o fVS1063a of flow data Codec 15: Figure enhancer PAUSE_ON WAV Bass Audio FIFO Audio in FIFO ST_AMPLITUDE!=0 ST_AMPLITUDE=0 EQ5 Enable=1 ST_AMPL=0 & SB_AMPL=0 & 5−channel equalizer rbeSpeed control Treble Encoder WAV DAC SRC SCI_VOL UCINLDESCRIPTION FUNCTIONAL 9 EarSpeakerLevel!=0 & SPEEDSHIFTER_ON=1 SPEEDSHIFTER_ON=0 SPEEDSHIFTER_ON=0& Bitstream earSpeakerLevel=0 out FIFO EarSpeaker shifter UartTxEna=0 UartTxEna=1 To UART To SCI To DAC eso:04,21-12 37 2011-11-24 0.42, Version: introducing by music listening the real of character and tonal model the effects. auditory change not artificial human does the is Thus simulates reverb, acoustics. accurately echo, environment EarSpeaker as such effects, boost. processing bass spatial common or any from differs EarSpeaker that Note listener the of front separate on to widely are easier head. instruments the it and the inside natural as making being more sharper of head, becomes the is instead experience image the activated, listening stereo of is The the outside and processing 16 ). pleasant, Figure the EarSpeaker (see to Once instruments inside different the from music. moved live same the are or to instruments loudspeakers listening like real more these headphones from and via music listening external make is to sound sound processes ambiguous. EarSpeaker or the missing listening are loudspeaker traces distance these the In listening judge to headphone able In source. is available. sound brain to are the arrives traces each of that system of wavefront auditory acoustic angle the the traces, and to these From traces leaving drums. ear external, the are sources sound real-life All sound lateralized to literature fatigue. listening awk- listening in unnatural, Long-term to referred an lead often localization. is may is ’in-the-head’ This The phenomenon meaning This head. dimensions. ‘lateralization’, the situation. of as inside disturbing sensation even localized the sometimes be lacking and to and ward tendency flat a becomes has field sound sound the headphones to listening While Processing Spatial EarSpeaker 9.5 PRELIMINARY sound inside-the-head normal vs. sources sound externalized EarSpeaker 16: Figure S03 Datasheet VS1063a UCINLDESCRIPTION FUNCTIONAL 9 h ancnrl ftesra oto nefc are: interface control are serial the interface. transfers of the Data controls of main registers The the specification. reading bus and SPI writing by the controlled with is VS1063a compatible bits. is 16 always interface control serial The (SCI) Interface Control Serial 9.7 10. Chapter in described as SDI through activated auto- be are may outputs tests analog different several enough, Also fast received not is it or invalid is decoder muted. the matically of input the If of decoders different the for data compressed transferring for meant VS1063a. is interface data serial The (SDI) Interface Data Serial 9.6 samplerate. kHz 48 at MIPS 11 approximately requires EarSpeaker eso:04,21-12 38 2011-11-24 0.42, Version: and preferences personal different suiting situation, recording. acoustical of of types levels type Different different little parametric_x.earSpeakerLevel. a using simulate adjusted be can processing EarSpeaker • • • • • • • • podn n otoln srprograms user controlling and mode uploading recording in data data encoded header receiving and effects information builtin status and to clock, access mode, operation the of control 50000 orefrhraa than away further source 38000 12000 preprocessing. binaural 0 PRELIMINARY contains played be to audio the if or loudspeakers through listening when option Best : utdfrodo dy eodns ri h ui ob lydi artificial. is played be to audio the if or recordings, ’dry’ or old for Suited : utdfrlseigt omlmsclsoe ihhapoe,mvssound moves headphones, with scores musical normal to listening subtle. very for headphones, Suited with scores musical : normal to listening for Suited : S03 Datasheet VS1063a minimal . UCINLDESCRIPTION FUNCTIONAL 9 oebt nSIMD n C_TTSaehrwr is te eitr nycnrlthe control only details. registers for other Guide bits; Hardware hardware VS1063 are See SCI_STATUS firmware. and routine SCI_MODE 3. application/plugin . SCI_AIADDR, in . user SCI_AICTRL0. bits for SCI_AUDATA, the and Some SCI_AIADDR, except in of spent cycles, time cycles read CLKI the the 100 to addition counted In under be in cycles. must 200 complete take registers may SCI which all from Reads 6 progress. in is update register eso:04,21-12 39 2011-11-24 0.42, Version: at run to 5 cycles. enabled). drivers (analog 0x60 4 to while short a to cycles clock 3 100 than less take instead. that delay 2 writes fixed register a those use for and check execute DREQ the skip to choose 1 data, another. more sending accept before not operation can the SDI complete is the to DREQ because before time operation operation enough SCI SCI/SDI is a new there before a certain low start make is not DREQ SCI do If operation, an SCI again. when an high before low high pro- is is processing. has DREQ DREQ operation If it If SCI when after operation. low it the cycles stays restores also CLKI on and it 40 depends performed, active) to duration is 16 is The operation is routine delay operation. service (this the operation interrupt cessed SCI an an whether detects on it depending when low DREQ sets VS1063a Registers SCI 9.8 Reg 0xD 0xC imaecagstevleo hsrgse meitl o0x4800. to immediately register this of value the changes Firmware nadto,tecce pn nteue plcto/lgnruiems ecounted. be must routine application/plugin user the in spent cycles the addition, In 0xE 0xB 0xA imaecagstevleo hsrgse meitl o06 aao nbe) n after and enabled), (analog 0x68 to immediately register this of value the changes Firmware hsi h os-aetm htDE ty o fe rtn oti eitr h srmay user The register. this to writing after low stays DREQ that time worst-case the is This 0xF ftecokmlile scagd rtn oSICOK eitrmyfreitra clock internal force may register SCI_CLOCKF to writing changed, is multiplier clock the If 0x9 0x8 0x7 0x6 0x5 0x4 0x3 0x2 0x1 0x0 hnmd eitrwieseie otaersttewrtcs iei 20 XTALI 22000 is time worst-case the reset software a specifies write register mode When

PRELIMINARYTyp. rw rw rw rw rw rw rw rw rw rw rw rw rw rw 1 r r . 0 × 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0x000C 0x4000 Reset TL o hl.Tu ti o odie osn C rSIbt hl this while bits SDI or SCI send to idea good a not is it Thus while. a for XTALI S03 Datasheet VS1063a 6 3 20XTALI 1200 rt Time Write 1 CLKI 210 CLKI 450 0 CLKI 100 CLKI 100 CLKI 100 0CLKI 80 CLKI 80 CLKI 80 CLKI 80 CLKI 80 0CLKI 80 CLKI 80 CLKI 80 CLKI 80 CLKI 80 C eitr,pexSCI_ prefix registers, SCI 2 2 2 2 2 2 5 4 1 WRAM AUDATA DECODE_TIME CLOCKF BASS STATUS MODE Name AICTRL3 AICTRL2 AICTRL1 AICTRL0 VOL AIADDR HDAT1 HDAT0 WRAMADDR A write/read RAM data audio Misc. seconds in time Decode multiplier + freq Clock control bass/treble Built-in VS1063a of Status control Mode Description plcto oto eitr3 register control Application 2 register control Application 1 register control Application 0 register control Application control Volume application/plugin of address Start 1 data header Stream 0 data header Stream write/read RAM for address Set UCINLDESCRIPTION FUNCTIONAL 9 eso:04,21-12 40 data sending continue and SM_CANCEL, set middle, 2011-11-24 the 0.42, in Version: a decoding stop to automatically. want cleared you is bit If This 1. to SM_RESET II. setting and by I initiated layers is to reset pertaining arise. Software patents may all cover that not issues does patent III any Layer 2.0 for / liable III. 1.0 layer are MPEG to you addition in decoding, decoding II II layer Layer 2.0 and 1.0 signal. MPEG left/right enables creates SM_LAYER12 differential this a input creates stereo this a input For mono output. a channel for left and the surround, inverts player virtual the set, is SM_DIFF When control. (SW) software or (HW) hardware a is bit that if tells table following the in “Mode” Note: (SM_SDINEW 0x0800 to defaults and VS1063a of operation the set). control to used is SCI_MODE (RW) SCI_MODE 9.8.1 PRELIMINARYSM_CLK_RANGE SM_LINE1 - SM_ENCODE SM_SDINEW SM_SDISHARE SM_SDIORD SM_DACT SM_TESTS SM_CANCEL SM_RESET SM_LAYER12 SM_DIFF Name S03 Datasheet VS1063a Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Mode HW HW HW HW HW HW SW SW SW SW SW SW SW SW SW SW nu lc range clock Input selector LINE1 / MIC - Encoding Activate modes SPI native VS10xx select chip SPI Share order bit SDI edge active DCLK reserved reserved tests SDI Allow reserved file current decoding Cancel reset Soft II layer MPEG Allow Differential Function Value 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 UCINLDESCRIPTION FUNCTIONAL 9 allowed allowed not wrong right yes no reset reset no yes no inverted channel left audio in-phase normal Description 4 6MHz 26 . . 24. MHz 13 . . 12. LINE1 MICP wrong right yes no yes no yes no last MSb first MSb falling rising wrong right wrong right on iesn of licensing Joint fyuenable you If eso:04,21-12 41 PRELIMINARY 2011-11-24 0.42, Version: becomes MHz 24 e.g. view of point reset. chip chip’s a the after From possible as soon input. as the set be at set, should is 2 SM_CLK_RANGE SM_CLK_RANGE by MHz. When 12 divided input. XTAL is the clock in the divider used. clock micro- is a differential pin activates MICP/LINEIN1 ’0’, SM_CLK_RANGE line-level If ’1’, if input. used; analog are for MICN and input MICP left-channel pins the input select phone to used package. is the of SM_LINE_IN manual the in instructed recommended as en- the started if the is that encoding activate note audio However, will then ). 55 user page the on 10.7 time, Patches Chapter VS1063a same (see the mode codec at or SM_RESET coding and up. SM_ENCODE started activating is By VS1063a when default a 7.4.2. as and set 7.2.1 is Chapters in bit described this as that modes Note, serial native VS10xx activate will SM_SDINEW Setting Chap- in explained set. as is select, SM_SDINEW chip however, also same if are, the 7.2, share Bytes bus. ter SDI SCI last. and the SCI 7 makes on bit SM_SDISHARE effect and Setting no first has received bit is register This 0 order. bit user default the i.e. the SM_SDIORD, setting in SDI, By sent for still first. order MSb bit sent rising the are the reverse SDI may at on bytes read clear, is is SM_SDIORD data When ’0’, edge. When falling the SDI. at for read clock is data data ’1’, of when edge edge, active 10.12. Chapter the at defines look tests, SM_DACT SDI on details more For cleared. allowed. are bit tests SDI SM_CANCEL set, is the SM_TESTS If and discarded details. for is 10.5.2 content Chapter return buffer See and cleared. decoding stream be stop The also will will it SCI_HDAT1 loop. codec, main a by the detected to is SM_CANCEL When DREQ. honouring akg sue ( used is package S03 Datasheet VS1063a http://www.vlsi.fi/en/support/software/vs10xxplugins.html UCINLDESCRIPTION FUNCTIONAL 9 ), eso:04,21-12 42 2011-11-24 0.42, Version: voltage reference V 1.65 the select to in swing. set is output be analog XTALI can the SS_REFERENCE_SEL if V, increase 3.3 to 2 least at by is AVDD frequency If modulator AD the divide range. MHz to 26 . set . 24. be can reset. SS_AD_CLOCK to activating SCI_VOL before set milliseconds transient, few power-off a minimum least a at for with wait VS1063a then powerdown 0xffff, to wants user only. the firmware If system the analog by used internal be controls to meant SS_APDOWN1 are bits powerdown. These powerdown. driver analog controls SS_APDOWN2 VS8053, and VS1103. VS1053 for for 7 4 and VS1003, for VS1063, 3 for VS1002, 6 for VS1033, 2 for VS1011, for 5 1 VS1001, for 0 feature. is the SS_VER protection the while disable high to is set SS_VCM_OVERLOAD be can ground. SS_VCM_DISABLE to much detected. too short-circuit is when a overload driver indicating GBUF drawn, the disconnects is headroom. which overdrivencurrent of circuit be amount protection the to GBUF control modulator contains to DAC VS1063a I2S gives the with 1 cause SS_SWING mode, 7 use normal to can You is 3 used. 0 from be Value Settings not setting. dB. should +1.0 volume and gives dB 0 2 the and above dB, +0.5 go to or you reset allows set. soft SS_SWING left is use accidentally you header be If can AAC-ADIF allowed. it not or or is yourself file MP4, the bit WMA, in this location clear Vorbis, another cancel, Ogg to WAV, jumping and a decoded when being set is SS_DO_NOT_JUMP control. (SW) software or (HW) hardware a is bit that if tells table following the some in controls “Mode” about. also Note: care It to have usually VS1063a. not of does user status the current that things the low-level on information contains SCI_STATUS (RW) SCI_STATUS 9.8.2 PRELIMINARYSS_REFERENCE_SEL SS_AD_CLOCK SS_APDOWN1 SS_APDOWN2 SS_VER SS_VCM_DISABLE SS_VCM_OVERLOAD SS_SWING SS_DO_NOT_JUMP Name S03 Datasheet VS1063a 14:12 Bits 7:4 9:8 10 11 15 0 1 2 3 Mode HW HW HW HW HW HW HW SW SW SW eeec otg eeto,’’=12 ,’’=16 V 1.65 = ’1’ V, 1.23 MHz 3 = = ’0’ ’1’ selection, MHz, voltage 6 Reference = ’0’ select, clock AD powerdown internal Analog powerdown driver Analog Version disable reserved = ’1’ detection dB overload +3.5 overload GBUF or = , ’1’ . . indicator . overload dB, GBUF +0.5 dB, +0 to forward/rewind swing fast Set not do decode, in Header Description UCINLDESCRIPTION FUNCTIONAL 9 eso:04,21-12 43 2011-11-24 0.42, Version: 10.11.6) (Chapter equalizer 5-band the run. active, is not Control Treble is or Enhancer Bass interrupts the to. audio either When written chips, is VS10XX SCI_VOL earlier or of with SCI_BASS batch when unlike next missed Thus, the be FIFO. until longer delayed audio no is the can change to volume sent and are initialization samples treble samplerate. and Hz bass VS1063a 44100 In at MIPS 1.2 Control Treble simultaneously. and on MIPS be can 2.1 Both about setting uses kHz. example 10 Enhancer above For Bass and at enhancement non-zero. treble is dB 10.5 ST_AMPLITUDE have will when 0x7a00 activated to SCI_BASS is VSTC the Control bass: Treble create not with. does begin also music It to dynamical bass maximum. with some to boost have set bass must not best material is the volume source gives playback the it when clipping, or avoid material, en- to tries dB VSBE 15 Because have Note: will 0x00f6 to SCI_BASS user’s setting the Hz. example frequency 60 lowest For the below the hancement to reproduce. times set can 1.5 be system roughly should to audio SB_AMPLITUDE SB_FREQLIMIT non-zero. and is preferences, SB_AMPLITUDE user’s when the activated take is to VSBE tries clipping. which causing algorithm, without DSP earphones boosting users bass the powerful of a out is most VSBE Enhancer Bass The (RW) SCI_BASS 9.8.3 PRELIMINARYSB_FREQLIMIT SB_AMPLITUDE ST_FREQLIMIT ST_AMPLITUDE Name 15:12 11:8 Bits 3:0 7:4 S03 Datasheet VS1063a Description oe ii rqec n1 zses(...15) . . (2. off) steps = Hz 0 10 15, in . . frequency (0. limit steps Lower 15) dB . . 1 (1. in steps off) Enhancement Hz = Bass 1000 0 in 7, . frequency . (-8. limit steps Lower dB 1.5 in Control Treble UCINLDESCRIPTION FUNCTIONAL 9 lc yls h ausaea follows: as are values The cycles. clock configured. eso:04,21-12 44 2011-11-24 0.42, Version: Automatic files. AAC and WMA one decoding done when is happen change only clock can change clock Automatic Note: is samplerate 12 maximum is because MHz. register XTALI=12.288 Note: mean this to for assumed value is 0 correct value the default The calculating Note: for formula MHz. The 12.288 than steps. else something kHz at 4 running is in XTALI clock set input is the XTALI if tell to used is SC_FREQ values by The specified stream. multiplier AAC the or WMA to a add decode to to needed allowed are: temporarily is are firmware cycles more decoder if the SC_MULT much how tells SC_ADD CLKI. higher than a more create by to changed XTALI is multiply multiplier will the This When multiplier. clock built-in the activates SC_MULT and VS1003 to compared VS1063a in slightly changed Multiplier has VS1033. SCI_CLOCKF of operation The (RW) SCI_CLOCKF 9.8.4 hoet s is use to choose 1000. = 0x3E8 = = SC_FREQ XTALI 3 and 1 that = SC_ADD means 4, = This SC_MULT 0x8BE8, is SCI_CLOCKF If file. Example: the throughout clock SDI and SCI same the use TALI XT . 3 2 1 0 SC_ADD 7 6 5 4 3 2 1 0 SC_MULT SC_FREQ SC_ADD SC_MULT Name 5 . 288 × XTALI 4000 − MHz. PRELIMINARY8000000 42 = 0x1800 0x1000 0x0800 0x0000 MASK 0xe000 0xc000 0xa000 0x8000 0x6000 0x4000 0x2000 0x0000 MASK 0 0 10: 12:11 15:13 Bits C_LCFbits SCI_CLOCKF XAIi nHz). in is (XTALI H,adtemxmmalwdmlile httefimaemyautomatically may firmware the that multiplier allowed maximum the and MHz, (3 . 1 + 5 1 lc frequency Clock addition multiplier Allowed multiplier Clock Description . 2.0 1.5 1.0 allowed is modification No addition Multiplier S03 Datasheet VS1063a 5 XTALI XTALI XTALI XTALI XTALI XTALI XTALI XTALI CLKI × × × × . 0) n addition and 0 . 1000 × 5 × × × × × × × × XTALI 5 4 4 3 3 2 2 ...... tatm.Ti osntcueado to drop a cause not does This time. a at 0 5 0 5 0 5 0 × 00+8000000 + 4000 54 = 0 . 5 MHz. TALI XT × 256 0 aebe eoe oalwhge lcst be to clocks higher allow to removed been have . 5 × l apeae r o vial fXTALI if available not are samplerates all , h hprn at runs chip the , 2Mz h lc utpiri e to set is multiplier clock The MHz. 12 = UCINLDESCRIPTION FUNCTIONAL 9 1 . 0 × 1 lc o e hundres few a for clock . 0 × lc n o can you and clock < eso:04,21-12 45 accessed. 2011-11-24 be 0.42, should Version: memory instruction and Y, X, in areas user only specified, otherwise Unless Note: memory. peripheral or I Y, X, access writes/reads. to SCI_WRAM table following following the for from address offset program address the an set Use to used is SCI_WRAMADDR full-word each After (W) SCI_WRAMADDR first). words 9.8.8 significant most instruction (i.e. each autoincremented. for big-endian is needed pointer is internal are order the writes/reads the write/read, byte consecutive As of two The write/read. write/read long, SCI_WRAM first bits one word. the 32 with to transferred is be prior word can SCI_WRAMADDR instruction word to data writing The 16-bit by RAMs. One data initialized SCI_WRAM. and be instruction must to data address and programs start application upload to used is SCI_WRAM (RW) SCI_WRAM 9.8.7 SCI_AUDATA. to samplerate low a write can change. you not idle, does when consumption mode power stereo digital Hz, reduce To 44160 to the samplerate (11024). change sets 0x2B10 0xAC80 will SCI_AUDATA as Writing reads to Example: data (44101). Writing mono 0xAC45 Hz as 11025 stereo. reads Example: for data stereo 1 Hz by and 44100 divided data Example: samplerate mono found the for be contain 0 can 15:1 is directly. channels Bits samplerate 0 of respectively. SCI_AUDATA, bit number of and and 0 two, samplerate and current 15:1 bits the in data, correct decoding When the (RW) SCI_AUDATA see position, play 9.8.6 absolute the indicate also can Vorbis) Ogg positionMsec and (WMA looped codecs with automatically Some proceed cleared to the (see longer time playback decode no fast files. With the is multiple allow of It playback to seamless ends reset. with and file software files a and to of hardware write decoding every written A when at be firmware. should reset the value is by new overwritten SCI_DECODE_TIME the not case is that change the the In resets that also register. SCI_DECODE_TIME certain this absolutely seconds. of make full value in to the register twice this change in may shown user is The time decoded current data, correct decoding When (RW) SCI_DECODE_TIME 9.8.5 PRELIMINARY 0xFFFF . . 0xE000. 0xC0FF . . 0xC0C0. 0xC0BF . . 0xC000. 0x8FFF . . 0x8000. 0x7FFF . . 0x4000. 0x3FFF . . 0x0000. End . . Start. WRAMADDR . 10.11 section in parameter extra S03 Datasheet VS1063a x00 0xFFFF . . 0xE000. 0x1E3F . . 0x1E00. 0xC0BF . . 0xC000. 0x0FFF . . 0x0000. 0x3FFF . . 0x0000. 0x3FFF . . 0x0000. End . . Start. addr. Dest. playSpeed bitRatePer100 xr aaee)tedcd ieas onsfaster. counts also time decode the parameter) extra 16 16 16 32 16 16 Word Bits/ aaRAM data Y parametric_x I/O RAM Instruction RAM data Y RAM data X Description calculation. UCINLDESCRIPTION FUNCTIONAL 9 eso:04,21-12 46 PRELIMINARY 2011-11-24 0.42, Version: value the multiply file, the of bitrate the get To the second. contains 32. SCI_HDAT0 per by quadruples (0x664c). byte “fL” in contains 8. rate SCI_HDAT1 by data detected, average value the is multiply format file, FLAC average the When of the bitrate contains the SCI_HDAT0 get To second. “Og”. per 0x4F67 bytes in contains rate SCI_HDAT1 8. data by files, value Vorbis the multiply Ogg file, For the rate of data bitrate the the get contains To SCI_HDAT0 second. and per (“WM”) bytes 0x574D in measured contains SCI_HDAT1 file, the files, of WMA (“M4”). bitrate For 0x4D34 the get contains To SCI_HDAT1 second. files, per 8. bytes .m4a by value in / the rate multiply data .mp4 average AAC the SCI_HDAT1 For contains files, SCI_HDAT0 ADIF (“AD”). AAC For 0x4144 (“AT”). 0x4154 contains contains SCI_HDAT1 streams, ADTS AAC file, 65535. For to the saturates of value SCI_HDAT1 bitrate bit/s, the 524280 get over To is bitrate formats. WAVE if mea- RIFF Note: rate 8. supported data by all value the for the contains second multiply SCI_HDAT0 per bytes (“ve”). in 0x7665 sured contains SCI_HDAT1 files, WAV For (R) SCI_HDAT1 and SCI_HDAT0 9.8.9 S03 Datasheet VS1063a UCINLDESCRIPTION FUNCTIONAL 9 eso:04,21-12 47 PRELIMINARY 2011-11-24 variable 0.42, for Version: that Notice table. following the to constantly. according changes read value the is HDAT0 stream bitrate in field “bitrate” The table: following the to according interpreted is SCI_HDAT0 in field “samplerate” The data no indicating from cleared, extracted are registers is yet. both found that reset been After information has decoded. header being currently contain SCI_HDAT1 stream MP3 and SCI_HDAT0 read, When follow- the contain 0 / SCI_HDAT1 0xFFFF. and 0xFFE0 ing: between is SCI_HDAT1 files, MP3 For HDAT0[1:0] HDAT0[2] HDAT0[3] HDAT0[5:4] HDAT0[7:6] HDAT0[8] HDAT0[9] HDAT0[11:10] HDAT0[15:12] HDAT1[0] HDAT1[2:1] HDAT1[4:3] HDAT1[15:5] Bit S03 Datasheet VS1063a “samplerate” emphasis original copyright extension mode bit private bit pad samplerate bitrate bit protect layer ID syncword Function 0 1 2 3 Value 2047 44100 48000 32000 0 1 0 1 2 3 0 1 0 1 2 3 0 1 2 3 0 1 2 3 0 1 0 1 0 1 2 3 ID=3 - omlframe normal slot additional kHz 44/22/11 kHz 48/24/12 kHz 8 32/16/ reserved table bitrate see protected CRC CRC No reserved III II I (1/4-rate) 2.5 MPG (1/4-rate) 2.5 MPG (1/2-rate) 2.0 MPG 13818-3 ISO 1.0 MPG 11172-3 ISO valid stream Explanation none microsec 50/15 reserved J.17 CCITT copy original free copyrighted 11172-3 ISO see stereo stereo joint channel dual mono defined not 22050 24000 16000 ID=2 - ID=0,1 11025 12000 8000 - UCINLDESCRIPTION FUNCTIONAL 9 eso:04,21-12 48 PRELIMINARY 2011-11-24 0.42, Version: without SCI_DECODE_TIME. reset to be also writing can by it reset but hardware songs, or between software reset a 10. automatically by not is divide calculation rounded bitrate file, a The the make of kilobitrate, bitrate the the get get to To the and codecs. see 100, all memory, by for from value rate read byte the be the multiply can contains variable second This per parameter. bytes extra in rate data average The “bitrate” S03 Datasheet VS1063a 10 11 12 13 14 15 0 1 2 3 4 5 6 7 8 9 forbidden ID=3 112 128 160 192 224 256 320 384 ae II Layer 32 48 56 64 80 96 kbit/s - forbidden ID=0,1,2 112 128 144 160 16 24 32 40 48 56 64 80 96 8 - forbidden ID=3 112 128 160 192 224 256 320 ae III Layer 32 40 48 56 64 80 96 kbit/s - UCINLDESCRIPTION FUNCTIONAL 9 forbidden ID=0,1,2 112 128 144 160 16 24 32 40 48 56 64 80 96 8 - bitRatePer100 eso:04,21-12 49 PRELIMINARY 2011-11-24 0.42, Guide. Version: Programmer’s VS1063 see applications, user write to how on details See more For audio. encoding when registers parameter as details. for used 10.7 also Chapter are registers SCI_AICTRL pro- The application/plugin user’s the access to used be can ) 3] gram. . . x=[0. ( registers SCI_AICTRL[x] (RW) SCI_AICTRL[x] 9.8.12 not does software the Resetting volume. full to set is setting. volume volume the the reset reset hardware After Note: noise hardware audible The all removes slightly. batch setting changed. completely next is volume almost volume the the which when delays until occurs detection, This delayed that zero-cross FIFO. is audio has change the control volume to volume and sent are initialization samples treble of and bass VS1063a In 0x2424 (2.0/0.5) = SCI_VOL channel: Example: right the for dB -3.5 and channel 7 left = the 3.5/0.5 for dB 4, -2.0 = of volume a for Example: mode. powerdown analog activate Thus, will 0xFFFF to steps. SCI_VOL dB Setting 0.5 The in 0xFEFE. level is volume. silence volume channel total maximum right and the the 0x0000 volume controls from is the volume attenuation part of maximum byte low the significant the sets most volume, volume The channel channel hardware. left player the the controls for register control volume a is SCI_VOL (RW) SCI_VOL 9.8.11 Programmer’s VS1063 see plugins, and applications user write to how Guide. on details more For recommended. not is SCI_AIADDR Reading zero. this Note: written used, be is should code it application or to, no uploaded written If been be has not registers. that should SCI_WRAM code register and application/plugin SCI_WRAMADDR the with of address earlier start the defines SCI_AIADDR (RW) SCI_AIADDR 9.8.10 → C_O 0x0407. = SCI_VOL S03 Datasheet VS1063a → ohlf n ih oue r x4*-. 1. dB -18.0 = -0.5 * 0x24 are volumes right and left both UCINLDESCRIPTION FUNCTIONAL 9 eoeV16ai sdi srcmeddt odadrntecurrent the run and load to at recommended available is is is it It used package. is for VS1063a 9.8.4 Before section See 3). (register SCI_CLOCKF to to 0x9800 set value be write details. to then needs rises, Multiplier Clock DREQ Internal until the wanted, are values typical eso:04,21-12 50 PRELIMINARY 2011-11-24 0.42, Version: SCI_CLOCKF the through multipliers Supported PLL. a with are multiplied register be a can after possible clock as Internal soon as set be should DREQ. SM_CLK_RANGE for MHz, waiting 26 without . . reset 24. chip is the clock input this the After If MHz. details. and for 12.288 SCI_CLOCKF, 9.8 SCI_BASS, at section cycles, SCI_MODE, run See clock as is decoding. 22000 registers starting VS1063a software around before if basic for SCI_VOL delay such down set ms stay should will 1.8 user DREQ approximate to power-up) an go at means will (or which pins reset input hardware All a XCS. After by states. controlled default still their is to which SO, go except pins state), output (input state all high-impedance asserted, Also is XRESET stopped. When are clocks where and external parts stage, any and analog consumption to registers and power digital grounded. asynchronous control minimum both is XTALO is the where in XRESET-signal mode, all are full-powerdown a VS1063a and values. as of reset initial doubles mode the is reset to VS1063a The clock. low, set are driven states is internal signal XRESET the When a gets IC Reset the Hardware and input clock 10.2 the at 2 by divided then is clock system reg- clock. SCI_MODE input The the MHz in 13 . 1. SM_CLK_RANGE . 12. bit to when set clocks MHz is 26 . ister . 24. use parts also can analog VS1063a the inter- by upto the samplerates used by all is clock or clock MHz XTALI) 12.288 available. This With pin are XTALO). samplerate. Hz to 48000 available and (connected highest XTALI the circuitry clock. (pins determines master external interface and frequency by crystal fundamental generated clock MHz be nal 12.288 can nominally clock single, This a on operates VS1063a Clocking 10.1 Operation 10 1 . 0 × . . . 5 S03 Datasheet VS1063a . 0 × h nu lc.RstvlefrItra lc utpiris Multiplier Clock Internal for value Reset clock. input the http://www.vlsi.fi/en/support/software/vs10xxplugins.html 3 . 5 × S03 Patches VS1063a fe ee.Wait reset. after 0OPERATION 10 . 1 . 0 × If . hndrn eoig n cieymntr h eildt nu o ai data. valid consumption for power input (lower data mode serial idle the into monitors goes actively and VS1063a decoding) decoding, during for than input no SCI_HDAT0 is found, there is When data are decodable samples no Decoded If decoded. DAC. 0. is to internal data set the are SDI SCI_HDAT1 by and VS1063a. domain of analog mode to operation converted normal the is This Decode and Play 10.5 reset. hardware than electricity more significantly consumes mode power low The Note: order. reverse in values register revert mode, low-power from return To power the lower to need but data, decoding not tricks. following while the running use system can the you keep consumption, to need you If Mode Power Low 10.4 eso:04,21-12 51 2011-11-24 0.42, Version: current the run and load to recommended at available is is it It package. reset software each After played are bitrates or between samplerates reset low software with a files end. even do that their to sure to recommended be right may not if user is the delay it way chips, This ms VS10XX 1.8 songs. usual. earlier as approximate all playback to continue an opposed may As means you high, which goes DREQ cycles, When clock MHz. 12.288 22000 at run SM_RESET 2 about bit is least for activating VS1063a at by for down done wait is stay Then This will 9.8.1). reset. (Chapter be to SCI_MODE has register software in decoder the cases some In Reset Software 10.3 • • • • PRELIMINARY drivers. analog the disable to SCI_VOL to 0xffff write application, the for possible If post-processing other and EarSpeaker controls, (tone options). post-processing audio all power. saving off Turn thus sam- VSDSP interrupt, the the an interrupts reduce for audio wait will Between just This SCI_AUDATA. required. will to interrupts core audio 0x0010 of as number the such and value, plerate non-zero low a Write power. some the Select 1 . 0 × lc ywiig000 oSICOK.Ti ialstePLadsaves and PLL the disables This SCI_CLOCKF. to 0x0000 writing by clock S03 Datasheet VS1063a http://www.vlsi.fi/en/support/software/vs10xxplugins.html µ ,te oka RQ DREQ DREQ. at look then s, S03 Patches VS1063a 0OPERATION 10 . eso:04,21-12 52 2011-11-24 0.42, Version: the to enough fast audio. data forward fast feed to can way microcontroller preferred your the is If this playback. VS1063a, audio fast allows VS1063a Play Fast 10.5.3 another to jump to wants user the when operation normal playback. a doing is while song song a of playback Cancelling Playback Cancelling 10.5.2 mode. playback default the is This File Whole a Playing 10.5.1 T xtfs lymd,wie1t playSpeed. to 1 write mode, play fast exit To 10.11). 4. file. (Chapter audio playSpeed value sending parameter Continue extra set 3. play, fast VS1063a. set to To file audio 2. an sending Start 1. decoded. being is format no that indicate endFillBytes. to 12288 0 send contain should both now you should FLAC HDAT1 For and HDAT0 endFillByte[7:0]. 6. of 10.11). bytes (Chapter endFillByte 2052 it value Send parameter If extra read 5. cleared, data. has SM_CANCEL of When bytes 4. 32 every after SM_CANCEL check but file, audio sending Continue VS1063a. SM_CANCEL. 3. to bit file SCI_MODE audio Set an of 2. portion a Send 1. contain both now should cleared HDAT1 and hasn’t HDAT0 SM_CANCEL sent. If successfully been 5. now has to song go The set, 7. still is SM_CANCEL If SCI_MODE. endFillByte[7:0]. of Read bytes 32 6. least endFill- at 12288 Send send SM_CANCEL. 5. should bit you SCI_MODE FLAC Set For 4. endFillByte[7:0]. of bytes 2052 least at ). 10.11 Send (Chapter endFillByte 3. value parameter extra VS1063a. Read to file 2. audio an Send 1. PRELIMINARY file. audio next the send now can You a do second, one or bytes 2048 after clear rare). doesn’t extremely SM_CANCEL be If should (this reset 3. software goto set, still is 1. to Return decoded. being is format no that rare). indicate extremely to be 0 should (this reset software a do bytes, 2048 sending after file. a ending when Bytes S03 Datasheet VS1063a 0OPERATION 10 eso:04,21-12 53 2011-11-24 0.42, Version: algorithm: in following information the correct time use exact possible, maintain offer whenever to files information Vorbis way time Ogg accurate no and use is To WMA there file. However, the performed, files. are most for operations time rewind decode and forward fast When Time Decode Correct Maintaining 10.5.5 account. into jumps take not does DECODE_TIME forward- Register fast Note: when dB 10 e.g. by decreased is volume playback that ing/rewinding. recommended is It Note: are headers file file. when audio like the times, to all access at random available do to isn’t capability rewind read. the being and need forward you fast rewind Unfortunately and forward fast do To Audio without Rewind and Forward Fast 10.5.4 changed. is song when reset not is speed Play is Note: play fast when even speed nominal at back played play file fast the bitRate- of in that active. Note speed VS1063a data 10.11). to the (Chapter data bitRatePer100 contains value enough Per100 parameter feed extra can of contents microcontroller see your mode, not or whether estimate To I oiinsci o 1 s hstm oso h xc oiini h file. the in position exact the show to time this use (and -1, DECODE_TIME not using is time positionMsec decoding If of 4. estimation you show -1, is 10.11). positionMsec (Chapter If positionMsec pair 3. value parameter VS1063a. extra to Read file audio 2. an sending Start 1. file. the sending file. Continue the in 6. backwards or endFillByte[7:0]. forwards of Jump bytes 2048 5. least at 10.11). Send (Chapter endFillByte 4. value bit parameter extra that Read If SS_DO_NOT_JUMP. bit 3. SCI_STATUS read required, is VS1063a. to access file random audio When an of 2. portion a Send 1. PRELIMINARY operations). rewind / forward fast performed have you if position file of estimate your 1. to back go so performed, be cannot access random set, is S03 Datasheet VS1063a 0OPERATION 10 eso:04,21-12 54 2011-11-24 0.42, Version: |....data....| |...... D...... | | 00 |RIFF....WAVEfmt 02 ff b1 ff 20 10 ff 74 00 ff 6d 00 66 ac 61 45 44 74 56 61 41 00 64 57 02 00 00 10 ff 01 00 ff 00 04 ff 00 ff 00 0020 46 10 46 follows: as 49 read 0010 would 52 header PCM stereo 0000 16-bit Hz 44100 A devices. Example: other any to sent be to datastreams ignores the VS1063a intend don’t PCM, you back playing When Note: follows: as are variables four the calculate to rules The mode PCM PCM in by this: stay supported like followed is will looks header, audio header VS1063a linear WAV 0xFFFFFFFF, file 16-bit A WAV and is stereo. linear header a 8-bit or WAV mono sending set). the been in by has in SM_CANCEL decoder sent until (or PCM length indefinitely the a If as used data. be can VS1063a Data PCM Feeding 10.6 ieOffset File • • • • • A data mono For R S o -i data 8-bit For = = PRELIMINARY= 56 52 34 32 28 24 22 20 16 12 apeaei z ..410fr4. kHz. 44.1 for 44100 e.g. Hz, in samplerate 8 4 0 S C × 8 × B SubChunk2Size SubChunk2ID BitsPerSample BlockAlign ByteRate SampleRate NumOfChannels AudioFormat SubChunk1Size SubChunk1ID Format ChunkSize ChunkID Name Field A . . B C S03 Datasheet VS1063a 8 = 1 = n o 6btdata 16-bit for and , o trodata stereo for , Size 4 4 2 2 4 4 2 2 4 4 4 4 4 "data" B1 B0 A1 A0 R3 R2 R1 R0 S3 S2 S1 S0 C1 C0 0x0 0x1 0x0 0x0 0x0 0x10 " "fmt "WAVE" 0xff 0xff 0xff 0xff "RIFF" Bytes xf0f xf0xff 0xff 0xff 0xff C 2 = B 16 = . R . and x000 o 6btdata 16-bit 16-bit stereo for for 0x00 0x00 0x10 0x04 mono, for 0x00 mono 0x02 16-bit kHz 8 for 0x3e80 kHz 8 for stereo 0x1f40 for 2 mono, for 1 PCM Linear 16 Description aasize Data A o a e hmt ntigif anything to them set may You . 0OPERATION 10 eso:04,21-12 55 2011-11-24 0.42, Version: is gain The gain. be encoding can linear SCI_AICTRL2 activation. controls before and SCI_AICTRL1 values SCI_AICTRL1 init good write startup. to preferable encoding is at it but read anytime, encod- altered only activating Before are set. values is SM_LINE1 These if input mic differential user of ing, instead used is 1 input Line SCI_MODE. activate in Otherwise, SM_ENCODE SCI_AIADDR. and SM_RESET to bits 0x50 setting writing by then encoding SCI_MODE, register in the SM_ENCODE use you If Registers Control Encoding 10.7.1 MIC either LINE2. is is channel channel left right The the or channels. register, left right SCI_MODE and either the left on select the depending can of LINE1 encoding stereo down-mix or Mono and mono enabled) a available. AGC or are if channel, modes AGC, right enabled) (separate AGC two-channel if also AGC, thus (common ADC, stereo a VS1063a. has of VS1063 modes codec and encoding the use to how explains chapter This Encoding Audio 10.7 os hnteei osga.I C_ITL szr,temxmmgi siiilzdt 65535 to initialized of is amplification gain maximum the the limit zero, is to SCI_AICTRL2 used If be (64 signal. can no This is there gain. when control AGC noise gain off maximum automatic better the use encodings. are controls in to SCI_AICTRL2 usually loudness wants speech applications user uniform speech the relatively Typical of If care 0. takes on. this to so as and set AGC, using 0.5 be is should 512 SCI_AICTRL1 1.95, (AGC), is 2000 1.0, gain SCI_WRAMADDR SCI_AICTRL3 SCI_AICTRL2 SCI_AICTRL1 SCI_AICTRL0 SCI_MODE Register × PRELIMINARY used. is range whole i.e. ), must rt h ih aust C_ITL,SIACR3 n SCI_WRAMADDR. and SCI_AICTRL3, SCI_AICTRL0, to values right the write S03 Patches VS1063a S03 Datasheet VS1063a 5 0 . . 15. 15 14 13 12 11 10 8:9 7:4 3 2:0 15:0 15:0 15:0 14 12, 2, Bits ult irt eeto o g obsadMP3 and Vorbis Ogg for selection bitrate / decode) Quality and encode (both mode codec enable AEC enable TX UART 0 to set reserved, mode) codec in expected enable (or Pause inserted header WAV RIFF No 0 to set reserved, 6 . . 0. format Encoding 0 to set Reserved, 4 . . 0. mode 1 ADC = (1024 amplification autogain Maximum 1 = startup) (1024 encoding gain at Encoding (read Hz 48000 . . 8000. Samplerate MIC/LINE1 select mode, ENCODE Start Description akg,atvt noigmd yfis etn h bit the setting first by mode encoding activate package, ITRL AICT × r0fratmtcgi control gain automatic for 0 or ) 1024 1 o12 seult digital to equal is 1024 so , × 53 64 = 65535 , 0OPERATION 10 × ) h orsodn hne ic h atcero h aibe nmn oe only modes mono In variable. the updated. of clear is last the since channel corresponding the parametric_x.i.encoding.channelMax control flow transmit for mask GPIO = txPauseGpio bytespeed bytespeed use UART to = 0 txUartByteSpeed or divider UART = reset. txUartDiv software at cleared longer no eso:04,21-12 56 2011-11-24 0.42, Version: from after configured only is and UART bit, register. enable SCI_MODE TX using UART mode AICTRL3 encoding/codec the set the initialized then start is values, that configuration data tx of the transmission write UART first startup, from encode/codec taken at parameters set with is 13 bit SCI_AICTRL3 expectedIf is mode decoded be codec to In (SDI). data interface available. and data not HDAT1, serial and is HDAT0 the mode through through formats codec provided Vorbis Ogg and is and data ignored MP3 encoded is If the G.711 bit initialized. is configuration = mode the 2 codec specified, startup, , at are PCM set is = 15 1 bit SCI_AICTRL3 ADPCM, If IMA = 0 format. encoding the select channel, 7 µ right to = 4 3 bits channel, SCI_AICTRL3 joint left = = 0 2 channels. AGC), of (separate number channel the downmix. dual implicitly mono and = 4= mode 1 ADC AGC), the (common select stereo 2 to 0 stream bits SCI_AICTRL3 the encoder, Vorbis Ogg with from set fetched When delay. is output number encoder-specific. smaller serial is a requests 11 bit bit the SCI_WRAMADDR encoder, Vorbis reservoir Ogg bit with the encoder, set MP3 When the used. with be set not When will encoder-specific. is 10 bit SCI_WRAMADDR Mode Quality mode In bitrate average encoders. the both the Currently in and bitrate. mode average VBR relaxed equals very (ABR) a sets fields multiplier bitrate The kbit/s. 128 multiplier means bitrate base in 128 and multiplier The settings. Note the change kbps. not 128 does of later For bitrate it constant modifying encoding. for so startup, MP3 0xe080 encoder value and at Use Vorbis read Ogg is used. WRAMADDR for not that selection is rate setting this bit formats / WAV quality the sets SCI_WRAMADDR 8:0 9 10 11 13:12 15:14 Bits lw .1 -a,4=G72APM g obs MP3. = 6 Vorbis, Ogg = 5 ADPCM, G.722 = 4 A-law, G.711 = 3 -law, irt base bitrate

PRELIMINARY base bitrate irt ae0t 1 o ult o9i ult oeselected). Mode Quality if 9 to 0 quality (or 511 to 0 base Bitrate 0. to set bit-reservoir internally, use Used not do = 1 length : frame 10000 1=limited = Vorbis: 3 Ogg 1000, CBR Encoder-specific, = parametric_x.i.encoding.serialNumber = 2 1=use 3 100, Vorbis: ABR, = Ogg = 1 Encoder-specific, 2 10, VBR, = = 0 1 multiplier, Mode, Bitrate Quality = 0 mode, Bitrate Description and S03 Datasheet VS1063a ed r nepee.I aibebtae(B)md h irt and bitrate the mode (VBR) bitrate variable In interpreted. are fields edvlest noigqaiyfo o9. to 0 from quality encoding sets value field irt multipler bitrate parametric_x.i.encoding parametric_x parametric_x.i.encoding.serialNumber otistemxmmaslt au nonee in encountered value absolute maximum the contains fyuwn oueUR rnmsin o must you transmission, UART use to want you If . en agtbtaevle o xml in 2 example For value. bitrate target a define irt mode bitrate htpr fo h aaercsrcueis structure parametric the of of part that , irt multiplier bitrate eet o the how selects . channelMax[0] bitrate 0OPERATION 10 signored is and eso:04,21-12 57 2011-11-24 0.42, Version: follows: as goes finish to start from procedure encoding The Procedure Encoding The 10.7.2 Iiilzto;Stsmlrt n parameters: and samplerate Set Initialization; 2. system: Setup Pre-initialization; 1. Nwyucngv otaerstt ne lyrmd rsatecdn again. encoding start or mode player enter to reset software a give can you Now 5. recording: Finalizing 4. Recording: 3. • • • • • • • • • PRELIMINARY• • • • • ciaeecdn ihoeo h w ways: two the of one with only) Vorbis encoding Ogg Activate and (mp3 bitrate/quality set to number. SCI_WRAMADDR serial Vorbis Ogg in fill used, If configuration. UART in fill options used, and If format encoding selection, channel for SCI_AICTRL3 gain max AGC for SCI_AICTRL2 gain/AGC for SCI_AICTRL1 setting) bitrate/quality for (SCI_WRAMADDR samplerate for SCI_AICTRL0 signifi- be will errors. quality have may recording bitstream it the without and lower bitstreams: cantly MP3 conforming for required http://www.vlsi.fi/en/support/software/vs10xxplugins.html the Load hnalsmlshv entasitd MECD i fSIMD ilbe will SCI_MODE cleared. of are SCI_HDAT0 bit and SCI_HDAT1 SM_ENCODE and VS1063a, transmitted, by written been be cleared have should still samples endFillByte. that to all byte 0 last When write the contain Now 7:0 file. then bits output 1, and the to length set to odd is an 15) of (bit is bit file significant the most SCI_HDAT1/SCI_HDAT0. the using If words parametric_x.endFillByte. remaining read all Then read clear. transfers, data will for SM_CANCEL SCI ms), using SCI_MODE. 100 If in than SM_CANCEL less bit (typically set while file, a a After encoding finish to want you When of 13 bit with transfers Chap- UART. data in the UART through described or or as SCI_HDAT0/SCI_HDAT1 10.7.3, ter through SCI data selected read you SCI_AICTRL3, whether on Depending – – eomne:I o s the use you If Recommended: olw:stbtS_NOEi C_OE hnwie05 oAIADDR. the to use 0x50 not write do then you If SCI_MODE, in SM_ENCODE bit set follows: MECD n MSFRSTi eitrSCI_MODE. register in SM_SOFTRESET and SM_ENCODE S03 Patches VS1063a S03 Datasheet VS1063a S03 Patches VS1063a akg,aalbeat available package, S03 Patches VS1063a akg,satecdn oeb setting by mode encoding start package, akg,satecdn as encoding start package, oeta h akg is package the that Note . 0OPERATION 10 fSIHA0sol ewitna h rtbt oafie hntelw8bt.Nt htthis that Note take to bits. have 8 may bits low you 8 the and high microcontrollers, then right. The 16-bit file, this some a do follows. of to to as operation care byte default extra file first the into the to written as contrary and written is SCI_HDAT0 be empty from should to SCI_HDAT0 read from of returns is words and data overflows encoded 16-bit buffer The many the from that enough, read read fast be can read can buffer not you the is 0, of data state. than status the fill greater If The is SCI_HDAT0. SCI_HDAT1 words. 16-bit If 3712 is SCI_HDAT1. buffer data encoding new The have SCI_HDAT1 and SCI_HDAT0 registers activated, been has functions. mode encoding After SCI Through Data Encoded Reading the using 10.7.3 channel left the of from amplification maximum recording and ADPCM control IMA gain automatic mono with kHz amplifier, 16 microphone sets code previous The eso:04,21-12 58 2011-11-24 0.42, Version: at set control loading gain without initialization manual of Example with recording MP3 stereo kHz 48 dB). sets 0 (= code previous The loading including initialization Encoding of Example rtV1xRgse(C_ITL,2;/ ooIAADPCM IMA on Mono AGC // = 0 4.0x gain gain Manual max WriteVS10xxRegister(SCI_MODE, // AGC 2); // WriteVS10xxRegister(SCI_AICTRL3, 4096U); WriteVS10xxRegister(SCI_AICTRL2, kHz 0); 16 WriteVS10xxRegister(SCI_AICTRL1, // 16000U); WriteVS10xxRegister(SCI_AICTRL0, PRELIMINARY Activation // 0x50); WriteVS10xxRegister(SCI_WRAMADDR, MP3 Stereo 1.0x | // at ReadVS10xxRegister(SCI_MODE) gain WriteVS10xxRegister(SCI_MODE, Manual monitoring. 0x60); // correct WriteVS10xxRegister(SCI_AICTRL3, and kHz 1024U); quality 48 WriteVS10xxRegister(SCI_AICTRL1, MP3 // be best 48000U); can for WriteVS10xxRegister(SCI_AICTRL0, package required patch is LoadUserCode(vs1063apatch); The package Patches. This http://www.vlsi.fi/en/support/software/vs10xxplugins.html VS1063a // from loads loaded line // command First // S03 Datasheet VS1063a S_IE) /Mcohn nu,activate input, & Microphone SM_ENCODE) // | ~SM_LINE1); SM\_RESET | (ReadVS10xxRegister(SCI_MODE) MECD SM_LINE1); | SM_ENCODE S03 Patches VS1063a S03 Patches VS1063a : : 4 × 0OPERATION 10 =+2dB). +12 (= 1 × eso:04,21-12 59 00 |...... w..| 2011-11-24 1b 0.42, Version: 72 00 44 01 61 77 74 00 61 00 64 00 bb 00 80 01 00 00 02 01 00 00 10 00 01 00 1b 00 of 02 72 length 00 final 6c 00 a 0020 46 has 14 that 46 file 49 PCM 0010 mono 52 kHz 44.1 a 0000 for header valid bytes: (0x1B7274) a 1798772 of example an is Below RIFF both set will it be, for will values recording fields the SubChunk3Size long Data how and advance ChunkSize in know cannot VS1063a Because ..| |...... data, ff |...... @...@...| | ff ..WAVEfmt ff 00 |RIFFT ff 00 61 1f 20 74 40 74 61 00 6d 64 00 66 1f 45 00 40 56 01 41 00 00 57 02 01 00 00 ff 08 07 ff 00 00 ff 01 00 ff 00 46 00000020 14 46 49 00000010 52 00000000 first). byte mono significant kHz 8 (least finish a little-endian for you are header When a shows following generated.) fields. The not size data is and you header size RIFF (If WAV RIFF a RIFF the information. get fix the other to you SCI_AICTRL3, have and otherwise you of channels, formats, encoding 10 of those number bit have in samplerate, you set be correct If have will the headers mode. with encoding the header Vorbis, selected WAV Ogg the for or header MP3 suitable selected a creates automatically VS1063 Headers File 10.7.4 PRELIMINARY Offset File F 48 44 40 38 36 34 32 28 24 22 20 16 12 8 4 0 and ape... . Samples. SubChunk3Size SubChunk3ID block per Samples size Extra BitsPerSample BlockAlign ByteRate SampleRate NumOfChannels AudioFormat SubChunk1Size SubChunk1ID Format ChunkSize ChunkID Name Field D fe nsigencoding. finishing after S03 Datasheet VS1063a S03 IFWVHeader WAV RIFF VS1063a 74 64 66 42 RFl.WVft| |RIFFlr..WAVEfmt 20 74 6d 66 45 56 41 57 Size 4 4 4 2 2 2 2 4 4 2 2 4 4 4 4 F "RIFF" Bytes 0D 2D3 D2 D1 D0 "data" 0x00 0x01 0x00 0x02 0x00 0x08 0x00 0x01 0x00 0x00 0x1f 0x40 0x00 0x00 0x1f 0x40 0x00 0x01 0x0 0x07 0x0 0x0 0x0 0x14 " "fmt "WAVE" F3 F2 F1 F0 and µ lwWVfie oeta -ad4bt values 4-byte and 2- that Note file. WAV -law D o0FFFF.Yuhv ofili correct in fill to have You 0xFFFFFFFF. to |...... dataDr..| IFident RIFF Description data Size-48) (File size Data ident Data block per sample 1 bytes extra 2 sample / bits 8 block per byte 1 second per Bytes Hz 8000 = stereo 0x1f40 for 2 mono, for 1 format Audio 20 ident fmt ident WAVE 8 - size File 0OPERATION 10 eso:04,21-12 60 2011-11-24 0.42, Version: vol- monitoring update will mode encoding during register SCI_VOL ume. the to writing VS1063a In Volume Monitoring Encode 10.7.7 nominal with samplerates, MP3 MHz. 12.288 all = XTALI for speed table accuracy crystal accurate. samplerate be encoding not a Stereo may is speed is Below recording exception case only which The in kHz, accurately. 32 represented over at be recording can Vorbis encoders Ogg all almost for plerates the When the run and load to recommended is it accurately, Patches work to samplerates encoder For Considerations Samplerate Encoder 10.7.6 you as SDI through file the provide to is do to need file. you audio all any encoding, with your would back play to order In Data Encoded Playing 10.7.5 Requested 12 Hz 11025 Hz 12000 Hz 16000 Hz 22050 Hz 24000 Hz 32000 Hz 44100 Hz 44100 Hz 48000 00Hz 8000

PRELIMINARY at available is is It package. S03 Patches VS1063a f s Actual 12 Hz 11025 Hz 12000 Hz 16000 Hz 22050 Hz 24000 Hz 32000 Hz 44201 Hz 44100 Hz 48000 00Hz 8000 xml noe apeae,XAI=1.8 MHz 12.288 = XTALI samplerates, encoder Example S03 Datasheet VS1063a f s akg,v. rhge,i ntle,te lotalrcrigsam- recording all almost then installed, is higher, or v1.2 package, 02 % +0.23 .0% 0.00 % 0.00 % 0.00 % 0.00 % 0.00 % 0.00 % 0.00 % 0.00 % 0.00 Error http://www.vlsi.fi/en/support/software/vs10xxplugins.html g obssee;ntrcmeddfrstreaming. for recommended not stereo; Vorbis Ogg stereo. Vorbis Ogg except All Note 0OPERATION 10 VS1063a . eso:04,21-12 61 set 2011-11-24 to 0.42, Version: wants serial user requested the the If write encoding, 0xfecaadab. activating to to set prior is should, number he to serial number number, stream serial not Ogg different but the 1024 a least default, at a after As frame. always Ogg activating frame an before a in 10 generated create been bit in to have SCI_WRAMADDR that samples encoder register 2048 means the streaming than set instruct this for more may the will problems KiB), user cause Because This 4 may the (upto which encoding. this, %. dramatically, possible 90 avoid grow as To upto may delay by long systems. frame reduced as the frames be case may Ogg a such make width to bitstream attempts be the to encoder detected, designed CBR is is or silence 5 ABR is When selected, If value is used. the mode is Quality selected, samplerate. value given When is the this VBR for instead. and quality" used If 9, PCM . is . "near 0. encoder. mode between VBR the value selected, by quality is supported a mode to converted main internally the kHz, is 48 . 8.2.2. . mode Chapter 8. Quality see at modes, samplerates supported all of and examples bitrates some of For range stereo. wide and mono a in supports encoder Vorbis Ogg The 6) (format Vorbis Ogg discour- efficiency. strongly coding is and mode quality CBR in in impact the huge off a increase reservoir have will bit will Turning off it as reservoir kbit/s. bit self- aged bit 16 setting . more by . turning frames 4. off encoding, make approximately reservoir will ABR/VBR/Quality bitrate bit This using the When encoding. turn activating to contained. before beneficial SCI_WRAMADDR be register may of it 10 applications streaming make some To For files. MP3 one encode references efficiently reservoir bit more makes to only back. encoder way frame errors, a tranmission to offers PCM resilient reservoir more "near streaming bit be MP3 to so-called designed is The selected, 5 is selected, ABR is If mode encoder. Quality samplerate. the given When by the for supported instead. quality" modes used main is the mode other are VBR any CBR with VBR, encoding mode, MP3 Quality start 16000, to 12000, try 11025, you par- fail. If (8000, Notice silently will supported Hz). encoder 48000 . 8.2.1 are the and Chapter samplerate, samplerates 44100 and see official 32000, mono modes, MP3 24000, in recommended both the 22050, and format, only MP3 supported that the of of ticularly details samplerates and For bitrates all stereo. supports encoder MP3 The 5) (format MP3 Considerations Encoder-Specific 10.7.8 PRELIMINARYSCI_WRAMADDR. parametric_x.i.encoding.serialNumber S03 Datasheet VS1063a n e i 1o register of 11 bit set and 10.11) (Chapter 0OPERATION 10 eso:04,21-12 62 one. simplified a 2011-11-24 is 0.42, Version: decoder mode codec the in used used parser WAV ones RIFF the the to Note: set WAV are RIFF rate the are and SCI_AICTRL3, samplerate channels of and of 10 number channels bit format, of set encoding. the number have in and format, you expected If The not SDI. is header. WAV header to RIFF sent a transferred is from is decoded determined be which to data, data The encoded the mode. encoding in normal generated the in automatically like SCI_HDAT0 is and SCI_HDAT1 header through available. WAV not are RIFF formats Vorbis A Ogg are and MP3 samplerates Also, possible Hz). XTALI/256, 8000 a or MHz, 12.288 be 12000 = XTALI should 24000, 48000, samplerate (with thus The XTALI/1536 mode. or codec XTALI/1024 can in XTALI/512, you restrictions and some separate are are there However, paths analog to digital time. same and the digital at to decode analog and the encode mode codec the In Mode Codec 10.8 bit. length” frame “limited Encoding the 10.7.1, set Chapter to See how seconds. on several details upto for be Registers, can Control delay encoder/decoder set, not is 1 also can encoders Other samplerates. kHz. MP3 48 standard upto for samplerates non-standard calculated encode been have Delays Note! - - used: are symbols following transmit- The the from times transfer data all unit. come receiving numbers the these to to between ting delays addition total In encoder/decoder ICs. estimated VS1063a minimum two absolute the presents Chapter This Delays Encoder/Decoder 10.7.9 f d f 11025 12000 16000 22050 24000 32000 44100 48000 ubr pl f“iie rm egh bt1 frgse C_RMDR sst ftebit the If set. is SCI_WRAMADDR) register of 10 (bit length” frame “limited if apply Numbers s s m 8000 Hz / samplerate = PRELIMINARY milliseconds in delay encoder/decoder minimum = C/.1/.2 ms / PCM/G.711/G.722 S03 Datasheet VS1063a 3 3 3 3 3 3 3 3 3 M ms / IMA 26 25 19 15 14 66 49 46 35 P ms / MP3 144 105 52 48 54 40 36 96 72 Ogg 1 ms / 140 125 185 135 124 200 270 250 190 0OPERATION 10 eso:04,21-12 63 PRELIMINARY 2011-11-24 0.42, Version: by used speed serial The boot. address. SPI 16-bit for or as 8-bit with EEPROM I2C is an VS1063a be to has memory The pull-up. external an have to has SCL and SDA Both not is pins: boot following low, the redefines is boot GPIO0 I2C high, When pulled EEPROM. is SPI entered. GPIO0 from is if found mode tried not decoding only normal is is and ident boot tried boot I2C EEPROM. required I2C the from but boot supports also VS1063 Boot I2C 10.10 Guide. Programmer’s VS1063a the in explained is bytes format three record first exact The The clock. 0x48. serial MHz 0x26, The 12.288 0x50, nominal addresses. be 24-bit the to or with have 16-bit kHz memory with 245 the EEPROM in is Serial VS1063a Bus by SPI used an speed be to has memory The pins: following SPI the external redefines from boot boot SPI to tries VS1063a time, boot at 1 to resistor pull-up a memory. with set is GPIO0 If Boot SPI 10.9 < 0 H ihtenmnl1.8 H lc.Tebo eodfra stesame the is format record boot The clock. MHz 12.288 nominal the with kHz 100 S03 Datasheet VS1063a GPIO6 GPIO4 GPIO0 Mode Normal GPIO2 DREQ GPIO1 GPIO0 Mode Normal SCL SDA boot SPI/I2C enable = high Mode Boot SPI MISO MOSI CLK xCS Mode Boot SPI 0OPERATION 10 eso:04,21-12 64 2011-11-24 0.42, Version: }; */ between cleared not are configs /* { parametric an struct 0x0004 when PARAMETRIC_VERSION Also, #define written, 0x1e3f. set is . . to 0xc0ff 0x1e00. to used are addresses 0xc0c0 be 0xc0ff structure from can to address parametric 0xc0c0 and addresses to 0x1e00 SCI_WRAMADDR address automatically information. at translated useful memory get X or in parameters is extra structure parametric following The Structure) (Parametric Parameters Extra 10.11 i; } */ reset! software at cleared resyncs*/ not WMA are ADIF, these m4a, -- automatic available for 22 0 /* > /*0x1e29 */ V4 V3*/ frame { */ known. of union words V4*/ if start 42 samples. V4*/ position latest /* stereo words. play /*0x1e25/1e26 in resync; in /*0x1e27-28 fill s_int16 free buffer FIFO positionMsec; */ Audio SDI u_int32 /*0x1e21..24 /*0x1e20 /*0x1e1f latestSOF; V4*/ u_int32 */ off. V4 reserved[4]; = 1.0x u_int16 filters.*/ 0 == recalculate audioFill; level, 0x4000 to u_int16 EarSpeaker speed non-zero sdiFree; /*0x1e1e shifter as u_int16 */ Speed write steps) earSpeakerLevel; /*0x1e1d /*0x1e1c (-0.5dB u_int16 */ 0..191 speedShifter; parameters volume */ u_int16 EQ mixer state eq5Updated; 5-channel PCM free enabled)*/ u_int16 /*0x1e12..0x1e1b /*0x1e11 FIFO when eq5Params[10]; mixer (read */ u_int16 -3..-31*/ PCM samplerate 7-6=mode steps pcmMixerVol; V4*/ /*0x1e10 mixer 5-4=rate, 3dB u_int16 result PCM bits in meter pcmMixerFree; /*0x1e0f config, attenuation VU u_int16 */ mixer mixer /*0x1e0c pcmMixerRate; V4 AD AD u_int16 enables /*0x1e0e V4*/ /*0x1e0d processing adMixerConfig; steps. and u_int16 +-1ppm play in adMixerGain; */ V4*/ /*0x1e09 tune u_int16 file counter. */ samplerate after vuMeter; sample etc. /*0x1e07..8 send u_int16 /*0x1e0a..b twice, to sampleCounter; = value s_int32 2 */ byte */ speed, playMode; RRRR which 100 normal u_int16 ppss /*0x1e06 by = ---C rateTune; */ divided 0,1 wamf s_int32 version bitrate /*0x1e04 /*0x1e03 structure endFillByte; convenience*/ average - u_int16 your /*0x1e05 /*0x1e02 for bitRatePer100; reset u_int16 at playSpeed; Initialized s_int16 /*0x1e00/01 config1; u_int16 version; u_int16 chipID; u_int32 vorbis; } { 3*/ struct /* aac; } { 4*/ struct /* wma; } { struct encoding; } { struct /*1e2a*/ generic[22]; u_int16 _n1 an *012 rpsdgi fst eal 1 */ -12 = default offset, gain proposed 0x1e2a /* gain; V4*/ s_int16 /*0x1e31 gotSBR/upsampling/gotPS/PSactive*/ sbrPsFlags; V3 u_int16 lfe /*0x1e30 */ or sbrAndPsStatus; init cpe u_int16 aac or at sce initialized */ first 8192=1.0, init = */ aac 0 /*1e2f init at aac initialized at any, playSelect: initialized first /* -8192=1.0, = dynBoost; /*1e2e 0 clr*/ s_int16 /*1e2d last dynCompress; since clr*/ s_int16 found last playSelect; low-frequency-el. since clr*/ u_int16 /*1e2c found last lfeFoundMask; channel-pair-el. since u_int16 /*1e2b found cpeFoundMask; single-channel-el. u_int16 /*1e2a sceFoundMask; u_int16 WRAMADDR(11)*/ packetSize; in u_int32 enabled curPacketSize; if u_int32 tx*/ Vorbis pauses Ogg level for monitoring*/ high /*1e3e,1e3f level divider*/ a record UART mask: serialNumber; for of /*1e2c u_int32 /*1e3c,1e3d set */ (txUartDiv=0)*/ channelMax[2]; direct default speed u_int16 /*1e2a for byte reserved[14]; 2 UART s_int16 /* set aecAdaptMultiplier; /*1e2b s_int16 txPauseGpio; u_int16 txUartByteSpeed; s_int16 txUartDiv; s_int16

PRELIMINARY */ eeee lfe eeee0111 eeee sce eeee0101 cpe first xxxx0010 eeee cpe eeee0110 lfe first xxxx0011 sce first xxxx0001 S03 Datasheet VS1063a sdiFree and audioFill r updated. are 0OPERATION 10 eso:04,21-12 65 2011-11-24 0.42, Version: the increase to applications standalone in application. useful the be for available may memory FLAC data Disabling decoders. certain 4. is version structure the config1 VS1063a For changed. is structure the when changed is number The the into copied zeros. and all be startup will at value read the is ID fuse-programmed The config1 version, chipID, 10.11.1 3:0 5:4 7:6 8 11:9 12 13 14 15 bits config1 version chipID Parameter version

PRELIMINARY VS1063a in used not configuration SBR AAC configuration MP3 PS for AAC checking CRC Disable = 1 0 to set Reserved, decoding FLAC Disable = 1 decoding MP3 Disable = 1 decoding AAC Disable = 1 decoding WMA Disable = 1 Usage esmselnu etns is1 o1 a eue yteue oesl disable easily to user the by used be can 15 to 12 Bits settings. miscellanous sets edcnb sdt eemn h aoto h eto h tutr.Teversion The structure. the of rest the of layout the determine to used be can field Address 0x1e03 0x1e02 0x1e00-01 config1 S03 Datasheet VS1063a Usage iclaeu configuration Miscellaneous 0x0004 fuses) – the version of Structure copy (cosmetic ID unique Fuse-programmed chipID ed fntavailable, not If field. 0OPERATION 10 eso:04,21-12 66 2011-11-24 0.42, Version: bits Other same. the be mono will The outputs cleared. RIGHT is and bit LEFT separately. in pause explained so until already channel are read Samples not right is and output. buffer left sample stream averages but audio select played, stop be immediately will buffer will audio bit the pause the Setting enables. playMode normal calculate To is Zero down. accurately. slow use values very negative samplerate up, the speed adjust values positive to speed, used is fullness buffer long-term where rateTune is value This playtime. remaining endFillByte MP1. the and of MP2, estimate MP3, except an codecs calculate all to for SCI_HDAT0 used in available be also can it and second 0 codecs Write current bitRatePer100 speed. All that faster. with count data also the will feed SCI_DECODE_TIME to able speed. are the normal you to support if return normal, to as 1 fast or as times four song the each only but playSpeed Configurations Player 10.11.2 0 1 2 3 4 5 6 bits resync positionMsec latestSOF audioFill sdiFree sampleCounter playMode rateTune endFillByte bitRatePer100 playSpeed Parameter ( x − PLAYMODE_PCMMIXER_ON PLAYMODE_EQ5_ON PLAYMODE_SPEEDSHIFTER_ON Name PLAYMODE_MONO_OUTPUT PLAYMODE_PAUSE_ON PLAYMODE_VUMETER_ON PLAYMODE_ADMIXER_ON

PRELIMINARY1 rvdsmn n as eetbt.I locnan oeetapoesn block processing extra some contains also It bits. select pause and mono provides . ntnstesmlrt n1pmses hsi sfli temn applications streaming in useful is This steps. ppm 1 in samplerate the finetunes 0) ae tpsil ofs owr og.Dcdn ftebttemi performed, is bitstream the of Decoding songs. forward fast to possible it makes playSpeed ∗ niae htbt au osn fe l ssn eoeSM_CANCEL. before sent is file after send to value byte what indicates playSpeed 1000000 otisteaeaebtaedvddb 0.Tevlei pae neper once updated is value The 100. by divided bitrate average the contains 0x1e29 0x1e27:1e28 0x1e25:1e26 0x1e20 0x1e1f 0x1e0a:1e0b 0x1e09 0x1e07:1e08 0x1e06 0x1e05 0x1e04 Address S03 Datasheet VS1063a o xml 5.95 example For . configuration. rmsaepae.Freapeb rtn to 4 writing by example For played. are frames config1 uoai eycselector resync available Automatic if milliseconds, in position File frame of start samples latest stereo in fill buffer words Audio in space free FIFO SDI selects counter processing sample audio extra and pause, mono, steps +-1ppm in finetune samplerate file after send etc. to times byte three 100 = by 3 divided double, bitrate = average 2 speed, normal = 0,1 Usage % speedup oootu select output Mono enable Pause enable Meter VU enable Mixer AD enable Mixer PCM enable EQ5 enable Speedshifter Usage (1 . 0595 − 1 . 0) ∗ 000 59500 = 1000000 rateTune playSpeed 0OPERATION 10 o speed, a for ilplay will . eso:04,21-12 67 2011-11-24 0.42, Version: sdiFree sampleCounter dfn F1RVR 1<)/ o II(/ S03 */ VS1063) 8 (n/a MIDI AAC_PS_ACTIVE for */ #define /* 4 PS (1<<0) AAC_PS_PRESENT checking*/ 2 or #define CRC SBR off AAC_UPSAMPLE_ACTIVE no turn #define /* 1 /* (3<<4) AAC_SBR_PRESENT (1<<8) #define */ CFG1_REVERB PS #define no */ CFG1_MP3_NOCRC /* upsample */ #define (3<<6) never */ user CFG1_SBROFF /* default! the (0<<4) #define (2<<4) /* for CFG1_SBRDOWNSAMPLED (1<<4) memory */ #define more mode CFG1_SBRNOIMPLICIT allow downsampled #define To in (0<<6) /* CFG1_SBRNORMAL PS (1<<12) #define /* (1<<13) CFG1_PSOFF (1<<6) #define (1<<14) CFG1_PSDOWNSAMPLED #define (1<<15) CFG1_PSNORMAL #define CFG1_NOFLAC #define CFG1_NOMP3 are #define jumps CFG1_NOAAC and #define processed SS_DO_NOT_JUMP CFG1_NOWMA been #define has operation. information rewind header or the which forward section, when fast allowed. header clear or any metadata is before SCI_STATUS) a processed with (in begin fully files .m4a be / must .mp4 and ADIF, WMA, WAV, Note: ignored are files WAV of information size file data where and mode size broadcast/stream file enter the when Also, now codecs ignored. AAC is information and size WMA required, is resync When When action. 10.5.1. old Chapter the in restore described to as end reset always after should cleared be can tries. it infinite gives field 32767 The value The boundaries. The block up. data giving or before packet allowed almost this in are set implement tries not should to many are user used how they The tells be if .m4a). value can seeks / field .mp4 data (ADIF, This performing AAC and before error. WMA field first for rewind at and decode forward the fast perfect ending of instead .m4a) / resync -1. information. contains this field provide determine this Vorbis can unknown, Ogg that and is WMA codecs position Currently in the available itself. If stream only the is from value position The play operations. the forward fast and rewind of positionMsec rewind. or loop A-B glitch-free implement to information this use can both latestSOF get to twice WRAM read then automat- and 0x1e3f WRAMADDR, . . to audioFill 0x1e00. 0xc0df addresses stucture write parametric So, to ically. translate These 0xc0ff. to 0xc0c0 plications. resync resync edi sdt oc eycrnzto otesra o M n A AI,.mp4 (ADIF, AAC and WMA for stream the to resynchronization a force to used is field

PRELIMINARYand . sdiFree eun h oiino h urn AC rnx WA einn fafae You frame. a of beginning (WMA) next or (AAC) current the of position the returns edi e o377atrarstt aersnhoiaintedfutato,but action, default the resynchronization make to reset a after 32767 to set is field audioFill snnzr.Teue utueS_ACLo otaerstt n decoding. end to reset software or SM_CANCEL use must user The non-zero. is safil htgvstecretpa oiini l nmlieod,regardless milliseconds, in file a in position play current the gives that field a is dacsfrec lydsml n siiilzdb g obsdecoding. Vorbis Ogg by initialized is and sample played each for advances and S03 Datasheet VS1063a audioFill a eue omntradcnrltepabc ea nseilap- special in delay playback the control and monitor to used be can r pae hnWAAD switnwt ausfrom values with written is WRAMADDR when updated are resync sst vr l decode file every set, is sdiFree 0OPERATION 10 and eso:04,21-12 68 2011-11-24 0.42, Version: samplerate. kHz 48 at power processing of 0.2MHz about uses Meter result. VU channel right from the of steps 8 contain . 3dB 0 . . in 15. . Bits 7. it bits channel. reports result, right and channel and samples left left output for the separately of 32, to maximum 0 absolute the takes Meter VU Meter VU 10.11.3 and twice it read correct, is value the certain make to want results. you the If compare though. improbable quite is It variable. between the occur the of may as parts interrupt But high SCI together. and the sampled low interrupts, are the from variable protected of that long be update words a not the two may of ahead variable halfs reads the two SCI_WRAMADDR to the to write so write inter- SCI_WRAM, a to SCI_WRAM VS1063 provides In and it atomic. SCI_WRAMADDR partly the only through is variables face two-word reading that Notice PRELIMINARYvuMeter playMode Parameter 0x1e0c 0x1e09 Address S03 Datasheet VS1063a Umtrrsl i Umtrenabled) meter VU (if result meter VU enable meter VU 2: bit Usage parametric_x.vuMeter 0OPERATION 10 oti the contain eso:04,21-12 69 2011-11-24 0.42, Version: kHz configuration 96 Mixer using rates. AD MHz), those 1.25 The with (takes I2S applications use you all if for the recommended quality only also enough are but kHz good quality, 192 is and the kHz better 48 the practise rate, In the higher The using required. kHz. steps 192 is dB power or 3 processing kHz, more in 96 set kHz, 48 be are kHz, modes 24 can Four gain channel. mix format. right audio The channel, decoded left channels, any right with and inputs left LINE of down-mix or mono MIC stereo, mix provided: to allows Mixer AD (3<<2) (2<<2) ADMIXER_MODERIGHT (1<<2) #define ADMIXER_MODELEFT */ #define 0.6MHz ADMIXER_MODEMONO /* (0<<2) (3<<2) #define (3<<0) 1.25MHz*/ ADMIXER_MODESTEREO /* */ #define (2<<0) 2.5MHz */ ADMIXER_MODEMASK /* #define (1<<0) ADMIXER_RATE24 5MHz #define /* (0<<0) ADMIXER_RATE48 #define ADMIXER_RATE96 (3<<0) #define ADMIXER_RATE192 #define ADMIXER_RATEMASK #define Mixer AD 10.11.4 DMxradPMMxrcnntb nsmlaeul.A ie vrie C Mixer. PCM overrides Mixer AD simultaneously. on be not can Mixer PCM and Mixer AD playMode PRELIMINARYadMixerConfig adMixerGain playMode Parameter h ancnrlcnb dutda n time. any at adjusted be can control gain The . 0x1e0e 0x1e0d 0x1e09 Address S03 Datasheet VS1063a adMixerConfig Usage Dmxratnaini d tp 3 -31 . config . -3. mixer steps AD 3dB in attenuation mixer AD enable Mixer AD 3: bit utb e eoeA ie nbebti e in set is bit enable Mixer AD before set be must adMixerGain h iigsmlrt a be can samplerate mixing The . 0OPERATION 10 DMxradPMMxrcnntb nsmlaeul.A ie vrie C Mixer. PCM overrides Mixer AD simultaneously. on be not can Mixer PCM and Mixer AD samples 128 least full). not at (1/4 are are FIFO there samples when PCM resumed when the is in timeout processing The 0.125-second SCI_AICTRL0. a to = after written kHz disabled being 16 automatically 4.0MHz, be will = Processing kHz 8 6.5MHz. e.g. = samplerate, kHz 32 the 4.9MHz, = on kHz depends 24 6.8MHz, needed power processing The have scaling, adjusts safe and Mixer SCI_VOL absolutely PCM have both To the in attenuations, values. more enough these or large least (0x0c0c) set at 6dB have not to have overflow, and you automatically SCI_VOL modulator registers If of sigma-delta the sum (12). prevent the 6dB to and least (0x0404), Note: at 2dB ations least steps. at 0.5dB be in should volume SCI_VOL PCM control 182 write to multiple SCI that Note pcmMixerVol words). overhead. many minimal this with words upto multiple send and write can register, to (you SCI_AICTRL0 used FIFO be to PCM can written the be in is to space is data play PCM Hz The 44100 and Hz 22050 Hz, 11025 use example can (for You exact exact. not are are Hz they 48000 0 but Hz, 32000 well, Hz, as 24000 rates Hz, other 16000 Hz, 12000 Hz, the 8000 plerates from enabled is Mixer eso:04,21-12 70 2011-11-24 0.42, Version: from configured is audio samplerate quality. any PCM audio good PCM The during keep the back to interpolation, Hz played any 22000 have least be not at stream does to path upsampled PCM automatically side linear is audio audio SDM 16-bit the mono Because a playback. format allows Mixer PCM The Mixer PCM 10.11.5 . pcmMixerVol pcmMixerFree pcmMixerRate playMode Parameter 23% } { 32) >= (availSpace if Mp3ReadReg(SCI-WRAM); = availSpace 0x1e10); Mp3WriteReg(SCI_WRAMADDR, availSpace; s_int16 samples[32]; s_int16 o fast). too PRELIMINARY 32); samples, Mp3WriteRegMultiple(SCI_AICTRL0, 32); ReadSamples(samples, otosvlm neednl ftenra lyakvlm.Vle rm0 from Values volume. playback normal the of independently volume controls Address 0x1e11 0x1e10 0x1e0f 0x1e09 S03 Datasheet VS1063a playMode Usage C ie oue0 9 -. Bsteps) dB (-0.5 191 . . 0. volume mixer PCM state free FIFO mixer PCM samplerate mixer PCM enable Mixer PCM 4: bit aibe ihtenmnl1.8 H lc h sam- the clock MHz 12.288 nominal the With variable. pcmMixerRate pcmMixerVol n tms ewitnbfr PCM before written be must it and , . pcmMixerFree pcmMixerVol el o much how tells 0OPERATION 10 attenu- eso:04,21-12 71 2011-11-24 0.42, Version: lot. a treble and bass emphasizes 6 8000, 2, 3000, -3, 300, 6, 70, 12, 0, e.g. Vector so Example: eq5Freq1, than higher be allowed. must eq5Freq2 not is e.g. 50 80, ascending: combination strictly be must values Freq treble and Bass follows: as are time. eq5Params same the at active be not EQ5. can override control controls Bass/Treble and to value EQ5 non-zero Currently a writing by use into taken of be 5 to forced bit be can from settings enabled new active, is from EQ5 parameters the its before takes equalizer 5-band The Equalizer 5-band EQ5 10.11.6 PRELIMINARYeq5Level5 eq5Freq4 eq5Level4 eq5Freq3 eq5Level3 eq5Freq2 eq5Level2 eq5Freq1 eq5Level1 eq5Dummy Parameter eq5Update eq5Params playMode Parameter 0x1e1c 0x1e12/1b 0x1e09 Address 0x1e1b 0x1e1a 0x1e19 0x1e18 0x1e17 0x1e16 0x1e15 0x1e14 0x1e13 0x1e12 Address S03 Datasheet VS1063a 2000 1000 Low niao htstig aebe changed been have settings that Indicator pairs Frequency/gain enable EQ5 5: bit Usage -32 -32 -32 -32 -32 50 20 0 15000 15000 1000 High 150 32 32 32 32 32 0 playMode asMdBs uofi Hz in cutoff Bass/Mid-Bass dB in level Bass used Not Usage rbelvli dB in level Treble Hz in cutoff Mid-High/Treble dB in level Mid-High Hz in cutoff Mid/Mid-High dB in level Mid Hz in cutoff Mid-Bass/Mid dB in level Mid-Bass eq5Params ftestig r hne hl Q is EQ5 while changed are settings the If . ra,wihnest ewritten be to needs which array, 0OPERATION 10 eq5Update . pe hfe n aSekrcnntb sda h aetm.Sedsitroverrides shifter Speed time. same the at used be not can EarSpeaker EarSpeaker. and shifter Speed samplerate. kHz 48 at MIPS 11 approximately takes EarSpeaker itedfeettp faosia iuto,siigdfeetproa rfrne n ye of types and preferences personal different suiting situation, acoustical recording. of type different little EarSpeaker overrides shifter 10.11.8 Speed time. same the at used be not can EarSpeaker EarSpeaker. and shifter Speed is also semitones by compensate two and example speed to For the shifter adjust tempo, samplerate. changing the without pitch adjusting change to want you If (26869). 1.64x speed maximum and (11141) 0.68x eso:04,21-12 72 2011-11-24 0.42, Version: using adjusted be can processing EarSpeaker pitch. playback the changing without changed is be to tempo tempo playback playback The the allows shifter Speed Shifter Speed 10.11.7 earSpeakerLevel Parameter speedShifter playMode Parameter • • • • 50000 orefrhraa than away further source 38000 12000 preprocessing. binaural 0 PRELIMINARY contains played be to audio the if or loudspeakers through listening when option Best : 2 − 2 utdfrodo dy eodns ri h ui ob lydi artificial. is played be to audio the if or recordings, ’dry’ or old for Suited : utdfrlseigt omlmsclsoe ihhapoe,mvssound moves headphones, with scores musical normal to listening subtle. very for headphones, Suited with scores musical : normal to listening for Suited : / 12 ∗ 0x1e1d 0x1e09 Address 68 14596 = 16384 0x1e1e Address S03 Datasheet VS1063a speedShifter 16384 Usage pe hfe pe,040 1.0x = 0x4000 speed, shifter Speed enable SpeedShifter 6: bit minimal aSekrlvl off = 0 level, EarSpeaker Usage n set and ..134i h omlsed h iiu pe is speed minimum The speed. normal the is 16384 i.e. , . rateTune earSpeakerLevel to (2 2 / 12 2 − − 2 1) / 12 ∗ 000 122462 = 1000000 ifrn eessmlt a simulate levels Different . 0 = . 8909 osttespeed the set so , 0OPERATION 10 . eso:04,21-12 73 2011-11-24 0.42, Version: present to dynCompress used be elements. can available values the The only cleared. with been menu last selection have element variables an the since stream AAC an sceFoundMask performed, been has selection element. element automatic selected frequency When low L. first number the select LFE in - element select 0x03 appears channel (CPE), single that element first element select pair first - channel (LFE), 0x01 the first select are: causes values - which Other 0x02 starts, (SCE), decoding. for decoding selected AAC be time to each stream 0 to set is playSelect AAC with configured is can clock file allowed a maximum The that detects clock. register. it current SCI_CLOCKF the when the with automatically correctly clock decoded internal be the not increase also can decoder WMA in available is from offset size start packet header ASF The WMA Parameters Other 10.11.9 rsn nsm A tem.Teeaeas ntaie hnACdcdn starts. decoding sbrAndPsStatus AAC when initialized also are These streams. AAC some in present sbrAndPsFlags sbrAndPsStatus dynBoost dynCompress playSelect lfeFoundMask cpeFoundMask sceFoundMask config1 Parameter packetSize curPacketSize Parameter

PRELIMINARYS ∗ 6+5 + 16 eemnswiheeett eoei temhsmlil lmns h value The elements. multiple has stream a if decode to element which determines and , cpeFoundMask latestSOF niae pcrlbn elcto SR n aaercsee P)status. (PS) stereo parametric and (SBR) replication band spectral indicates 0x1e2c/2d 0x1e2a/2b Address dynBoost eetSEnme S, number SCE select - 0x1e31 0x1e30 0x1e2f 0x1e2e 0x1e2d 0x1e2c 0x1e2b 0x1e2a 0x1e03(7:4) Address S03 Datasheet VS1063a o a as h akthaesadsi akt nAFfiles. ASF in packets skip and headers packet the parse can you hnetebhvo ftednmcrnecnrl(R)ta is that (DRC) control range dynamic the of behavior the change and , h aktsz nAFheader ASF in size processed packet being The packet the of size The Usage B n Smode PS and SBR flags available PS and SBR 8192=1.0 DRC, for coefficient Boost -8192=1.0 DRC, for coefficient selection element Play found elements frequency Low found elements pair Channel found elements channel Single select PS and SBR Usage lfeFoundMask P packetSize ∗ 6+6 + 16 niaewiheeet aebe on in found been have elements which indicate eetCEnme P, number CPE select - ihti nomto n packet a and information this With . playSelect L 0OPERATION 10 eet the reflects ∗ 6+7 + 16 - eso:04,21-12 74 2011-11-24 0.42, Version: features Dropped disabled. fully (reduced is change. mode replication song downsampled band each into spectral mono). at turned the restored becomes is resort are playback replication last (the band compo- the spectral dropped PS As can the is and bandwidth). file enough, processing SBR the not with stereo until is file one parametric that by AAC If the one an First dropped decode automatically played. to are slow be features too decoding is advanced clock the allowed nents, highest the even If with configured can is file clock a allowed that maximum The detects clock. it register. current when SCI_CLOCKF the the automatically with clock correctly internal decoded the be not increase also can decoder AAC the as format same the in mode (PS) sbrAndPsFlags AAC your if useful are bits configuration These mode. PS. PS and/or SBR select cover 6 not and does 7 license bits and mode in SBR 4 to 7 Bits ’11’ ’10’ ’01’ ’00’ config1(7:6) ’11’ ’10’ ’01’ ’00’ config1(5:4) 3 2 1 0 Bit

PRELIMINARY active PS present PS active upsampling present SBR Usage config1 niae h urn pcrlbn elcto SR n aaercstereo parametric and (SBR) replication band spectral current the indicates ial Sprocessing PS disable mode downsampled in but available, reserved is it available if is PS it process if PS process mode, normal Usage PS) disables (also SBR disable (default) upsample encountered never is SBR if upsampling enable upsample automatically not do upsample mode, normal Usage S03 Datasheet VS1063a a eue ocnrlteSRadP eoig is5ad4select 4 and 5 Bits decoding. PS and SBR the control to used be can config1 < 4kzACfiles AAC kHz 24 B n Sbits. PS and SBR < 4kzACfie,but files, AAC kHz 24 0OPERATION 10 ouestigcnntg bv 0d,tevlesol esaturated. be should value the dB, +0 above go not can setting volume eso:04,21-12 75 2011-11-24 0.42, Version: When 11. by increased be ( should dB 1 attenuation by increased right in- and left be and should volume example the For that mean mean values values Negative positive level. decreased, volume the be adjust should creased. to value volume gain the the that use can software ( player dB the The -6 from of found default be see a Gain, can tag, Replay setting Gain the about Replay in gain details adjust http://www.replaygain.org/ tag any decoded more to Gain without For the Replay need song and a not used. a finds parsed does For decoder user is Vorbis the Ogg tag parameter. that the the If so header, volume used songs. song is matching between technology a setting Gain volume songs Replay the all The give technology. automatically Gain Replay to supports decoding Vorbis Ogg Vorbis Ogg PRELIMINARY dB) (+1.0 +2 dB) (+1.0 +2 dB) (+1.0 +2 dB) (-5.5 -11 dB) (-5.5 -11 Gain gain Parameter gain Address 0x1e2a -. dB) (-2.0 4 dB) (-0.5 1 dB) (+0.0 0 dB) (-1.5 3 dB) (+0.0 0 Volume 2 1 en htvlm hudb erae y55d ( dB 5.5 by decreased be should volume that means -11 = / 1 = 2 S03 Datasheet VS1063a . rfre elygi offset replay-gain Preferred Usage . 0 ,adlf n ih teuto hudb erae y2 Because 2. by decreased be should attenuation right and left and ), x22(10dB) (-1.0 0x0202 dB) (+0.0 0x0000 dB) (+0.0 0x0000 dB) (-7.0 0x0e0e dB) (-5.5 0x0b0b (Volume-Gain) SCI_VOL http://en.wikipedia.org/wiki/Replay_Gain gain ouesol be should volume 2 = gain − 11 au 1)is -12) value 0OPERATION 10 / = 2 − gain 5 and . 5 ), eitrnme ots.Tecneto h ie eitri edadcpe oSIHA0 If SCI_HDAT0. SCI_HDAT1. if to to Example: copied copied is and result read 0xEE the is HDAT0, register is 0x70 given tested 0x53 the be of to sequence content register 8-byte The the the test. to with number initialized register is test Sci Test SCI 10.12.3 meant is test This 0. 0 0 0 0x54 0x6E only. 0xED testing 0x50 production sequence 8-byte chip the for with activated is test Pin Test Pin 10.12.2 channels test to possible is it so control, volume digital the through go separately. 0. signals 0 test 0 Sine 0 0x74 Note: 0x69 0x78 0x45 sequence the send test, sine the exit To frequency eso:04,21-12 76 2011-11-24 0.42, Version: Breaking 0b01111110. is which 126, value with nents, activated is test from Sine calculated Example: be now can output be to sine the of frequency The 0x6E 0xEF 0x53 use. sequence to 8-byte test the sine with initialized is test Sine Test Sine 10.12.1 command special below. 4-byte a described sending are a by sequences then started The and is set, zeros. test is 4 Each SM_TESTS by bus. reset, followed SDI hardware sequence, the is to VS1063a sent way: is similar command a test in started are SCI tests tests, All memory perform to tests. user wave the sine allow different several which and VS1063a, tests, in bus modes test several are There Tests SDI 10.12 S F Name F s s

PRELIMINARYIdx Idx F n 22050 = 0 = s0 otnso C eitr0(C_OE scpe oSCI_HDAT0. to copied is (SCI_MODE) 0 register SCI of contents 0, is Bits 4:0 7:5 n b 1 3 = 011 sdfie sfollows: as defined is n Hz S03 Datasheet VS1063a bits iesi speed skip Sine index Samplerate Description × n thus and 128 30 ≈ 5168 F s Hz 22050 = . Hz F s 2 1 0 3 . Idx S 0 = 20 Hz 32000 Hz 48000 Hz 44100 25 Hz 22050 b 11 30 = 11110 F s n ,where 0, 0 0 0 n F ,where 0, 0 0 0 = F n hstefia sine final the thus and , s F 6 5 4 7 Idx s × 128 S 12 Hz 11025 Hz 16000 Hz 24000 20 Hz 12000 n . n oiscompo- its to F 0OPERATION 10 ensthe defines s n sthe is eso:04,21-12 77 PRELIMINARY 2011-11-24 0.42, Version: and mode, output differential SCI_BASS, also effect. thus an path, have audio settings normal EarSpeaker the use tests these Both SCI_AIADDR. to 0x4022 writing by started be can test sweep Sine generated frequencies the resulting for The ratio zero. equation. S/N samplerate be DAC best should the the SCI_AICTRLn from For the calculated 0x8000U. of LSb’s is three SCI_AICTRLn sine, for value maximum The by: samplerate DAC and frequency desired the from calculated be can SCI_AICTRLn Write test. test. the the during start or to registers, before SCI_AIADDR These set to respectively. be 0x4020 channel, (SCI_AUDATA) can right samplerate and and and left (SCI_VOL), SCI_AICTRL0 for volume SCI. frequencies from sine controlled and the started set be SCI_AICTRL1 can test sine frequency-accurate more A Tests Sweep and Sine New 10.12.5 memories. RAM the of contents current the overwrite tests Memory register SCI the from read be can After 0. result follows: 0 The as 0 interpreted 0 cycles. are 0x54 bits clock 0x6D ’one’ 0xEA 1100000 and 0x4D SCI_HDAT0, for sequence wait 8-byte the sequence, with this initialized is mode test Memory Test Memory 10.12.4 S03 Datasheet VS1063a 0 1 2 3 4 5 6 7 8 9 14:10 15 Bit(s) F SCI sin _ = ITRLn AICT SCI 0x83ff 0x0001 0x0002 0x0004 0x0008 0x0010 0x0020 0x0040 0x0080 0x0100 0x0200 0x8000 Mask F s n C_ITL C_ITL sn h following the using SCI_AICTRL1 / SCI_AICTRL0 and _ ITRLn AICT odXRM2 ROM X Good 1 ROM X Good ROM Y Good 2 ROM I Good 1 ROM I Good RAM X Good RAM Y Good RAM I Good RAM MAC Good succeeded test Mux Unused finished Test Meaning l ok All = F sin × × F 65536 s / 65536 /F s 0OPERATION 10 F sin a be can eso:04,21-12 78 2011-11-24 0.42, Version: changes: major or new Completely VS1053b. the to upgrade firmware pin-compatible a is VS1063a 2011-04-13 VS1063a, and VS1053b Between Changes Firmware 11.1 VS1063a to done changes important most and lastest the describes chapter This Changes Version VS1063a 11 • • • • • • • • • • • • • • • • • • • • • • A,WA P n LCdcdn a eidvdal ialduigbt nparamet- in bits using disabled individually be can decoding ric_x.config1. FLAC and MP3 WMA, AAC, shifter. Speed Added mixer. PCM Added mixer. AD Added meter. VU Added channels. 2 upto decoding (parametric_x.playMode) FLAC player for Added mode pause files. and WAV mode valid mono them make Added to fields change. size volume data and and samplerate The size Sample-exact RIFF modes. the codec) fix (and to encoding WAV needs in user automatically generated formats. is floating-point header RIFF-WAV and 32-bit and applications. 24-bit standalone supports for decoding ROM WAV data in font fixed-width possible. and states Proportional fill buffer audio and stream of WRAM. Reading through atomically (almost) u_int32’s structure. reading parametric_x Support to mapped is 0xc0ff . formats. . 0xc0c0. audio WRAMADDR user decoding and detecting for hooks in Added decoding of start parametric_x.rateTune. in noiseless finetuning allows Samplerate which file. reservoir, mp3 bit disabled. an in be of can middle data checking the valid CRC the CRC. of contain track that Keeps files III layer for added checking CRC PRELIMINARY accuracy full now is MP3 decoding. accurate and 2.5 robust least more at Use new, compliant. III: and II decoders. Layers (MP1) I layer MPEG and MIDI Removed mode. codec Added Vorbis, Ogg MP3, Added S03 Datasheet VS1063a µ lw -a n .2 encoding. G.722 and A-law -law, × lc odcd l P irtsadsamplerates. and bitrates MP3 all decode to clock 1V16AVRINCHANGES VERSION VS1063A 11 eso:04,21-12 79 2011-11-24 0.42, Version: fixes: bug and changes Minor • • • • • • • • • • • • • • • • • • xr aaee yeaerpae ihbtaee10 h e edwrsconsistently works field new codecs. The all bitRatePer100. with with replaced byteRate parameter Extra (SCI_STATUS(1)) mode work. ADC now MHz block. 3 (SCI_STATUS(0)) SBR and select frames. first voltage transition the reference in 1.65V at overwritten available was not atom. information is mdat PNS header the PS fix: of AAC if beginning even the correctly start now to works need fix: not AAC does block audio first fix: MP4 non-zero. be must channels. sflength right fix: and WMA left old of mono-downmix restores gives control. failes, 4 finer gives adcMode but New and startup) parametric_x in at now is high control is EarSpeaker inputs. need ADC (GPIO0 you for tried if run always active is filter remain boot Subsonic will If I2S so tried, reset. value. not soft GPIO_DDR is a boot use SPI if to GPIO_DDR clear not Does counter. second 32-bit uses rate. calculation modes. the Bitrate encoding/codec override in to updated user now the is allowing volume changes, Output it when only rate sets Vorbis Ogg PRELIMINARY SBR/PS with when power only save im- upsample to allows otherwise i.e. This upsample, also detected. non-implicit is was is mode and decoding AAC mode, Default upsample non-implicit in works proved. begin- drop and end feature the spanning AAC was file Vorbis buffer. Ogg stream in of ’OggS’ ning first the when problem buffer). a Fixed stream (clears mp3 for also. also reset SM_CANCEL software Handles in cleared DO_NOT_JUMP and off switched IROM4 S03 Datasheet VS1063a < 4H lsta onthv SBR. have not do that files 24kHz 1V16AVRINCHANGES VERSION VS1063A 11 eso .1 2011-04-15 0.21, Version 2011-05-05 0.30, Version 2011-09-02 0.40, Version 2011-09-29 0.41, Version eso:04,21-12 80 2011-11-24 0.42, Version: 2011-11-24 0.42, Version document. this to changes important most the describes chapter This Changes Version Document Latest 12 • • • • • • • • • • • • • • io u n yocorrections. typo and bug Minor Guide. Hardware VS1063a with synced corrections, Typo corrections. Mode. minor Codec Other, 10.8, Chapter Considerations. to Rate samplerates Sample example Encoding, Added Audio under 10.7.6 Chapter new Added Delays. Encoder/Decoder 10.7.9, Chapter 2. Added Chapter in updated text license MP3 fixed. values default SCI_STATUS Digital 4.5 , Chapter in IOVDD from Characteristics. referenced are high-level XTALO and XTALI xRESET, SCI. Through Data Encoded Reading 10.7.3, Chapter to information order byte Added Headers. File 10.7.4, Chapter Considera- Corrected Encoder-Specific 10.7.8, and MP3. / Procedure, tions Encoding 10.7.2, Reset, Software New icamr oifr htti oueti nyvldwe the when valid only is document this that inform to Disclaimer, 1, latest Chapter to text Added PRELIMINARY enhancements reflect latest to the 60), by (page caused Considerations Samplerate 10.7.6, Chapter Updated S03 Patches VS1063a S03 Patches VS1063a S03 Datasheet VS1063a S03 ace v1.2 Patches VS1063a 10.3, Reset, Hardware , 10.2 Chapters in mentioned is package akg a enlae n activated. and loaded been has package package. 2LTS OUETVRINCHANGES VERSION DOCUMENT LATEST 12 eso:04,21-12 81 2011-11-24 0.42, Version: 2011-01-17 0.10, Version 2011-04-14 0.20, Version • • • PRELIMINARY pages. web VLSI’s on released pages two First 2011. May in published Guide. Programmer’s be VS1063a will and guides Guide Hardware These VS1063a into split datasheet of datasheet. Parts complete the of release public First S03 Datasheet VS1063a 2LTS OUETVRINCHANGES VERSION DOCUMENT LATEST 12 eso:04,21-12 82 PRELIMINARY 2011-11-24 0.42, Version: S03 Datasheet VS1063a 3CnatInformation Contact 13 hn:+358-3-3140-8200 Phone: a:+358-3-3140-8288 Fax: R:http://www.vlsi.fi/ URL: nrneG n floor 2nd G, Entrance mi:sales@vlsi.fi Email: I370Tampere FI-33720 LISlto Oy Solution VLSI emakt 8 Hermiankatu FINLAND 3CNATINFORMATION CONTACT 13