Oct 8, 2009 #1 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.
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.
Oct 8, 2009 #2 nishal Advanced Member level 4 Joined May 4, 2007 Messages 108 Helped 10 Reputation 20 Reaction score 5 Trophy points 1,298 Activity points 1,936 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
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
Oct 8, 2009 #3 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 Thank you.