ST routine with built-in EEPROM