
void Memory_Restore (void){
uchar x;
Odo_Count[0] = 0;
Odo_Decimal[0] = 0;
I2C_Bus_Speed[0] = 0; //Set I2C to 100Khz for SAA1064 limits

//External EEPROM Main Odo
transmit_bytes[0] = 0x00; //High address
transmit_bytes[1] = 0x00; //Low address
MAX_NUMBYTE_TX[0] = 1; //Send 2 Bytes of data (N+1)
Send_I2C_Data(0x50);  //Transmit EEPROM address to read from A12 - A0
MAX_NUMBYTE_RX[0] = 3; //Number of bytes to receive (N+1)
Receive_I2C_Data(0x51);
for (x = 3 ;x != 0xFF; x--){ //Restore Main Odo Value
Odo_Count[0] = Odo_Count[0] |= receive_bytes[x];
if (x!=0)Odo_Count[0] = Odo_Count[0] << 8;} //32 bit (4 Bytes) 
}											//data move LONG byte 0-3
