A microprocessor-(Heath ET-3400) based backup control system for laboratory experiments

2
Behavior Research Methods & Instrumentation 1979, Vol. 11 (2),314-315 A microprocessor- (Heath ET-3400) based backup control system for laboratory experiments W. LLOYD MILLIGAN and ANTHONY RICHARDSON NeuroscienceLaboratory, Veteran'sAdministration Hospital, Columbia, South Carolina 29201 This paper describes a psychology laboratory experimental control system that utilizes a PDP-UI10 minicomputer to perform both instrument control and data acquisition functions. The minicomputer is backed up by a Heath ET-3400 microprocessor trainer system which performs control functions only. Major components of the hardware and software comprising this system are described. Psychophysiological experiments in the Neuroscience Laboratory, Veteran's Administration Hospital, Columbia, South Carolina, are automated by a Digital Equipment Corporation PDP-I1/10 minicomputer with an LPS-ll lab peripheral system. The computer per- forms both control and data acquisition functions, using the LPS-ll digital input/output (I/O) registers, eight- channel multiplexor, and analog/digital (A/D) converter. Data sensed from laboratory instruments are stored in memory or on scratch disk files until the end of a test session (typically about 90 min), when they are analyzed by a background program. Upon completing the analysis, the program writes session parameters (classification variable values and dependent variable means) to perma- nent data files. Development of this system has evolved continuously since acquisition of the PDP-ll in November 1975. At first, the minicomputer was used for control functions only, and these were shared by external hardwired logic circuits (BRS Digibits). The external logic also served as a backup system whenever the PDP-II failed. With implementation of computer control, and later auto- matic data acquisition, the complexity of experiments increased. The relative ease with which parameters could be varied in software enticed us to make modifications that were not readily duplicated in the hardwired back- up system. Moreover, with increasing disuse and hybridi- zation, the reliability of the backup system suffered. It eventually became apparent that a more dependable backup system was needed. Renovation of procedure control rooms in the spring of 1978 provided a favor- able opportunity to replace this system with a microprocessor-based system. Two important considerations influenced the overall design of the backup control system. First, it was evident that the system should be microprocessor based, in order to preserve the flexibility of varying experi- mental parameters in software. A second consideration was the requirement that both systems be capable of controlling the same external laboratory (stimulus and response) instruments, that is, those used in experi- mental procedures. The problem of controlling identical lab instruments by two different computer systems was solved by designing "front ends" for each instru- ment. Thus, we designed a polygraph controller, shock stimulator controller, tone generator/amplifier controller, and set switch (Milligan, 1977) controller. The front ends each presented a single standard TTL load per signal line to the controlling device. One other device was needed to distribute the signal lines. This card, the distribution module, performs minimal logic functions in conveying computer or microprocessor outputs to the instrument controllers. The choice of microprocessor was influenced by a third consideration. It was felt that the Heathkit ET- 3400 (Motorola M6800) trainer would serve the dual purpose of teaching the principles of microprocessor control systems and providing the central component of the backup system. In retrospect, we are satisfied with this choice, as many examples and exercises in the Heath training course are directly applicable to the psy- chology laboratory situation. Subsequent experience with the Commodore PET 2001 microcomputer suggests that it also would serve well as a psychology laboratory control computer. The PET has an IEEE bus interface and a general-purpose user port which consists of the B side of a 6520 peripheral interface adapter (PIA). The PET would be a more suitable choice for the user who wishes to program his application in an advanced lan- guage with a minimum of hardware and software de- velopment costs. Figure 1 shows the arrangement of components in our laboratory. All components to the right of, and including, the distribution module are common to both the PDP-II and ET-3400 control systems, with the exception of the dashed line at the top. This line repre- sents eight channels of analog data from the polygraph to the PDP·ll. Inputs to the distribution module are conveyed via a 25-conductor ribbon cable that plugs directly into the 314

Transcript of A microprocessor-(Heath ET-3400) based backup control system for laboratory experiments

Behavior Research Methods & Instrumentation1979, Vol. 11 (2),314-315

A microprocessor- (HeathET-3400) basedbackup control system for

laboratory experiments

W. LLOYD MILLIGAN and ANTHONY RICHARDSONNeuroscienceLaboratory, Veteran'sAdministration Hospital, Columbia, South Carolina 29201

This paper describes a psychology laboratory experimental control system that utilizes aPDP-UI10 minicomputer to perform both instrument control and data acquisition functions.The minicomputer is backed up by a Heath ET-3400 microprocessor trainer system whichperforms control functions only. Major components of the hardware and software comprisingthis system are described.

Psychophysiological experiments in the NeuroscienceLaboratory, Veteran's Administration Hospital,Columbia, South Carolina, are automated by a DigitalEquipment Corporation PDP-I 1/10 minicomputer withan LPS-ll lab peripheral system. The computer per­forms both control and data acquisition functions, usingthe LPS-ll digital input/output (I/O) registers, eight­channel multiplexor, and analog/digital (A/D) converter.Data sensed from laboratory instruments are stored inmemory or on scratch disk files until the end of a testsession (typically about 90 min), when they are analyzedby a background program. Upon completing the analysis,the program writes session parameters (classificationvariable values and dependent variable means) to perma­nent data files.

Development of this system has evolved continuouslysince acquisition of the PDP-ll in November 1975. Atfirst, the minicomputer was used for control functionsonly, and these were shared by external hardwired logiccircuits (BRS Digibits). The external logic also servedas a backup system whenever the PDP-II failed. Withimplementation of computer control, and later auto­matic data acquisition, the complexity of experimentsincreased. The relative ease with which parameters couldbe varied in software enticed us to make modificationsthat were not readily duplicated in the hardwired back­up system. Moreover, with increasing disuse and hybridi­zation, the reliability of the backup system suffered. Iteventually became apparent that a more dependablebackup system was needed. Renovation of procedurecontrol rooms in the spring of 1978 provided a favor­able opportunity to replace this system with amicroprocessor-based system.

