Data Sheet
PRELIMINARY
VS1063a Datasheet
10 OPERATION
SCI_WRAMADDR sets the quality / bit rate selection for Ogg Vorbis and MP3 encoding. For
WAV formats this setting is not used. Use value 0xe080 for constant bitrate of 128 kbps. Note
that WRAMADDR is read at encoder startup, so modifying it later does not change the settings.
Bits Description
15:14 Bitrate mode, 0 = Quality Mode, 1 = VBR, 2 = ABR, 3 = CBR
13:12 Bitrate multiplier, 0 = 10, 1 = 100, 2 = 1000, 3 = 10000
11 Encoder-specific, Ogg Vorbis: 1=use parametric_x.i.encoding.serialNumber
10 Encoder-specific, Ogg Vorbis: 1=limited frame length
mp3: 1 = do not use bit-reservoir
9 Used internally, set to 0.
8:0 Bitrate base 0 to 511 (or quality 0 to 9 if Quality Mode selected).
The and define a target bitrate value. For example 2 in
multiplier and 128 in base means 128 kbit/s. The selects how the and
fields are interpreted. In variable bitrate (VBR) mode the bitrate and
bitrate multiplier fields sets a very relaxed average bitrate. Currently the average bitrate mode
(ABR) equals VBR mode in both encoders. In Quality Mode is ignored
and the field value sets encoding quality from 0 to 9.
SCI_WRAMADDR bit 10 is encoder-specific. When set with the MP3 encoder, the bit reservoir
will not be used. When set with Ogg Vorbis encoder, the bit requests a smaller output delay.
SCI_WRAMADDR bit 11 is encoder-specific. When set with Ogg Vorbis encoder, the stream
serial number is fetched from .
SCI_AICTRL3 bits 0 to 2 select the ADC mode and implicitly the number of channels. 0 = joint
stereo (common AGC), 1 = dual channel (separate AGC), 2 = left channel, 3 = right channel,
4= mono downmix.
SCI_AICTRL3 bits 4 to 7 select the encoding format. 0 = IMA ADPCM, 1 = PCM , 2 = G.711
µ-law, 3 = G.711 A-law, 4 = G.722 ADPCM, 5 = Ogg Vorbis, 6 = MP3.
If SCI_AICTRL3 bit 15 is set at startup, codec mode is initialized. If MP3 and Ogg Vorbis formats
are specified, the configuration bit is ignored and codec mode is not available. In codec mode
the encoded data is provided through HDAT0 and HDAT1, and data to be decoded is expected
through the serial data interface (SDI).
If SCI_AICTRL3 bit 13 is set at encode/codec startup, UART transmission of data is initialized
with parameters taken from . If you want to use UART transmission, you must
first write the tx configuration values, then set the AICTRL3 UART TX enable bit, and only after
that start the encoding/codec mode using SCI_MODE register.
UART is configured from , that part of of the parametric structure is
no longer cleared at software reset.
txUartDiv = UART divider or 0 to use bytespeed
txUartByteSpeed = UART bytespeed
txPauseGpio = GPIO mask for transmit flow control
contains the maximum absolute value encountered in
the corresponding channel since the last clear of the variable. In mono modes only
is updated.
Version: 0.42, 2011-11-24 56