lcdcon = 0
dim temp as byte
dim temp2 as byte
dir portc.0 in 'serial
#define RecAHigh portc.0 on
#define RecAlow portc.0 off
Initser 1,r2400, 1+waitforstart, 8, 1, none, normal
main:
SerReceive 1, temp
SerReceive 1, temp2
EPWrite(temp,temp2)
goto main
I get symbol not defined eeadr, eedata?
Will this work? I want to send serial from bytes to it from my pc and have them put them into the eeprom for later use.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I need the first byte to set the location (temp) and the second byte to be the value (temp2), there will be many locations used and changed out of order also
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
#chip 16F916, 4 'mhz
#config OSC=INTOSC, MCLRE=off, WDT=off
#mem 256 'Chip has 128 bytes
EEADRH = 1
lcdcon = 0
dim temp as byte
dim temp2 as byte
dir portc.0 in 'serial
#define RecAHigh portc.0 on
#define RecAlow portc.0 off
Initser 1,r2400, 1+waitforstart, 8, 1, none, normal
main:
SerReceive 1, temp
SerReceive 1, temp2
EPWrite(temp,temp2)
goto main
I get symbol not defined eeadr, eedata?
Will this work? I want to send serial from bytes to it from my pc and have them put them into the eeprom for later use.
I think this will help
main:
SerReceive 1, temp
SerReceive 1, temp2
EPWrite 0, temp
EPWrite 1, temp2
goto main
Regards, Ed.
I need the first byte to set the location (temp) and the second byte to be the value (temp2), there will be many locations used and changed out of order also
Try:
EPWrite temp, temp2
still gets the errors
Are you using the latest update from http://gcbasic.sourceforge.net/newfiles/update.zip ?