User Manual

MCP Series
Brushed DC Motor Controllers
MCP Series User Manual
176
READ
Syntax
read address, databyte
Address - is a byte sized variable or constant that species what address to read the on-board
EEPROM from.
DataByte - is a byte sized variable (0-255) which stores the data returned from the on-board
EEPROM.
Description
All modules except the BasicATOM Pro 24 and BasicATOMPro ONE come with built in EEPROM.
The READ / WRITE commands were created to access the built-in memory. READ will read a
single byte from 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 on-board
EEPROM. Next, it will read the EEPROM locations 0 to 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