Microcontroller › 8051 › How to wrie 16-bit data EEPROM 24c021 › hi .. by this way :
March 7, 2012 at 1:18 pm
#7276
amardeep
Participant
hi ..
by this way :
unsigned int data,addtion,add ;
unsigned char upper,lower;
/* write operation*/
lower = data%100; // lower byte
upper = data/100; // upper byte
/* read operation*/
addtion = lower;
add = upper<<8;
add = add | addtion;
i write eeprom by this way …but when i perform read operation the value will changed ..
but result is changed …
for that what i have to do ..??
but result is changed …
for that what i have to do ..??