Chromatographic integrator for the TRS-80 - ACS Publications

Chromatographic integrator for the TRS-80. James K. Hardy. J. Chem. Educ. , 1985, 62 (1), p 62. DOI: 10.1021/ed062p62.2. Publication Date: January 198...
0 downloads 0 Views 6MB Size
computer mrie~. 57

edited by

MOORE Eastern Michigan University, Yprilanti, MI 48197 JOHN W.

Bits and Pieces 22 Most authors of Bits and Pieces will make available listings and/or machine-readable versions of their programs. Please read each description carefully to determine compatibility with your own computing environment before requesting materials from any of the authors. Revised Guidelines for Authors of Bits and Pieces appeared in the December 1982 and December 1983 issues of the JOURNAL. Several programs described in this article and marked as such are available from Project SERAPHIM. If you do not already have a SERAPHIM Catalog, request one from: Dr. John W. Moore, Director, Project SERAPHIM, Department of Chemistry, Eastern Michigan University, Ypsilanti, MI 48197.

Interfacing the Commodore VIC-20 Using Joystick Game Ports Harvey F. Blanck Austin Peay State University Clarksville, TN 37044 In a recent article Hughes ( 1 ) briefly described interfacing using a TRS-80 joystick port which digitizes voltages using a six-hit analog to digital converter. While the Commodore VIC-20 game port does employ analog-to-digital conversion for paddle x and y inputs, the five joystick lines are ordinary hinary inputloutput lines connected internally to 6522 interface adapters. These 110 lines may be used in much the same way as the 110 lines available a t the Commodore 64, VIC-20 and PET Parallel User Ports. Since all User Ports have at least eight 110 lines, interfacing is often relatively easily accomolished (2. 3). Althoueh the User Port is the port of choice; the joy&k'lines proGide additional 110 capability if the User Port is alreadv in use. (The memorvex~ansion port . can also be used if needed.) As an example of interfacing using the VIC-20's joystick game port, an interface of an NLS PM-4501 4ll~digitpanel meter (DPM), which has four output lines for binary-coded decimal (BCD) representation of a digitized voltage and five lines to indicate which digit is being represented, will he described. Since the joystick port bas only five 110 lines, the BCD data and the digit indicator data cannot he read simultaneously. The digit indicator lines are used to enable chips to store the BCD data. Latched BCD data is then sent to the computer serially by connecting latch outputs to a 74150 multiplexer which has 16 input lines and one output line which is connected to a joystick line. The multiplexer output is selected by a 7493 counter which is controlled by two joystick lines. One ~ ~ - line ~ resets the counter. and the other line advances it. The remaining two joystick lines are used for the most simificant dieit which is either 0 or 1.and for the sim. A more complete description of t his ~nterlaceincluding circuit drsign and H samole VIC-20 Droernm is available from thr nuthnr. The techiques emdloyed can certainly he used to interface ~

,.

-

' Non-linear Systems, Solana Beach, CA 92075 Analog Devices. Norhood. MA 02062.

62

.lournal of Chemical Education

other devices. For example an analog-to-digital converter such as Analoa Devices AD574=12-bit ADIC can be controlled and read u s i G a 74150 and 7493 and four of the joystick lines (two to the counter, one to the converter. and one for data inout from the multiplexer). There are at ieast two problems with using these or similar interfaces. Leaving a joystick line unconnected may cause erratic behavior of the counter. Another prohlem is that the VIC-20 uses one of the joystick lines to read the keyboard. Use of this line may disable a portion of the keyboard. To regain control of the keyboard, the interface must be disconnected from the port if a "RUNISTOP-RESTORE" command is used, or a tristate buffer chiu under program control may be used to disconnect that p&ticular joystick line after using the interface. With some modification the techniques used for the VIC-20 could very likely be used to interface Commodore 64 and Atari microcomputers through their joystick ports. Use of Atari game ports would probably only involve changing the software since Atari microcomputers use 6520 interface adapters. The Commodore 64 uses all five joystick lines of both ports to read the keyboard and uses a 6526 interface adanter that is similar to the 6522. A grant from the Tower Club of Clarksville was useful and is appreciated.

