
Interfacing PIC Microcontrollers
274
stored in EEPROM when the button is released. This figure should be recalled
during program initialisation.
The program outline is shown in Figure 11.9.
Other MCU Families
The PIC is our default choice of MCU type here, but if a given application de-
mands it, the whole range of available devices from all manufacturers must be
COLD1
Refrigeration controller:
Averages input from four temperature sensors
checks for faulty sensor, averages and switches
a relay output to the compressor
Initialise
Analogue inputs (5)
4 channels + Vref
Digital Inputs (2)
Up, Down
Digital Outputs (8)
Compressor
Display (4)
Power, Alarm LEDs