Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

PIC question, how to store a password?

Status
Not open for further replies.

skyassasin16

Junior Member level 2
Joined
Jan 10, 2011
Messages
24
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,283
Activity points
1,453
I am currently working on a simple lcd keypad GUI that needs to store password in C. Most of the code is already done. I don't know how can I create a security based on the system where there is an option to change the password. I guess its a bit complicated code because every boot, It must access the password that is set by the user. Please help, thanks in advance!
 

Hi,

There are two options. One fixed password which quite simple to store in any controller. Second variable password where you change the password. Even this little easy. Both the things require about 5 line of code. The code is just like storing any value in EEPROM and reading the value.

Hope this help you
 
You can use the internal EEPROM, like you can use an external I2C EEPROM (24CXX).
But using internal EEPROM is more simple and cheap.
 
i am using pic18f46k22
i want to make same application but i dont know how to store any value in eeprom and how to read it??

thank you.
 

i am using pic18f46k22
i want to make same application but i dont know how to store any value in eeprom and how to read it??

thank you.

i found library functions in EEP library and aded eep.h
and used Write_b_eep and Read_b_eep functions for writing and reading flash memory.
 

i have the pblm. i want to access internal eeprom of pic.. wer is eep.h available. is it compatible with htpic

dont use sms or short hand typing skills in this forum... type the complete words by spending few more seconds. this is the last warning and further posts and thread of yours will be deleted without informing you if continued
 
Last edited by a moderator:

What compiler are you using?

HiTech C?

And what model PIC?

If you using HiTech C, the compiler provides the following Library Functions:

unsigned char data eeprom_read(unsigned int address);
void eeprom_write(unsigned int address, unsigned char data);

If you are not using HiTech C, let me know I am familiar with several PIC C compilers.
 

Thank u Sir..

i am using PIC 16f877a with HT-PIC compiler.. let me try with that function..

what will be the address of eeprom.
 

Actually the exact procedure to access the EEPROM is clearly provided in the data sheet.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top