Searching \ for '[OT] Help needed on parallel port' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: techref.massmind.org/techref/ios.htm?key=port
Search entire site for: 'Help needed on parallel port'.

Exact match. Not showing close matches.
PICList Thread
'[OT] Help needed on parallel port'
1998\09\03@095756 by Ken Johnson

flavicon
face
Hi, I have been trying to drive my pcb drilling machine using the parallel
port of a toshiba T1100 (old, but cheap) and have run out of ideas so I
thought I would tap the vast knowledge and experience of the people on the
list. I'ts not that OT really, I will be using a pic to monitor the limit
switches once I have sorted this problem out.
I am using 2 bits of the port to drive each of the two motors, but no
matter which way I talk to the port (lpt1) it doesn't work. I have tried
OUT, LPRINT, and the print character service (INT17, service 0)- all work
ok on my pentium but not on the T1100. If I hook up my printer to the
T1100, I can print ok so the port is working. A test program reports the
lpt port as H378 (lpt1), but just in case I tried lpt2 +3- still no good.

Any thoughts, ideas, etc gratefully received. If anyone has the pin-out of
the moden connector inside the machine I would appreciate a copy of it, I
may be able to use it for an adapter board and dispense with the parallel
port altogether.

Thanks, Ken.

1998\09\03@105430 by Frank A. Vorstenbosch

flavicon
face
Ken Johnson wrote:
>
> Hi, I have been trying to drive my pcb drilling machine using the parallel
> port of a toshiba T1100 (old, but cheap) and have run out of ideas so I
> thought I would tap the vast knowledge and experience of the people on the
> list. I'ts not that OT really, I will be using a pic to monitor the limit
> switches once I have sorted this problem out.
> I am using 2 bits of the port to drive each of the two motors, but no
> matter which way I talk to the port (lpt1) it doesn't work. I have tried
> OUT, LPRINT, and the print character service (INT17, service 0)- all work
> ok on my pentium but not on the T1100. If I hook up my printer to the
> T1100, I can print ok so the port is working. A test program reports the
> lpt port as H378 (lpt1), but just in case I tried lpt2 +3- still no good.

Maybe the parallel port on the T1100 is not a standard one, and it is
only pretending to have it at 0x378.  The easiest solution is probably
to have the circuitry external to the PC generate an ACK pulse for every
strobe that it receives, thereby emulating a real printer.  It might be
enough just to connect the /strobe to /ack.  When wired like this, all
you need is a program that sends data to the parallel port through
normal means, i.e. DOS file handle 4 or INT 0x17.

Frank
------------------------------------------------------------------------
Frank A. Vorstenbosch     <SPAM_ACCEPT="NONE">    Phone: 0181 - 636 3000
Electronics and Software Engineer                 Mobile: 0976 - 430 569
Eidos Technologies Ltd., Wimbledon, London        Email: spam_OUTfavTakeThisOuTspameidos.co.uk

1998\09\03@110240 by Craig Lee

flavicon
face
-----Original Message-----
From: Ken Johnson <.....vk7krjKILLspamspam@spam@SOUTHCOM.COM.AU>
To: PICLISTspamKILLspamMITVMA.MIT.EDU <.....PICLISTKILLspamspam.....MITVMA.MIT.EDU>
Date: Thursday, September 03, 1998 7:47 AM
Subject: [OT] Help needed on parallel port


>Hi, I have been trying to drive my pcb drilling machine using the parallel
>port of a toshiba T1100 (old, but cheap) and have run out of ideas so I
>thought I would tap the vast knowledge and experience of the people on the
>list. I'ts not that OT really, I will be using a pic to monitor the limit
>switches once I have sorted this problem out.

Sure, 'tap' into our tremendous egos!

>I am using 2 bits of the port to drive each of the two motors, but no
>matter which way I talk to the port (lpt1) it doesn't work. I have tried
>OUT, LPRINT, and the print character service (INT17, service 0)- all work
>ok on my pentium but not on the T1100. If I hook up my printer to the
>T1100, I can print ok so the port is working. A test program reports the
>lpt port as H378 (lpt1), but just in case I tried lpt2 +3- still no good.

I suggest the problem is that the T1100 has a non standard parallel port
address.

You can use the  dos debug command to determine what the addresses are
supposed
to be.  Invoke the command 'd 40:08' and it will display the addresses of
your parallel
ports starting with LPT1, LPT2, LPT3, etc.  If you only have the one port
you will get zeros
for the other addresses. Here is an example from my machine.

