User Manual

MCP Series
Brushed DC Motor Controllers
MCP Series User Manual
183
WRITE
Syntax
write address, data
Address - address of EEPROM to store data
Data - is a byte value that will be written to the address specied. It can be an expression,
constant or variable.
Description
All modules except the BasicATOM Pro 24 come with built in EEPROM. The READ / WRITE
commands were created to access the built-in memory. WRITE will write a signal byte to the
built-in EEPROM at the address specied in the command.
Example
The example program will write the string “Hello” starting at the rst location to the built-in
memory. Next, it will read built-in memory locations 0 through 10 and print the contents to the
terminal window.
index var byte
char var byte
write 0,”H”
write 1,”e”
write 2,”l”
write 3,”l”
write 4,”o”
for index = 0 to 10
read index,char
puts 0,[char]
next
end