Hi Everyone and thanks in advance.
I am in the final stages of my RFID Reader based child time management system and i have run into a hitch. EEPROM!!!!
I am using the Picaxe 20M2 for pinout i am using:
C.0 - RFID Reader
C.5, C.3 and C.2 for the two RGB LED's
C.7 For the Relays and the I2C pins for a RTC.
I have custom build the boards that support the hardware and i know that they are all correct.
Now onto my problem. I am trying to take from eeprom a value between 0-255 (although probably nearer 0-120) and add 30 to it and then put it back into eeprom.
For the code i have used poke and peek and for the life of me i cannot get the EEPROM and Read command working.
Please ignore ENum and Tagnum as they work as i have checked through debug and please remember that this code is a small part of my 400 other lines.
I am in the final stages of my RFID Reader based child time management system and i have run into a hitch. EEPROM!!!!
I am using the Picaxe 20M2 for pinout i am using:
C.0 - RFID Reader
C.5, C.3 and C.2 for the two RGB LED's
C.7 For the Relays and the I2C pins for a RTC.
I have custom build the boards that support the hardware and i know that they are all correct.
Now onto my problem. I am trying to take from eeprom a value between 0-255 (although probably nearer 0-120) and add 30 to it and then put it back into eeprom.
For the code i have used poke and peek and for the life of me i cannot get the EEPROM and Read command working.
Code:
Addtime:
ENum = Tagnum + 80
peek Enum, b27
b27=b27+30
Poke Enum, b27
debug
pause 10000
reset