Raady Here
Full Member level 5
- Joined
- Jun 8, 2013
- Messages
- 242
- Helped
- 26
- Reputation
- 52
- Reaction score
- 26
- Trophy points
- 28
- Location
- India
- Activity points
- 1,571
Hi,
I am unable to read the exact values from EEPROM,
I am getting negative values when read !
Please suggest me, if my syntax had gone wrong !
View attachment EEPROM.rar
Zipping the code in attachments
I am unable to read the exact values from EEPROM,
I am getting negative values when read !
Please suggest me, if my syntax had gone wrong !
View attachment EEPROM.rar
Zipping the code in attachments
Code:
ptr = (unsigned char*)&Voltage_Low ;
Write_String_EEPROMx(2,ptr, EE_CUTOFF_LOW);
ptr1= (unsigned char*)&Voltage_Low ;
Read_String_EEPROMx(2,(unsigned char*)&ptr1, EE_CUTOFF_LOW);
Voltage_Low1 = ConvertSTRING_Int(ptr1,2);
printf("\n Voltage_Low: %d",Voltage_Low1);
ptr = (unsigned char*)&MUL_R;
Write_String_EEPROMx(4, ptr, EE_MULT_FACT_R);
Read_String_EEPROMx(4, ptr, EE_MULT_FACT_R);