As a project I\'m making a digital safe that prompts the user to enter a 4 digit
ID: 2990552 • Letter: A
Question
As a project I'm making a digital safe that prompts the user to enter a 4 digit password with the the use of an LCD, and keypad. I added a feature that allows the user to create a new password, as long as he/she remembers the old one. The safe can now be only unlocked with the new password. The only problem is that every time I power down and power back up, my PIC re-inializes my variables to the default password that I placed in the C code. I would like to know if anyone knows how to write to the EEPROM of the PIC 16F877A so that after powering up again, it retains the new code. I use microC PRO for PIC compiler.
Explanation / Answer
;here is a way you can write(ASSEMBLY) to EEPROM segment for saving your data even after power failures
;DO MARK THIS AS BEST ANSWER
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.