I'm using a pic 16F627, Picbasic, Ic prog and a JDM programmer
I have a chip programmed to if you hold the switch down on startup, it sets a variable to 1, writes it to eeprom. Then carries on with startup as normal
The next part (only part, if no switch held down) of it is done everytime it starts up, is to set the varaible to 0, read the variable from the eeprom and if its equal to 1, to switch on output on.
The problem is that when you hold down the switch when switching it on, it will switch the output on, its obviously written and read back the eeprom, but if you switch it off and on again without the switch held down, the output stays low, its as if the eeprom has forgotten its contents
any ideas?, I can post the simple code here later, but I do not have it on this computer
Adam
I have a chip programmed to if you hold the switch down on startup, it sets a variable to 1, writes it to eeprom. Then carries on with startup as normal
The next part (only part, if no switch held down) of it is done everytime it starts up, is to set the varaible to 0, read the variable from the eeprom and if its equal to 1, to switch on output on.
The problem is that when you hold down the switch when switching it on, it will switch the output on, its obviously written and read back the eeprom, but if you switch it off and on again without the switch held down, the output stays low, its as if the eeprom has forgotten its contents
any ideas?, I can post the simple code here later, but I do not have it on this computer
Adam