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.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…