From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a0a19d245524c92f X-Google-Attributes: gid103376,public From: griest-tom@cs.yale.edu (Tom Griest) Subject: Re: Communicate with Serial Or Parallel Port with ADA! Date: 1996/03/21 Message-ID: <4isqprINN35b@RA.DEPT.CS.YALE.EDU>#1/1 X-Deja-AN: 143616195 references: organization: Yale University Computer Science Dept., New Haven, CT 06520-2158 newsgroups: comp.lang.ada Date: 1996-03-21T00:00:00+00:00 List-Id: "Md. Mohsin Ali" writes: > I need some help about how to communicate with serial and/or parallel > port using ADA. Reference to any book or sources would be very helpful. > > If anybody knows the code as an example would be great. External device > could be anything, tape drive, a thermometer reading the temperature ... > Your flexibility makes it a little difficult to help you. If you provide more detail, it might be easier to get the answer you want. For example: 1) what is the application (this will help decide if you should use a parallel or serial port) 2) what platform (hardware/software) are you running on? 3) do you require interrupts, or can you poll for input? 4) which do you prefer, an Ada83 or Ada95 solution? We have some sample code that uses a PC serial port, but it is interrupt driven, and specific to a particular mouse, and has some rocket-launch interlock code built in that makes it less than general purpose. If all you want is something to write to a bare-PC parallel port, that is basically one or two lines of code. -Tom