Calibration: automatic of a-d convertor, store null and maximum in eeprom