Programming a remembered Passcode for a PIC16F88

Thread Starter

Baleak

Joined Nov 14, 2010
1
I am trying to program an user input password (4 digits) that a PIC16F88 will remember(even when powered down). I was wondering if anyone had any ideas on where to start. I am thinking about setting 4 different variables using
J Var byte
but I'm not sure if this data would be reset when the system powers down.
 

AlexR

Joined Jan 16, 2008
732
I have no idea what a "J Var byte" is or even what programming language it refers to but I would have thought that the obvious way to store a password so that it would not be lost on power down would be to write it to EEPROM.
 

maxpower097

Joined Feb 20, 2009
816
I've done this already. Basically heres what we did.
1. Set bit's to check at boot to see if a password has been set up.
2. If not then ask to set up a password.
3. If so then proceed to boot normally.
4. Enter a lock on the main menu asking for a passcode to enter menu area
5. Let user set PIN at first boot or in menu.
6. If they set the passcode up in menu it activates and locks everyone without the passcode out. We stored the setup bits, and passcode on the PIC16LF877A's internal epprom.
If you can't figure it out I'll dig through my old code and try to find you snippets. Its all in ASM and is a huge program, around 4,500 lines. So it's not gonna be easy to just find all the password stuff.
 
Top