Re: Reading individual pins from the parallel port
- From: "Lau Lei Cheong" <leu_lc@xxxxxxxxxxxx>
- Date: Fri, 23 Sep 2005 18:45:55 +0800
If you've tried Googling you should know only 10 lines have meaning (i.e.
connected) for parallel port, namely:
1 PG protective ground
2 TD transmit data
3 RD receive data
4 RTS request to send
5 CTS clear to send
6 DSR data set ready
8 CD carrier detect
7 GND signal ground
20 DTR data terminal ready
22 RI ring indicator
But for the purpose of programming, the 2 ground lines can be taken away, so
it leaves 8 remaining.
Having done a quick search through my avaliable API list (from help file of
Windows platform SDK) yields no result on reading these individual pins,
through...
"aaa" <aaa@xxxxxxxxxxxxxxxxxxxxxxxxx> ¼¶¼g©ó¶l¥ó·s»D:EC6A6385-F3B0-4005-A3A8-CC722F79EA1A@xxxxxxxxxxxxxxxx
>
>
> "Ulrich Eckhardt" wrote:
>
>> aaa wrote:
>> > I wonder if it is possible, using Visual C++ on Windows 2000/XP, to
>> > read
>> > high/low values from individual pins on the parallel port (LPT). The
>> > idea
>> > is to only use one of the pins to indicate that one event has happened
>> > and
>> > to be able to read this pin to decide if the event has occurred. I can
>> > only use the LPT port.
>>
>> I think you can only read 8 lines at once, but I think that will be okay
>> for
>> you. How to do that, I'd google for 'parallel port programming' and look
>> around there, something you should have done anyway before posting
>> here...
>>
>> Uli
>>
>
> What do you mean by 8 lines? What is a line? I have googled, believe me,
> quite rude to assume I haven't...
.
- Follow-Ups:
- Re: Reading individual pins from the parallel port
- From: Ulrich Eckhardt
- Re: Reading individual pins from the parallel port
- References:
- Re: Reading individual pins from the parallel port
- From: Ulrich Eckhardt
- Re: Reading individual pins from the parallel port
- Prev by Date: pipe buffering
- Next by Date: Re: Reading individual pins from the parallel port
- Previous by thread: Re: Reading individual pins from the parallel port
- Next by thread: Re: Reading individual pins from the parallel port
- Index(es):
Relevant Pages
|