MAS 3587F
ADVANCE INFORMATION
24
Micronas
3.3. DSP Core
The DSP Core of the MAS 3587F has two RAM banks
denoted D0 and D1. The word size is 20 bits. All RAM
addresses can be accessed in a 20-bit or a 16-bit
mode via I
2
C bus. For fast access of internal DSP
states, the processor core also has an address space
of 256 data registers. All register and RAM addresses
are given in hexadecimal notation.
3.3.1. Access Protocol
The access of the DSP Core in the MAS 3587F uses a
special command syntax. The commands are exe-
cuted by the DSP during its normal operation without
any loss or interruption of the incoming data or outgo-
ing audio data stream. These I
2
C commands allow the
controller accessing the internal DSP registers and
RAM cells and thus, monitoring internal states and set-
ting the parameters for the DSP firmware. This access
also provides a download option for alternative soft-
ware modules.
The MAS 3587F firmware scans the I
2
C interface peri-
odically and checks for pending or new commands.
However, due to some time critical firmware parts, a
certain latency time for the response has to be
expected. The theoretical worst case response time
does not exceed 4 ms. However, the typical response
time is less than 0.5 ms.
Table 3
–
4 gives an overview over the different com-
mands which the DSP Core receives via the I
2
C data
register. The
“
Code
”
is always the first data nibble
transmitted after the
“
data_write
”
subaddress byte. A
second auxiliary code nibble is used for the short
memory (16-bit) access commands.
Due to the 16-bit width of the I
2
C data register, all
actions transmit telegrams with multiples of 16 data
bits.
Fig. 3
–
2:
General core access protocol
S
DW
A
W
$68
A
W
code , ...
A
... , ...
A
... , ...
Table 3
–
4:
Basic controller command codes
Code
(hex)
Command
Function
0...3
Run
Start execution of an internal program.
Run
with start address 0 means
freeze the operating system.
5
Read Ancillary Data
The controller reads a block of MPEG Ancillary Data from the MAS 3587F
6
Fast Program Download
The controller downloads custom software via the PIO interface
A
Read from Register
The controller reads an internal register of the MAS 3587F
B
Write to Register
The controller writes an internal register of the MAS 3587F
C
Read D0 Memory
The controller reads a block of the DSP memory
D
Read D1 Memory
The controller reads a block of the DSP memory
E
Write D0 Memory
The controller writes a block of the DSP memory
F
Write D1 Memory
The controller writes a block of the DSP memory