comp.lang.ada
 help / color / mirror / Atom feed
From: Philippe BOURZEIX <bourzeix@shom.fr>
To: Jerry van Dijk <jvandyk@attglobal.net>
Subject: Re: Parallel port
Date: 2000/03/06
Date: 2000-03-06T09:50:38+00:00	[thread overview]
Message-ID: <38C37F6D.A52CB4B7@shom.fr> (raw)
In-Reply-To: 38c28137_2@news2.prserv.net

Jerry van Dijk wrote:

> > I would like to access to my parallel port.
> > To read and write in the register 16#378, 16#379, 16#37A
>
> That would depend on which OS you are using...

My program run on Windows.

For the data is someone have an idea ?

Something like this is correct :

type byte is new short_short_integer;
for byte'size use 8:        --8 bits
Reg_1 ,Reg_2,Reg_3 : byte;
for Reg_1'address use To_Address(16#378#);
for Reg_1'address use To_Address(16#379#);
for Reg_1'address use To_Address(16#37A#);


The purpose of  all my question is to be able to use a lcd screen (2
lines, 40 caracters) connected on the lpt port.

The connection is like this :

        LPT                LCD
STROBE           1        ->        6
D0                       2        ->        7
D1                       3        ->        8
D2                       4        ->        9
D3                       5        ->        10
D4                       6        ->        11
D5                       7        ->        12
D6                       8        ->        13
D7                        9        ->        14
                            10
                            11
                            12
                            13
                            14
                            15
INIT                  16        ->        5
SELECT IN    17        ->        4
                             18
                             19
                             20
                             21
                             22
                             23
                             24
                             25





  reply	other threads:[~2000-03-06  0:00 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-03-05  0:00 Parallel port Philippe Bourzeix
2000-03-05  0:00 ` Tarjei Tj�stheim Jensen
2000-03-05  0:00 ` Jerry van Dijk
2000-03-06  0:00   ` Philippe BOURZEIX [this message]
2000-03-06  0:00     ` Philippe Bourzeix
2000-03-06  0:00     ` Ted Dennison
2000-03-06  0:00       ` Gisle S�lensminde
2000-03-06  0:00         ` Ted Dennison
2000-03-06  0:00         ` Philippe Bourzeix
2000-03-08  0:00           ` Gisle S�lensminde
2000-03-06  0:00       ` tmoran
2000-03-06  0:00         ` Philippe Bourzeix
2000-03-07  0:00           ` tmoran
  -- strict thread matches above, loose matches on Subject: below --
2000-03-19  0:00 Parallel Port Philippe Bourzeix
2000-03-19  0:00 ` Ed Falis
2000-03-20  0:00   ` Philippe BOURZEIX
2000-03-20  0:00     ` Gautier
2000-03-20  0:00       ` Jerry van Dijk
2000-03-20  0:00         ` Gautier
2000-03-19  0:00 ` Dale Stanbrough
2000-03-20  0:00   ` Philippe BOURZEIX
2000-03-21  0:00 ` Philippe BOURZEIX
2000-03-21  0:00   ` tmoran
2001-01-17  9:18 PARALLEL PORT Szymar
replies disabled

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