char HLVLineBuf[20];
static unsigned char *ptr;
unsigned int temp_HV = 0, temp_LV = 0;
unsigned int Voltage_Low,Voltage_High;
....
ptr = HLVLineBuf;
....
temp_HV = ConvertSTRING_Int(&HLVLineBuf[0],3);
temp_LV = ConvertSTRING_Int(&HLVLineBuf[3],3);
printf("\n\rtemp_HV_CUT = %d", temp_HV);
printf("\n\rtemp_LV_CUT = %d", temp_LV);
Voltage_High = temp_HV;
Voltage_Low = temp_LV;
ptr = (unsigned char*)&Voltage_High;
Write_String_EEPROMx(2, ptr, EE_CUTOFF_HIGH); // write default high voltage cutoff value
ptr = (unsigned char*)&Voltage_Low ;
Write_String_EEPROMx(2, ptr, EE_CUTOFF_LOW); // write default low voltage cutoff value
Read_String_EEPROMx(2,ptr,EE_CUTOFF_HIGH);
printf("\n EE_HV_CUT = %s", ptr);
Read_String_EEPROMx(2,ptr,EE_CUTOFF_LOW);
printf("\n EE_LV_CUT = %s", ptr);