Andres Rodriguez
New Member
I am using a 28X1 and need to store a byte variable in location 0 of the EEPROM. I get a "Syntax Error" on the line EEPROM 0, b6
My code is as follows:
My code is as follows:
Code:
'Variables
Symbol RXIN =W0
Symbol DLYin=W2
Symbol Dly = b6
'Pins
Symbol RX_IN= Input0
let dirsc = %11111110
Pause 10000
Main:
readadc10 0,DLYIN
If DLYIN=0 then goto Main1
DLY=DLYIN/15 MIN 30 MAX 100
[B]EEPROM 0, b6[/B]
Main1:
pulsin 0,1,RXIN
read 0, b6