MAS 3507D
PRELIMINARY DATA SHEET
3.3.6. Read Register
3.3.8. Read D1 Memory
1) send command
1) send command
dev_write
data_write
$D, r1
r0,$0
dev_write
data_write
$F, $0
n3,n2
a3,a2
$0,$0
n1,n0
a1,a0
S
A
A
A
A P
S
A
A
A
A
A
A
A
2) get register value
dev_write
data_read
d3, d2
dev_read
X,X
S
A
A S
A P
2) get memory value
dev_write
d1,d0
X, d4
Nak
A
A
A
A
P
data_read
dev_read
$0,$0
S
A
A S
r1, r0: register r
d3...d0: data value in r
X: don’t care
d3, d2
d1,d0
$0, d4
A
A
A
A
A
....repeat for n data values....
d3, d2
d1,d0 $0,$0 $0, d4
A
A
A
NaKP
n3..n0: number of words
a3..a0: start address in MASD memory
d4..d0: data value
The MAS 3507D 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 MPEG decoding are described in
detail.
The ‘read D1 memory’ command is provided to get
information from memory cells of the MAS 3507D. It
gives the controller access to all memory cells of the
internal D1 memory.
Example:
Read the content of the PIO data register ($c8):
3.3.9. Default Read
<$3a><$68><$dc><$80>
<$3a><$69><$3b>
now read:
dev_write
data_read
device_read
S
A
A S
A
<d3,d2><d1,d0><x,x><x,d4>
d3,d2
d1,d0
Nak
A
P
3.3.7. Read D0 Memory
The ‘default read’ command immediately returns the
content of the MPEGFrameCount (D0:$300) of the
MAS 3507D in the variable (d = d3,d2,d1,d0). The
‘default read’ command is the fastest way to get infor-
mation from the MAS 3507D. Executing the ‘default
read’ command in a polling loop can be used to detect
the availability of new ancillary data.
1) send command
dev_write
data_write
$E, $0
n3,n2
a3,a2
$0,$0
n1,n0
a1,a0
S
A
A
A
A
A
A
A
A P
2) get memory value
dev_write
data_read
dev_read
$0,$0
S
A
A S
d3, d2
d1,d0
$0, d4
A
A
A
A
A
....repeat for n data values....
d3, d2
d1,d0 $0,$0 $0, d4
A
A
A
P
NaK
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 3507D. 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.
22
Micronas