PRELIMINARY
VS1063a Prog. Guide
8
VS1063A LOAD FILE FORMATS
8
VS1063a Load File Formats
8.1
VS1063a Plugin Format
A plugin file (“.PLG”) contains an unsigned 16-bit C source code vector called
plugin
. The file
is in an RLE compressed format. An example plugin vector is shown below:
const unsigned short plugin[10] = { /* Compressed plugin */
0x0007, 0x0001, 0x8260,
0x0006, 0x0002, 0x1234, 0x5678,
0x0006, 0x8004, 0xabcd,
};
The vector is decoded as follows:
1. Read register address number
addr
and repeat number
n
.
2. If (
n
& 0x8000U), write the next word
n
times to register
addr
.
3. Else write next
n
words to register
addr
.
4. Continue until table has been exhausted.
The example vector first tells to write 0x8260 to register 7 (WRAMADDR). Then write 2 words,
0x1234 and 0x5678, to register 6 (WRAM). Finally, write 0xabcd 4 times to register 6 (WRAM).
8.1.1
The .PLG Format and VSIDE
VSIDE will gain the capability of generating plugin format files in Q3/2011.
Version: 0.40, 2011-09-02
21