Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Problems with PIC16F877A EEPROM usage...

Status
Not open for further replies.

chunei

New Member
Hi...

Currently Im using PIC16F877A to construct a pin number lock....

My objective is that I need to save a 6-digits password into the PIC EEPROM so that when the whole circuit is OFF, the password still remain saved in the PIC...

I dont know how to use the EEPROM function in C programming....

Hope everyone can help me here... thanks...

below is the flow chart for your reference that what I need to do...
 

Attachments

  • flowchart.JPG
    flowchart.JPG
    29.1 KB · Views: 1,510
chunei said:
I dont know how to use the EEPROM function in C programming....
Chapter 3 of the datasheet has what you need. There are step by step instructions for how to read and write to EEPROM. Even has example asm code that you can use to help you write your C code.

There is info in that chapter on how to write to flash as well.

While you're at Microchip's site, the midrange manual has a section on EEPROM, and I'd bet that if you dig through their App Notes you'd probably find more info there.
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top