Data Sheet

PRELIMINARY
VS1063a Datasheet
9 FUNCTIONAL DESCRIPTION
9.8.5 SCI_DECODE_TIME (RW)
When decoding correct data, current decoded time is shown in this register in full seconds.
The user may change the value of this register. In that case the new value should be written
twice to make absolutely certain that the change is not overwritten by the firmware. A write to
SCI_DECODE_TIME also resets the calculation.
SCI_DECODE_TIME is reset at every hardware and software reset. It is no longer cleared
when decoding of a file ends to allow the decode time to proceed automatically with looped
files and with seamless playback of multiple files.
With fast playback (see the extra parameter) the decode time also counts faster.
Some codecs (WMA and Ogg Vorbis) can also indicate the absolute play position, see the
extra parameter in section 10.11.
9.8.6 SCI_AUDATA (RW)
When decoding correct data, the current samplerate and number of channels can be found
in bits 15:1 and 0 of SCI_AUDATA, respectively. Bits 15:1 contain the samplerate divided by
two, and bit 0 is 0 for mono data and 1 for stereo. Writing to SCI_AUDATA will change the
samplerate directly.
Example: 44100 Hz stereo data reads as 0xAC45 (44101).
Example: 11025 Hz mono data reads as 0x2B10 (11024).
Example: Writing 0xAC80 sets samplerate to 44160 Hz, stereo mode does not change.
To reduce digital power consumption when idle, you can write a low samplerate to SCI_AUDATA.
9.8.7 SCI_WRAM (RW)
SCI_WRAM is used to upload application programs and data to instruction and data RAMs. The
start address must be initialized by writing to SCI_WRAMADDR prior to the first write/read of
SCI_WRAM. One 16-bit data word can be transferred with one SCI_WRAM write/read. As the
instruction word is 32 bits long, two consecutive writes/reads are needed for each instruction
word. The byte order is big-endian (i.e. most significant words first). After each full-word
write/read, the internal pointer is autoincremented.
9.8.8 SCI_WRAMADDR (W)
SCI_WRAMADDR is used to set the program address for following SCI_WRAM writes/reads.
Use an address offset from the following table to access X, Y, I or peripheral memory.
WRAMADDR Dest. addr. Bits/ Description
Start. . . End Start. . . End Word
0x0000. . . 0x3FFF 0x0000. . . 0x3FFF 16 X data RAM
0x4000. . . 0x7FFF 0x0000. . . 0x3FFF 16 Y data RAM
0x8000. . . 0x8FFF 0x0000. . . 0x0FFF 32 Instruction RAM
0xC000. . . 0xC0BF 0xC000. . . 0xC0BF 16 I/O
0xC0C0. . . 0xC0FF 0x1E00. . . 0x1E3F 16 parametric_x
0xE000. . . 0xFFFF 0xE000. . . 0xFFFF 16 Y data RAM
Note: Unless otherwise specified, only user areas in X, Y, and instruction memory should be accessed.
Version: 0.42, 2011-11-24 45