delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/11/09/02:45:27

From: "Jean-Pierre GHYS" <ghys AT terre DOT inrets DOT fr>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Port Programming with djgpp
Date: Thu, 9 Nov 2000 08:50:51 +0100
Organization: I.N.R.E.T.S.
Lines: 24
Message-ID: <8udkfv$f2q$1@orion.inrets.fr>
References: <8ub426$5p5$1 AT venus DOT telepac DOT pt>
NNTP-Posting-Host: pc-ghys.inrets.fr
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2014.211
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

hi  there is somme exemple of use of the parallele Port with inport ant
outport ;it work whel

#define PORTA     0x378   // 0x378 = LPT1   output 8 bits
#define PORTB     0x379   // inputs  4 bits ! some are reverse
#define PORTC       0x37a // port configuration


    outp(PORTA,0x1f);             // I   etat de depart sclk0_cs1();
    outp(PORTA,0x0f);             // I   debut de conversionsclk0_cs0();
    do
      {
        acq = (inp(PORTB) & MASQUE_DATA); // test fin acquisition
      }
    while( acq != 0x10 );
for serial condition see ? biosSerial input in libc help


--
73 QRO from F1FPC

ghys jean_pierre


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019