-----Original Message----- From: Ken Johnson To: PICLIST@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