Re: Reading individual pins from the parallel port

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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...


.



Relevant Pages

  • Re: USB to Parallel port
    ... What happens to the extra signals on the 16 dead pins? ... good idea (the connectors aren't really suited to SCSI speeds). ... than even the most advanced parallel port, ...
    (comp.arch.embedded)
  • Re: send more than 8 bits with parallel port
    ... I know that parallel port was designed with a standard for printers, ... So i need 4 more pins from something. ... with two 74HCT595 serial-to-parallel shift registers. ... time requirements for real time motion control. ...
    (sci.electronics.basics)
  • Re: Best FOSS alternative for skype?
    ... In fact, even the parallel port in the Amiga is non-standard, although ... it is a DB25. ... It were the extra pins that different. ... Then there's the connectors that are wired up to highly static-sensitive ...
    (Fedora)
  • Re: Device::ParallelPort input and output
    ... Googling for "parallel port reading" will give some circuits and code ... The perldoc states that you get status pins with get_status ... select(undef, undef, undef, 0.05); #delay ... You might want to try different bios settings, ...
    (comp.lang.perl.misc)
  • High performance timers/threads
    ... I'm trying to work with some embedded hardware through the parallel port. ... cpu on the thread and its overkill). ... If I sleep for 1ms in my thread the speed jumps all the way down to ... representing some pins on the port to memory and then using the main app to ...
    (microsoft.public.dotnet.csharp.general)