MELabs has sample code to do what Archilochus suggest here
http://www.melabs.com/resources/samples/pbp/eeword.bas
also check the samples file in your PBP folder for another example (ee.bas)
Paul Borgmeier
Salt Lake City, Utah
USA
MELabs has sample code to do what Archilochus suggest here
http://www.melabs.com/resources/samples/pbp/eeword.bas
also check the samples file in your PBP folder for another example (ee.bas)
Paul Borgmeier
Salt Lake City, Utah
USA
thankQ.
i try this tonight
and how can i give signal for write data to eeprom before power supply off.
i cant save the data every time because my system loop forever
Last edited by PoTeToJB; - 11th May 2006 at 19:27.
there is a code example post by Melanie that addresses this as far as I remember. Do a quick search, youll find it.
thankQ
now i know how to read and write data to pic.
i have anathor question.
can i use interrupt and write progran to save data in pic..
i try use interrupt and write program to write data to pic. but cant function..
why..
or i cant use write program if i use interrupt
Last edited by PoTeToJB; - 14th May 2006 at 18:24.
I can't believe it's impossible.. just post your code here first!
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Well... keep a copy of the data in a register, and compare your new value in the loop to the existing register value.and how can i give signal for write data to eeprom before power supply off.
When and only when you have a new value, send the new value to the EEPROM, and update your register value too. Don't do it too often, as there is a limited number of cycles on that memory.
Bookmarks