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.

Using EEPROM of a PIC16Fx with PICbasic/

Status
Not open for further replies.

Shinnster

Member level 4
Joined
Sep 15, 2009
Messages
70
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,286
Location
Malaysia
Activity points
1,800
How do I use EEPROM as a storage like say for example, I want to store 4 different hex values and reused like as a Password.

Any idea?

- I'm using PICBasic.
 

Hi
Try the sample code below
Code:
Dim Write_Value as byte
Dim Read_Value as byte

Write_Value = $10
Read_Value = 0

EWrite 0, [Write_Value]    'Write the contents of 'Write_Value' variable to address 0

Read_Value = ERead 0    'Read the contents from address 0 to Read_Value variable


Hope this helps!

Nishal
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top