I am writing a program which needs to be password protected. I am
using pic16f876a mcu. Can you give some idea how I can enter a
password using a single switch and how the password can be checked?
I can use an lcd for display.
Please help
pau
Joined: 18 Nov 2008 Posts: 8
Posted: Thu Sep 03, 2009 7:10 am
With only a single switch you need to do a sequence. Once you power-up the pic, the program have to wait until the switch is turned on, then the password can be like this:
2 seconds on-1 second off-2 seconds on.
It needs to have a range, for instance +/- 0.3 seconds for each interval.
Hope it helps you.
SherpaDoug
Joined: 07 Sep 2003 Posts: 1640 Location: Cape Cod Mass USA
Posted: Thu Sep 03, 2009 3:26 pm
If you want to get real sophisticated you could use Morse code. _________________ The search for better is endless. Instead simply find very good and get the job done.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum