CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

Password protection

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
UDIPTA



Joined: 29 Apr 2009
Posts: 13
Location: Kolkata,India

View user's profile Send private message Send e-mail

Password protection
PostPosted: Thu Sep 03, 2009 12:38 am     Reply with quote

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

View user's profile Send private message

PostPosted: Thu Sep 03, 2009 7:10 am     Reply with quote

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

View user's profile Send private message

PostPosted: Thu Sep 03, 2009 3:26 pm     Reply with quote

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.
Guest








PostPosted: Thu Sep 03, 2009 3:35 pm     Reply with quote

SherpaDoug,

--. .-. . .- - .. -.. . .-!!

Simon
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group