Data Sheet

PRELIMINARY
VS1063a Datasheet
10 OPERATION
Example of Encoding initialization including loading VS1063a Patches:
The previous code sets 48 kHz stereo MP3 recording with manual gain control set at 1×
(= 0 dB).
Example of initialization without loading VS1063a Patches:
The previous code sets 16 kHz mono IMA ADPCM recording from the left channel using the
microphone amplifier, with automatic gain control and maximum amplification of 4× (= +12 dB).
10.7.3 Reading Encoded Data Through SCI
After encoding mode has been activated, registers SCI_HDAT0 and SCI_HDAT1 have new
functions.
The encoding data buffer is 3712 16-bit words. The fill status of the buffer can be read from
SCI_HDAT1. If SCI_HDAT1 is greater than 0, you can read that many 16-bit words from
SCI_HDAT0. If the data is not read fast enough, the buffer overflows and returns to empty
state.
The encoded data is read from SCI_HDAT0 and written into file as follows. The high 8 bits
of SCI_HDAT0 should be written as the first byte to a file, then the low 8 bits. Note that this
is contrary to the default operation of some 16-bit microcontrollers, and you may have to take
extra care to do this right.
Version: 0.42, 2011-11-24 58