MAS 3504D
3.3. Detailed MAS 3504D Command Syntax
3.3.1. Run
3.3.3. Write D0 Memory
S
DW
W
A
data_write
A
A
A
A
A
A,0
A
A
A
A
A
$0,$0
n1,n0
a1,a0
d1,d0
$0,d4
W
W
W
W
W
n3,n2
a3,a2
d3,d2
$0,$0
S
DW
W
A
data_write
A
a3,a2
A
a1,a0
W
A
P
The ‘run’ command causes the start of a program part
at address a = (a3, a2, a1, a0). The nibble a3 is
restricted to 0hex or 1hex which also acts as command
selector. Run with address a = 0hex will suspend the
encoding/decoding function and only I2C commands
are evaluated. This freezing is required if alternative
software is downloaded into the internal RAM of the
MAS 3504D. Detailed information about downloading
is provided in combination with a MAS 3504D software
development package or together with MAS 3504D
software modules available from Micronas.
....repeat for n data values....
A
A
d3,d2
$0,$0
A
A
d1,d0
$0,d4
W
W
A
P
n3..n0: number of words to be transmitted
a3..a0: start address in MASD memory
d4..d0: data value
The MAS 3504D has 2 memory areas of 2048 words
each called D0 and D1 memory. For both memory
areas, read and write commands are provided.
Example: ‘run’ at address 1hex (start of G.729 decoder)
has the following I2C protocol:
Example: writing one word to address d0:0321hex has
the following I2C protocol:
<$3A><$68><$00><$01>
<$3A><$68><$A0><$00> (write D0 memory)
3.3.2. Write Register
<$00><$01>
<$03><$21>
<$23><$45>
<$00><$01>
(1 word to write)
(start address)
(value = 12345hex
)
S
DW
W
A
data_write
A
9,r1
A
A
r0,d4
d2,d1
W
W
A
A
d4,d3
P
3.3.4. Write D1 Memory
The
controller
writes
the
20-bit
value
(d = d4, d3, d2, d1, d0) into the MAS 3504D register
(r = r1,r0). In contrast to memory cells, registers are
always addressed individually, and they may also
interact with built-in hardware blocks. A list of registers
is given in Section 3.5. on page 16
S
DW
W
A
data_write
A
A
A
A
A
B,0
A
$0,$0
n1,n0
a1,a0
d1,d0
$0,d4
W
W
W
W
W
n3,n2
a3,a2
d3,d2
$0,$0
A
A
A
A
Example: G.729 decoding is started by writing the
value 1 into the register with the number FDhex
:
....repeat for n data values....
A
A
d3,d2
$0,$0
A
A
d1,d0
$0,d4
W
W
<$3A><$68><$9F><$D1><$00><$00>
A
P
n3..n0: number of words to be transmitted
a3..a0: start address in MASD memory
d4..d0: data value
For further details, see ‘write D0 memory’ command.
14
Micronas