
Chapter 2 THEOWOF OPERATION
At power up, the microprocessor conducts a number of Pump self-tests. Among these tests
are;a check ofthe watchdog circuit to ensurethat the functional program code is intact; test
of RAM for full functionality; test of the A/D converter by sensingthe voltage at PE3, pin 49
which ensuresthat the power supply iscorrect. If anyof the self-tests fail, the microprocessor
will halt and the audio alarm will sound continuously.
2.2.1.2 Custom Integrated Circuit
Thecustom IC U4performs severalfunctions. Itgeneratesthe System Reset,providesphysical
memory mapping, provides additional digitalI/O ports for the microprocessor and contains a
watchdog circuitthat will reset the microprocessorifthe software failsto continuallywrite to it
at a predetermined time interval.
System Reset (RESET/, pin 43) can be asserted by several different sources. At power on,
the charge time of Cl 0 through R20 providesa period of delaywhere the system is held in
reset through U4 pin 3, this allows the power supply voltage to stabilize before running the
MPU. PWR-ERR/ is a signal that will cause a System Reset to occur if the over/under
detector circuit senses that the power supply voltage is either above 6.OVor below 4.55V.
Resetwill alsobe asserted ifthe program cartridge is not installedor as previously described
ifawatchdog time-out occurs. RESET/ resetsthe microprocessor (disablingits output ports,
includingthe motor drivesignals), disablesthe motor through the SYSOKcircuit, deselects all
peripheral ICs and disables the custom ICs output ports as well. RESET/ also causes the
buzzerto sound continuously acting through U2 and CR2.
Physicalmemory mapping is based onthe address generated bythe microprocessor andthe
R/W signal. Additionally, READ/ and WRITE/ strobes are generated to operate the ROM,
RAM, and realtime clock.
The digital I/O ports on the custom IC pass digital signals to and from the microprocessor.
Most inputs are protected from static discharge by IOOKohm series resistors. INOO-03and
OUTOO-03are used to decode the front panel keypad in a matrix fashion. The mechanism
sensors EOS/, 5ML/, and OCCL (inputs IN1O-l2) are usedto trigger the End of Syringe, 5 mL
andOcclusion alarms respectively. IN13 is usedto detect closure ofthe patient switch andis
debouncedbyRAI 3cand C6 aswell as insoftware. OUT10 is usedto activate the sensor for
the door through Q4. OUT11 activates the displayand, via Q3 and inverter Tl ,the electrolu-
minescent backlighting. SYSOKCLK and OUT12 are part of the SYSOK circuit described
later inthis chapter. OUT20 and OUT21 activatethe front panel Attention and Power LEDs,
respectively.
Thewatchdog circuit is a safety feature designedto guard against lossof motor control inthe
eventthat software does not execute properly. It compares the 32 Hz clock provided by Ui 2
to a write of a specific address by the microprocessor. If the two events are not properly
synchronized,a system reset is generated.
2-4