comp.lang.ada
 help / color / mirror / Atom feed
From: griest-tom@cs.yale.edu (Tom Griest)
Subject: Re: Communicate with Serial Or Parallel Port with ADA!
Date: 1996/03/21
Date: 1996-03-21T00:00:00+00:00	[thread overview]
Message-ID: <4isqprINN35b@RA.DEPT.CS.YALE.EDU> (raw)
In-Reply-To: Pine.SOL.3.91.960320215821.27749A-100000@titan

"Md. Mohsin Ali" <mohsin@titan.fullerton.edu> 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




      parent reply	other threads:[~1996-03-21  0:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-03-20  0:00 Communicate with Serial Or Parallel Port with ADA! Md. Mohsin Ali
1996-03-21  0:00 ` Ted Dennison
1996-03-21  0:00 ` Tom Griest [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox