May I read data from pins "D0-D7" ?

My x64 port of InpOut32
Post Reply
tikhonov66
New User
Posts: 1
Joined: Thu Sep 17, 2015 11:50 am

May I read data from pins "D0-D7" ?

Post by tikhonov66 » Thu Sep 17, 2015 11:53 am

May I read data (electric states) from LPT-pins "D0-D7" by InpOut32(x64) ?
.
I use the PCI-LPT with the base adress (D-register) 0xD010.
(I install in my "Win-7 PC" - pci-board "Espada FG-EMT03A-1-BU01" with base chip "MCS9901CV-CC")
.
In "standard LPT-mode" InpOut32(x64) works OK!!
With all three ports of one:
PORT_D 0xD010
PORT_S 0xD011
PORT_C 0XD012
.
.
But I would to read electric state of LPT (DB25) pins 2-9 - i.e. LPT "D0-D7".
.
.
If I try the command
gfpOut32((short)0xD010, foo);
it works - OK!!
- And LEDs on my LED-board say about it...
.
If then I try to read real electrical state of LPT pins - by command
WORD wData = gfpInp32((short) 0xD010);
it returns the same "foo"-result always - without any impacts
of the real electric state of LPT (DB25) pins 2-9.
I.e. the electrical state of "D0-D7" pins does not read by command "gfpInp32((short) 0xD010)" at all.
.
If I try EPP-style "data read":
WORD wData = gfpInp32((short) 0xD010+4);
I obtaines 0x00 result constantly.
.
.
May I make thomething else to read electrical state of LPT (DB25) pins 2-9 - i.e. LPT "D0-D7"?
- Or it is impossible with my hardware?
:(
.
Thanks a lot...

User avatar
phil
Site Admin
Posts: 5158
Joined: Sun Apr 06, 2003 11:12 pm

Re: May I read data from pins "D0-D7" ?

Post by phil » Fri Sep 18, 2015 12:32 am

Sorry, its been about 20 years since I last read/wrote to the parallel port (back in the days of DOS!). I remember that I had to put the port into a different mode (maybe EPP) in order to access the D0-D7 pins but I cant for the life of me remember how I did that (BIOS option seems to ring a bell) but its all changed these days.

I'm afraid, I only ported InpOut32 to windows 64 so I'm no expert. Is there nothing useful on the Logix4u.net (the authors) website?

Thanks,
Phil
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9, Logitech MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, Intel i5-6600k, Asus 170-A, 16GB DDR4,
nVidia GeForce GTX 970, 2xEvo 850 (RAID 0), 2x2TB WD Black (RAID1)

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests