CAD CAM EDM DRO - Yahoo Group Archive

P-port 101 was Re: troubleshooting help

Posted by ballendo
on 2002-02-18 02:35:07 UTC
Rick,

The parallel port is actually THREE 8 bit "ports"; Data, Status, and
Control. The Data byte is at the "base" address, in your case, 888.
The Status byte is at base+1(only 5 bits are available to use); and
the Control byte(only 4 bits available*) is at base+2.

Out 888 is for the DATA byte of the "first" (lpt1) p-port. This is
connected to pins 2-9 on the db25 connector. The CONTROL port is at
890; it controls (pun intended<G>) pins 1,14,16,17. The status port
is at 889, and receives the inputs at pins 10,11,12,13,15.

Some of the bits on the status and control port are inverted, due to
the original implementation of the Centronics printer standard by IBM.

There are also two other base addressses commonly used for "printer"
p-ports on the IBM pc. Lpt2 at 278h, which is 632 decimal. And Lpt3
at 3BCh,which is 956 decimal. You can use the out command with either
Hex or decimal numbers.

Jan Axelsons P-port complete is a VERY good book on the subject. Read
about it, and the p-port, at:

http://www.lvr.com

Hope this helps.

Ballendo

P.S. This is a very short explanation of a much longer subject, with
details left out...

* The control byte has a 5th bit "available" to set up the p-port.
All references above are for the "standard" p-port, sometimes called
the SPP in your bios setup. The EPP and ECP are "updates" of the p-
port, with additional features, registers, and addresses.


--- In CAD_CAM_EDM_DRO@y..., "Rick Miller" <apollo@a...> wrote:
> Hello!
> I just finished wiring up my 3-axis controller, and I'm having
trouble <snip>
> I tried to send step signals "manually" by using the OUT 888, [x]
command from qbasic, without having any luck. I'm wondering if anyone
knows what parameters (if any) from the basic OUT command would send
a signal to either pin 1, 14, or 16; this would allow me to at least
test the relay for function.
>
> If there are any other simple ways to test the parallel port,
I'd like to know... also, if anyone has any other troubleshooting
suggestions, I'd appreciate them. I did put my voltmeter across the
pins on the parallel port while running a loop of the OUT command;
there was no difference on the meter, it stayed at +4.5VDC the whole
time; perhaps the signal pulse is too short for my digital voltmeter
to read properly?
>
> Thanks in advance for any suggestions,
> Rick
>
>
> [Non-text portions of this message have been removed]

Discussion Thread

Rick Miller 2002-02-17 19:27:45 UTC troubleshooting help aspaguy 2002-02-17 19:46:59 UTC Re: troubleshooting help Rick Miller 2002-02-17 20:37:26 UTC Re: [CAD_CAM_EDM_DRO] Re: troubleshooting help mariss92705 2002-02-17 20:51:47 UTC Re: troubleshooting help Rick Miller 2002-02-17 21:16:37 UTC Re: [CAD_CAM_EDM_DRO] Re: troubleshooting help Rick Miller 2002-02-17 21:28:03 UTC Re: [CAD_CAM_EDM_DRO] Re: troubleshooting help mariss92705 2002-02-17 21:29:42 UTC Re: troubleshooting help mariss92705 2002-02-17 21:58:58 UTC Re: troubleshooting help Rick Miller 2002-02-17 22:11:36 UTC Re: [CAD_CAM_EDM_DRO] Re: troubleshooting help ballendo 2002-02-18 02:35:07 UTC P-port 101 was Re: troubleshooting help Alan Marconett KM6VV 2002-02-18 12:49:56 UTC Re: [CAD_CAM_EDM_DRO] troubleshooting help Bob Bachman 2002-02-18 15:52:25 UTC Re: [CAD_CAM_EDM_DRO] troubleshooting help Carol & Jerry Jankura 2002-02-18 17:45:25 UTC RE: [CAD_CAM_EDM_DRO] troubleshooting help Carol & Jerry Jankura 2002-02-18 17:53:29 UTC RE: [CAD_CAM_EDM_DRO] troubleshooting help Alan Marconett KM6VV 2002-02-18 18:00:16 UTC Re: [CAD_CAM_EDM_DRO] troubleshooting help dkowalcz2000 2002-02-18 18:55:13 UTC Re: troubleshooting help Bob Bachman 2002-02-18 19:12:34 UTC RE: [CAD_CAM_EDM_DRO] troubleshooting help Jon Elson 2002-02-18 20:11:20 UTC Re: [CAD_CAM_EDM_DRO] troubleshooting help Rick Miller 2002-02-18 20:13:01 UTC Re: [CAD_CAM_EDM_DRO] Re: troubleshooting help Rick Miller 2002-02-18 21:14:00 UTC Re: [CAD_CAM_EDM_DRO] Re: troubleshooting help ballendo 2002-02-19 02:35:16 UTC more p-port 101 was Re: troubleshooting help ballendo 2002-02-19 04:01:49 UTC p-port alternative 8255PPI was Re: troubleshooting help ballendo 2002-02-19 04:39:13 UTC TTL 101 was Re: troubleshooting help Carol & Jerry Jankura 2002-02-19 05:44:14 UTC RE: [CAD_CAM_EDM_DRO] p-port alternative 8255PPI was Re: troubleshooting help ballendo 2002-02-19 06:32:49 UTC p-port alternative 8255PPI Robert Bachman 2002-02-19 06:57:42 UTC Re: [CAD_CAM_EDM_DRO] TTL 101 was Re: troubleshooting help David Goodfellow 2002-02-19 08:37:36 UTC Re: [CAD_CAM_EDM_DRO] p-port alternative 8255PPI was Re: troubleshooting help Carol & Jerry Jankura 2002-02-19 09:22:22 UTC RE: [CAD_CAM_EDM_DRO] p-port alternative 8255PPI Alan Marconett KM6VV 2002-02-19 10:48:53 UTC Re: [CAD_CAM_EDM_DRO] troubleshooting help Bill Vance 2002-02-19 11:04:12 UTC Re: [CAD_CAM_EDM_DRO] TTL 101 was Re: troubleshooting help Bob Bachman 2002-02-19 11:24:21 UTC Re: [CAD_CAM_EDM_DRO] TTL 101 was Re: troubleshooting help Paul 2002-02-19 12:00:37 UTC Re: [CAD_CAM_EDM_DRO] p-port alternative 8255PPI Alan Marconett KM6VV 2002-02-19 12:24:16 UTC Re: [CAD_CAM_EDM_DRO] TTL 101 was Re: troubleshooting help Alan Marconett KM6VV 2002-02-19 12:42:17 UTC Re: [CAD_CAM_EDM_DRO] p-port alternative 8255PPI wanliker@a... 2002-02-19 13:36:28 UTC Re: [CAD_CAM_EDM_DRO] TTL 101 was Re: troubleshooting help Vajk Fekete 2002-02-19 14:24:21 UTC Re: [CAD_CAM_EDM_DRO] p-port alternative 8255PPI Alan Marconett KM6VV 2002-02-19 16:06:28 UTC Re: [CAD_CAM_EDM_DRO] p-port alternative 8255PPI Ian W. Wright 2002-02-19 16:35:00 UTC Re: [CAD_CAM_EDM_DRO] TTL 101 was Re: troubleshooting help