Hi,
I'm trying to program a PIC16F916 using CCS and i'm having problems with the instructions for use the eeprom.
Reading the ccs manual I thought the following instructions work by themselves
read_eeprom(adress)
write_eeprom (address,value)
But when I try to use them it simply doesn't work, in fact when i add these instructions to my code, the entire program stops working.
Is there any kind of configuration that i need to do before i can use them?
The way i'm using them is "a=read_eeprom(0);" and "write_eeprom(0,a);", where "a" is an int variable i'm using without problem in other parts of the code.
I'm trying to program a PIC16F916 using CCS and i'm having problems with the instructions for use the eeprom.
Reading the ccs manual I thought the following instructions work by themselves
read_eeprom(adress)
write_eeprom (address,value)
But when I try to use them it simply doesn't work, in fact when i add these instructions to my code, the entire program stops working.
Is there any kind of configuration that i need to do before i can use them?
The way i'm using them is "a=read_eeprom(0);" and "write_eeprom(0,a);", where "a" is an int variable i'm using without problem in other parts of the code.