Hello,
I need a little help with read and write to internal EEPROM in PIC16F690.
I try to write to adress 10, value 1
like:
But the program stuck on read and the write instruction.Code:led1 var portc.4 buton1 var porta.4 led1flag var bit init: low led1 let led1flag = 0 zac: read 10, led1flag if buton1 = 0 and led1flag = 0 then goto onled if buton1 = 0 and led1flag = 1 then goto offled goto zac onled: high led1 let led1flag = 1 write 10, led1flag debounce: if buton1 = 0 then pause 10 goto debounce endif goto zac offled: low led1 let led1flag = 0 write 10, led1flag debb: if buton1 = 0 then pause 10 goto debb endif goto zac
On 16F628 I use these commands and it works, on 16F690 I am doing something wrong. Please can someone to explain how use READ and WRITE instruction on this chip. Thanks.




Bookmarks