Chromatographic Integrator forthe TRSIO James K. Hardy The University of Akron Akron, OH 44325 While eas chromatoarauhv is commonlv used in the teaching laboratory, one-ofthe most important instruments for data collection and intermetation, the electronic integrator, is not. Quite commoniy, the cost of this unit can be ~rohihitive.Even if an inteerator is available, its use mav not he desirable 3s the student [earns little ahout how it interprets data. A system has been developed that allows the student to see an integrator collecr and evaluate 93s chromatographic darn. It has I x m desipned ~ r i n c.i ~ a. lfor l v use in iuniorlsenior nnaly~icnlchwnistry Iat~oratories. The system cdlrcts dam using a data nquisition unit (IMU I) which consists of an R-bit annlng-twdigital converter that is designed to rransfer data to the computer via the HS-2:DC interfare.'l'hisallows for the useofrhe I)AU I with anvromputer equipped with this standard interface. Sampling rates of from 0.1 to 1000 samples/s and input ranges of from 0 to 0.01, 0.1, 1, and 10 V are possible. The integrator program, INTEGRAT. (written in BASIC) makes use of the ROM subroutines of the TRS-80 Model 111 for communication with the RS-232C and subsequently with the DAU I. ~

~~~

~~~~~

~~~~~

~

~.

Standardization The program initializes the DAU I, sets a sampling rate of 1s-' and reads the signal from the GC for 30 s. The variation of the baseline is then used as the minimum response for peak recoanition. The student is then asked for the analvsis time andinstructed to inject his sample. The data andtime are

displayed during the analysis. At the end of the time period, the comouter searches for oeaks. Durine the search. a second line is drawn, tracing any peaks founi. After anhysis, the student is prompted with the retention times and areas for each peak and asked how many components are in the standard. The concentration and name of each comoonent is then assigned by peak number. Analysis of the Unknown

The student is then told to inject his unknown (same volume). Sampling and data analysis occurs as before. If a retention time agrees within f 5%of a standard, i t is codsidered the same component. l'he retention time, area, conrentrarion, and names of each component identified arc then printed out. The option of runningmother sample is then gi;en. While the DAU I does not have the range of a commercial unit, the results ohtained are satisfactory for the teaching laboratory. Thirty replicate analyses were conducted where the integrating system and a Hewlett-Packard 3390A integrator were run in parallel. The results ohtained with the inteeration svstem aereed within f 0.4% of the 3390A for each component in a three-component mixture. It should also he noted that sufficient versatilitv has been desiened into the DAU I to allow for its use with any instrument when data collection is desired. This program is written in BASIC for a TRS-80 Model I11 equipped with an RS-232C communication board. With instructions and comment lines, the program requires 10K for execution. Documentation, including. a program disk, sample . .. execution. comnlenrs, as well 3s the schematics and operation manual ior the 1)AU 1 interface are avuihhle for $5.00 from Project SERAPHIM.

/

SIDE ViEW O F E X P A N S I O N CONNECTOR

PIN NO

I 2 3 4

I

SiGNALPINNO.SIGNALPIN NO.SIGNAL -12V 12V T NMI

5 6

REsET

7

Q

8 9 10 I I 12 13

E

5V 00

Dl 02 03

14 15 16 17 18 19 20 21 22 23 24 25 26

04

D5 06 07

RIW A 0 A I A2 A 3 A A A A

4 5 6 7

27 A8 28 A 9 29 A10 30 Ail 31 A12 32 C3 3334 G N D 35 $3 36 CS 37 A13 38 A14

-

39 A15 4 0 SLENB

Figure 1. Bus connector signal assignments. TRS-80 Color Computer.

PlA

6821

Upgrading the Input and Output Capabilities of the TRSdO Color Computer Elvin Hughes, Jr., and A. J. Cox, Jr.

Southeastern Louisiana University Hamrnond. LA 70402 The TRS-80 Color Computer has limited inputloutput capabilities. We describe the hardware needed to install a parallel inputloutput port and a program for communicating via the port. This allows one to connect an analog-to-digital converter to the microcomputer and can (with appropriate buffers and optoisolators) control such devices as water baths and motors. Thr Motorola 6821 peripheral interface adapter (PIAJ was used.The user can propram the I'IA for variouscombinations of input or outpu