
10
Circuit description
The circuit is based on the Motorolaone time programmable (OTP)
microcontroller MC68HC705C9ACFN (IC1) operating at aclock frequency
of1MHz.This processor contains 7Kbytes ofEPROM, 176 Bytes of
RAM, programmable output latches, and a serial peripheral interface (SPI).
The processor monitors pulses from the transducer, calculates the
spirometrymeasurements, and directlydrives the LCD displayaccording
to the position of the slide switch. The state ofthe batteryis also
monitored and awarning is displayed when necessary.Calibration
information is stored in a 256 bit serial EEPROM, IC5, and communicates
with the microcontroller via the SPI.
Reset
The reset circuit consists ofasingle chipreset (IC7) which holds the reset
line lowfor 350ms after the 5volt supplyhasreached the threshold
voltage of4.5 volts. The reset signalis then applied to the microprocessor
(IC1),
Power Supply
The unit is powered an alkaline 9volt PP3 battery(BAT1) and switched by
IC3 which is arranged in abi-stable configuration. When the unit is turned
on via the slide switch a momentarypulse appears on pin 1ofIC3 bythe
action ofR8, R9 and C10. This pulse toggles the bi-stable circuit so that
pin 11 ofIC3will go lowturning transistor TR4on and supplying 9volts to
the lowdrop out regulator (IC4). When the unit is turned off pin 13 ofIC3
is pulled lowreversing the bi-stable action and turning TR4off. If the unit
is lefton without use for 6minutes then pin 31 ofIC1 is driven high under
software control turning on TR5 which will turn the unit offvia the bi-stable
circuit.
Batterymonitoring
The terminal voltage ofthe batteryis monitored bythe action ofR4, R5,
R6, and TR2. The emitter of TR2 is held at 5 volts and the base voltage is
derived from the battery through the potential divider formed byR4 and
R5. When the batteryvoltage falls to approximately6volts, the voltage on
the base ofTR2 is 4.4 volts and the transistor turns on. The collector will
rise to about 4.6 voltsand this is monitored bythe processor on pin 13
(PB0) when the unit is switched on. When alowbatterycondition is
detected the processor signals to the user that the batteryis lowby
flashing the letters bat three times on the displayaccompanied byan
audible warning.