Programming Commands U511 User’s Manual
5-64 Aerotech, Inc. Version 1.1
5.5.54. MW (Memory Write)
The MW command writes a data value to a DSP memory location. The mode argument
indicates whether to overwrite the existing memory data, AND the new data with the
previous data, or OR the new data with the previous data. This command is not queued in
the U511 memory. It is executed immediately by the host processor and the U511. This
command is for special applications and is not intended for general use.
SYNTAX:
MW mtype, addr, data [,mode]
mtype X or Y for X or Y memory space.
addr Address to write within memory space.
data Data to be written.
mode AND if ANDING data; OR if ORING data; otherwise
overwrite data.
EXAMPLES:
MW Y, 0x1a,6 ;Writes a 6 to memory location 0x1a in Y memory space
;(this is the location of the 8 outputs)
MW Y, 0x1a, 1 ,OR ;Set bit 0 of the outputs and does not affect the other bits
This command is for special applications and is not intended for general use.
Related commands
MR
F
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com