Two important considerations influenced the overalldesign of the backup control system. First, it wasevident that the system should be microprocessor based,in order to preserve the flexibility of varying experi­mental parameters in software. A second considerationwas the requirement that both systems be capable ofcontrolling the same external laboratory (stimulus and

response) instruments, that is, those used in experi­mental procedures. The problem of controlling identicallab instruments by two different computer systemswas solved by designing "front ends" for each instru­ment. Thus, we designed a polygraph controller, shockstimulator controller, tone generator/amplifier controller,and set switch (Milligan, 1977) controller. The frontends each presented a single standard TTL load persignal line to the controlling device. One other devicewas needed to distribute the signal lines. This card, thedistribution module, performs minimal logic functionsin conveying computer or microprocessor outputs to theinstrument controllers.

The choice of microprocessor was influenced by athird consideration. It was felt that the Heathkit ET­3400 (Motorola M6800) trainer would serve the dualpurpose of teaching the principles of microprocessorcontrol systems and providing the central componentof the backup system. In retrospect, we are satisfiedwith this choice, as many examples and exercises in theHeath training course are directly applicable to the psy­chology laboratory situation. Subsequent experiencewith the Commodore PET 2001 microcomputer suggeststhat it also would serve well as a psychology laboratorycontrol computer. The PET has an IEEE bus interfaceand a general-purpose user port which consists of the Bside of a 6520 peripheral interface adapter (PIA). ThePET would be a more suitable choice for the user whowishes to program his application in an advanced lan­guage with a minimum of hardware and software de­velopment costs.

Figure 1 shows the arrangement of components inour laboratory. All components to the right of, andincluding, the distribution module are common to boththe PDP-II and ET-3400 control systems, with theexception of the dashed line at the top. This line repre­sents eight channels of analog data from the polygraphto the PDP·ll.

Inputs to the distribution module are conveyed viaa 25-conductor ribbon cable that plugs directly into the

314

MICROPROCESSOR BACKUP SYSTEM 315

REFERENCE

the DR-A. For example, Bit 0 of the low-order byterepresents the "trial interval," Bit 1 is CS on, Bit 2 istest-trial select, and so forth. All definitions are "lowenable"; the final output stage of the DR-A is an open­collector buffer (7416) normally pulled high. Intervaltiming is accomplished identically by both systems. Inthe PDP-ll, the system time-of-day (60-Hz) clock isinvoked by a .TWAIT macro; in the ET-3400, a 60-Hzinterrupt clock is included in the control program. Thesequence of time intervals is embedded in a set of nestedcounters: SETS C 8-TRIAL BLOCK C 8-BWCKSESSION. A minor disadvantage of the microprocessorsystem is that the control program and experimentalconstants (time intervals, counters, etc.) must be keyedin manually. Since it is primarily an emergency backupsystem, this drawback can be tolerated.

Figure 2 shows the interface circuitry that connectsthe ET·3400 system to the distribution module. All ofthe bus connections (address, data, and control lines)on the ET-3400 are fully buffered.

The distribution module and each controller isconstructed on a separate prototyping PC board, and allboards are contained within a single shielded enclosure(BUD AC1428). Control signals are conveyed from thedistribution module to the controller cards via double­ended DIP jumpers that plug into l4-pin sockets on eachboard. Outputs to the instruments leave the cards atthe foil-edge connectors.

A typical control program for executing one of theexperiments performs all the control functions of atwo-tone autonomic conditioning experiment for fouranimals simultaneously. The analogous control and dataacquisition program for the PDP-ll is approximately4K bytes long. In the ET-3400 backup system thecontrol part alone is approximately 300 bytes long.

In summary, the microprocessor-based system wehave described is an economical and reliable backup forthe control functions of the laboratory minicomputer.In addition, a level of flexibility is attained that wouldbe difficult to duplicate with hardwired logic. Thesystem, as described, retains the possibility of futuremodification and expansion to accommodate experi­ments of increasing complexity.

MILLIGAN, W. L. Electromechanical switching of preamplifierinput leads: A method of increasing the usefulness of electro­physiologicalrecording instruments. Psychophysiology, 1977, 14,507·508.

+IV

AS

AllAI

14LSI1

A,S

"""7400

A'4AI3

All14LS27

IU"IIIID DUTI'UTS

1111lJIIJlllll0'1141111011'1'114 •• '1

~ - - - - - - - - srSTEM:"lfMAIN'- ;; Al:!"1-~G_D~T~ ,

I POP _ 11/10 I I .-A"-'--,: LPS-ll ~U~T'!'p,=-E~O~_::I OR - II" II II COMPUTER I\ II Il J

LPS-ll DR-A l o-bit output register or into an identical25-pin socket (Cinch DB25S) wired to the 6821 periph­eral interface adapter (PIA) outputs. We substituted thenewer and less expensive 6821 for the 6820 PIA fur­nished with the Heath training course. The 6821 is aprogrammable device, and in the present application all16 I/O lines are initialized for output. Software for theET-3400 is designed so that there is a 1: 1 cor­respondence of defmition between individual 6821output lines (i.e., bits) and the same numbered lines of

Figure 2.

r - - - - - - - -SYSTEM--Z (SACK uiilI II I

I ET-3400 \I II MICROPROCESSOR >-§ II P f A II C" R 0 I

I (M6800) II II IL ~

Me 6821

Figure 1. Arrangement of components in NeuroscienceLaboratory, Veteran's Administration Hospital, Columbia,South Carolina.