Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

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

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote