PKP
VS1000 P
ROGRAMMER
’
S
G
UIDE
VSMPG
3
VS1000 RAM Memory Map
0000
3800
0400
0800
0c00
1000
1400
1800
1c00
2000
2400
2800
2c00
3000
3400
3c00
4000
mallocAreaX
System variables
(Vorbis heap)
audio buffer
mallocAreaY
IMDCT workspace
Y RAM (16−bit)
System Y
variables
User Y statics
Static user variables
IMDCT workspace
Vorbis
workspace
1A00
1B32
1BFF
1F85
X RAM (16−bit)
USB Receive
USB Send
4096 words
(8192 bytes)
(8192 bytes)
4096 words
2K words (4K bytes)
I RAM (32−bit)
Interrupt vector (80 words)
USER CODE
1968 words = 7872 bytes
Reserved user static memory: 7872 bytes I + 2240 bytes X + 412 bytes Y, total: 10524 bytes
9216 words
(18432 bytes)
ing vorbis and disk cache,
when USB is connected)
(Vorbis heap when play−
Total stack space: 1024 bytes X + 1024 bytes Y, total: 2048 bytes (for user and system)
Total RAM space: 26624 bytes X + 32768 bytes Y + 8192 bytes I, total: 67584 bytes
stack space and function local variables
Figure 3: VS1000B RAM layout
While playing Ogg Vorbis audio the memory areas available for user are 0x1fa0 to 0x23ff
(1120 words) in X data memory and 0x1b32 to 0x1bff (206 words) in Y data memory.
These areas are included in the default memory description file (mem_desc.vs1000), so
linker can allocate variables into those memory areas.
More memory can be used as temporary storage when audio is not being decoded.
Rev. 0.20
2011-10-04
Page