Help with code
maad
Posts: 28
Will you help me complete the code?, I want to store the data coming from the serial port with SERIN and put it in EEPROM memory
SevenBit CON $2000
Inverted CON $4000
Open CON $8000
Baud CON Open + T9600
Prompt CON ">" ' prompt from HP driver
STX CON 2 ' start of text
ETX CON 3 ' end of text
Esc CON 27 ' escape
'
[ Variables ]
X VAR Byte
'
[ EEPROM Data ]
SERIN 16,baud, [DEC X]
msg1 DATA STX," I want to store the number from serin right here ",ETX
SevenBit CON $2000
Inverted CON $4000
Open CON $8000
Baud CON Open + T9600
Prompt CON ">" ' prompt from HP driver
STX CON 2 ' start of text
ETX CON 3 ' end of text
Esc CON 27 ' escape
'
[ Variables ]
X VAR Byte
'
[ EEPROM Data ]
SERIN 16,baud, [DEC X]
msg1 DATA STX," I want to store the number from serin right here ",ETX
Comments
This snippet stores the byte value "X" in EEPROM address 100.