MAS 3504D
3.3.5. Read Register
3.3.7. Read D1 Memory
1) send command
1) send command
S
DW
W
A
data_write
A
D,r1
A
r0,$0
W
A
P
N
S
DW
W
A
data_write
A
A
A
F,$0
A
A
A
$0,$0
n1,n0
a1,a0
W
W
W
2) get register value
n3,n2
a3,a2
S
DW
d3,d2
r1, r0: register r
W
A
A
data_read
d1,d0
A
A
S
DR
x,x
W
A
A
P
A
W
A
x,d4
W
P
2) get memory value
S
DW
W
A
A
data_read
d1,d0
A
S
DR
W
d3..d0: data value in r
x: don’t care
A
d3,d2
W
A
$0,$0
A
$0,d4
W
W
....repeat for n data values....
d3,d2 d1,d0
A
A
W
A
$0,$0
A
$0,d4
N
P
The MAS 3504D has an address space of 256 regis-
ters. Some of the registers (r = r1, r0 in the figure
above) are direct control inputs for various hardware
blocks, others do control the internal program flow. In
the next section, those registers that are of any interest
with respect to the G.729 codec are described in
detail.
n3..n0: number of words
a3..a0: start address in MASD memory
d4..d0: data value
The ‘read D1 memory’ command is provided to get
information from memory cells of the MAS 3504D. It
gives the controller access to all memory cells of the
internal D1 memory.
Example: Read the content of the PIO data register
(C8hex):
<$3A><$68><$DC><$80>
<$3A><$69><$3B>
now read:
<d3,d2><d1,d0><x,x><x,d4>
3.3.6. Read D0 Memory
1) send command
S
DW
W
A
data_write
A
A
A
E,$0
n3,n2
a3,a2
A
A
A
0$,$0
n1,n0
a1,a0
W
W
W
A
P
2) get memory value
S
DW
W
A
A
data_read
d1,d0
A
S
DR
W
A
d3,d2
W
A
$0,$0
A
$0,d4
W
W
....repeat for n data values....
d3,d2 d1,d0
A
A
W
A
$0,$0
A
$0,d4
N
P
n3..n0: number of words
a3..a0: start address in MASD memory
d4..d0: data value
The ‘read D0 memory’ command is provided to get
information from memory cells of the MAS 3504D. It
gives the controller access to all memory cells of the
internal D0 memory. Direct access to memory cells is
an advanced feature of the DSP. It is intended for
users of the MASC software development kit.
Micronas
15