- This topic has 2 replies, 2 voices, and was last updated 11 years, 9 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
|
Microcontroller › 8051 › How to wrie 16-bit data EEPROM 24c021
Hi ..
I am using 24c02 EEPROM memory for data storage .
i am working on a project of counter. i use Unsigned int variable who value is increment and maximum value is 65535
i need help or algorithm how to write this 16-bit value into EEPROM
Break the data into two one byte numbers using masking and send one byte at a time to the eeprom. However in the logic of your program you have to convert the two bytes into one number.
hi ..
by this way :
unsigned int data,addtion,add ;
unsigned char upper,lower;
/* write operation*/