MAS 35x9F
DATA SHEET
3.3.2.9. Default Read
The Default Read command is the fastest way to get
information from the MAS 35x9F. Executing the
Default Read in a polling loop can be used to detect a
special state during decoding.
S DW W A data_read A S DR W A
d3,d2 A d1,d0 W N P
The Default Read command immediately returns the
lower 16 bit content of a specific RAM location as
defined by the pointer D0:ffb. The pointer must be
loaded before the first Default Read action occurs. If
the MSB of the pointer is set, it points to a memory
location in D1 rather than to one in D0.
Example: For watching D1:123 the pointer D0:ffb must
be loaded with 8123hex:
<DW 68 e0 00
00 01
0f fb
00 08
01 23>
write to D0 memory
1 word to write
start address ffb
value = 8...
...0123hex
Now the Default Read commands can be issued as
often as desired:
<DW 69 <DR
Default Read command
dd dd >
16 bit content of the
address as defined by the
pointer
<DW 69 <DR dd dd > ... and do it again
3.3.2.10.Fast Program Download (Code 6hex)
S DW W A data_write A 6,n2 A n1,n0 W A
a3,a2 A a1,a0 W A P
The Fast Program Download command introduces a
data transfer via the parallel port. n = n2,n1,n0
denotes the number of 20-bit data words to be trans-
ferred, a = a3,a2,a1,a0 gives the start address. The
data must be organized in two times five nibbles to get
two words of 20-bit length. If the number n of 20-bit
data words is odd, the very last word has to be padded
with one additional nibble.
The download must be initiated in the following order:
– Issue Freeze command
– Stop all DMA-transfers
– Issue Fast Program Download command
– Download code via PIO-interface
– Switch appropriate memory area to act as program
RAM (register EDhex)
– Issue a Run command to start program execution at
entry point of downloaded code
Example for Fast Program Download command:
Download 5 words starting at D0:800,
then download 4 words starting at D1:200:
<DW 68 00 00>
Freeze
<DW 68 b3 b0 03 18>Stop all internal transfers
<DW 68 b4 30 03 00>
<DW 68 b4 b0 00 00>
<DW 68 b5 30 03 18>
<DW 68 b6 b0 00 00>
<DW 68 bb b0 03 18>
<DW 68 bc 30 03 00>
<DW 68 b0 60 00 00>
<DW 68 60 05
08 00>
initiate download of 5 words
start at address D0:800
Now transfer 5 20-bit words via the parallel PIO-port:
d4,d3 d2,d1 d0,d4 d3,d2 d1,d0
d4,d3 d2,d1 d0,d4 d3,d2 d1,d0
d4,d3 d2,d1 d0,x
<DW 68 60 05
82 00>
initiate download of 4 words
start at address D1:200
Now transfer 4 20-bit words via the parallel PIO-port:
d4,d3 d2,d1 d0,d4 d3,d2 d1,d0
d4,d3 d2,d1 d0,d4 d3,d2 d1,d0
<DW 68 b6 bc 00 00>switch the memory area
D0:800 ... D0:fff from
data to program usage
<DW 68 10 0a>
start program execution at
address D0:100a
3.3.2.11.Serial Program Download
Program downloads may also be performed via the
I2C-interface by using the Write D0/D1 Memory com-
mands. A similar command sequence as in the Fast
Program Download (Freeze, stop transfers...) applies.
30
June 30, 2004; 6251-505-1DS
Micronas