A device has a program upgrading capability. Upon start-up, a CPU checks if an
upgrading program is stored in an EEPROM, and, if stored, a main program is overwritten
with the upgrading program and then the main program is started. The program generates
a signal within a predetermined time after start-up, if the program runs properly.
If no such signal is detected within the predetermined time, the CPU overwrites
the upgrading program with a shipment state program which stored in the EEPROM.