-d40:08
0040:0000                          78 03 00 00 00 00 0B 02
x.......
0040:0010  27 C4 00 80 02 80 00 20-00 00 3A 00 3A 00 30 0B   '......
..:.:.0.
0040:0020  3A 27 30 0B 38 09 37 08-08 0E 0D 1C 64 20 34 05   :'0.8.7.....d
4.
0040:0030  30 0B 3A 27 30 0B 38 09-0D 1C 64 20 34 05 00 00   0.:'0.8...d
4...
0040:0040  00 00 C0 00 00 00 00 00-00 03 50 00 00 10 00 00
..........P.....
0040:0050  00 18 00 00 00 00 00 00-00 00 00 00 00 00 00 00
................
0040:0060  0E 0D 00 D4 03 29 30 A4-17 3D 85 04 7E AF 08 00
.....)0..=..~...
0040:0070  00 00 00 00 00 01 00 00-14 14 14 3C 01 01 01 01
...........<....
0040:0080  1E 00 3E 00 18 10 00 60                           ..>....`
-

You should then be able to do a far pointer to return this address into your
function.
I hope this solves your problem.


>
>Any thoughts, ideas, etc gratefully received. If anyone has the pin-out of
>the moden connector inside the machine I would appreciate a copy of it, I
>may be able to use it for an adapter board and dispense with the parallel
>port altogether.

I'll let someone else help you there.



>Thanks, Ken.

Your welcome

1998\09\03@134045 by Andy Kunz

flavicon
face
You should talk to Arthur Volta at Ability Systems.

http://www.abilitysystems.com

Andy


At 11:55 PM 9/3/98 +1000, you wrote:
{Quote hidden}

==================================================================
Andy Kunz - Statistical Research, Inc. - Westfield, New Jersey USA
==================================================================

1998\09\03@144647 by Mark Willis

flavicon
face
Frank A. Vorstenbosch wrote:
{Quote hidden}

 Hmmm.  Could the port be at a 0x3BC port address?  Some machines like
that...  I have a few of them, if I'd thought I could have answered the
original post with this.  MSD.Exe will tell you the port address, you
know it already if you're running Linux but that's unlikely on a T1100!
<G>

 Sometimes laptops don't cooperate as well as desktops.  Darnit!

 Mark Willis, mwillisspamspam_OUTnwlink.com

1998\09\03@175246 by Brian Whittaker

flavicon
face
It was suggested on a previous post that the problem is a non standard parallel
port address. IMHO the BASIC "LPRINT" function works through the bios and so
should find the port no matter what address it has.

What have you done about hand shaking? when using the BASIC "LPRINT" command it
is necessary to hand shake. The very least you will need to do is connect strobe
( db25 pin-1) to acknowledge (db25 pin 10). You may have to set the correct
levels on the pins 11-17 as well. A very common hand shake set up is:
Stb (pin 1)  connected to Ack (pin 10)
bsy (pin 11) connected to +5
Pe  (pin 12) connected to gnd
Sel (pin 13) connected to gnd
But your computer may be different

Also when using LPRINT to output data other than ASCII text you must include the
BASIC statement "WIDTH 255" to prevent BASIC from inserting the C/R-L/F sequence
into your output data

When using the BASIC "OUT" command hand shaking is not necessary but you must
have the correct port number. This simple QBASIC program looks at the bios jump
table and returns with Lp1 set to the correct address for LPT-1.

S1: Find lpt-1
 DEF SEG = 40
 LP1 = PEEK(8)+(PEEK(9)*256)
 DEF SEG
 RETURN

Another possible cause of the problems you describe is that the port does not
source or sink enough current to activate the stepper driver. Lap top computers
run on batteries. To conserve battery life the parallel port drive current is
limited. Does your stepper driver require more drive than the port can deliver?

I suggest that you monitor the output port with an "O" scope or logic probe
while your motor driver is disconnected.

It may in fact be working but just can not provide the drive current necessary

. . . Brian Whittaker

> {Original Message removed}

1998\09\03@221553 by Dennis Plunkett

flavicon
face
At 11:55 PM 3/09/98 +1000, you wrote:
{Quote hidden}

The answers on this so far have been correct the Toshiba T1100 is not
standard, it will use good old Tosh DOS too, and that strainge BIOS also.
What you need to do is ensure that the software created uses the BIOS calls
to get to the LPT. You have tested the port, so this should be the problem

Dennis

1998\09\04@033119 by Dr. Imre Bartfai

flavicon
face
Hi,

I have also had misterious problemes with parallel port: it was the PIC
programming device of Bojan Dobaj. I found out that the bit #5 (mask:
0x20) should be zero in the appropriate control register (normally it is
the 0x37A). I guess it controls the bi-directional characteristic of that
printer port. If this bit high, one can not control the data register as
output.
I hope it helps.

Imre

More... (looser matching)
- Last day of these posts
- In 1998 , 1999 only
- Today
- New search...