Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Parallel Port---output help---

Status
Not open for further replies.

toomzy

New Member
Hi to all....

I hope someone can shed some lite on this problem i'm having.
i'm trying to control the output pins 2-9 well any pin would be nice
i cant seem to shut the power off on 23456pins it is allways on no mater what ,,all are puting out 5v except pin 5 its at 2.5v
I have tryed this program called parallel port debug tool well for one
thing when i turn on all that is 23456789 nothing hapens to the 23456
but what does happens is 9 10 11 12 13 and 24 come on.....

i gess my question is how do you use 23456789 when 23456 wont shut off.

:evil: I am so lost any info would help......

i
 
What did you do with debug?

output to a cpu port (o 378 Value) ??
this doesn't work under winXP wich blocks cpu ports

try it on a dos or win95/98 system
 
First try to do this in debug

-d 0040:0008

It will show some hex numbers, the first 2 numbers is the cpu adress of your parallel port. they should be 78 03

This is to make sure you are writing to the correct port with the O command. Because not all pc's parallel port is located at 378

Can you give some more info on what you are trying to do and what debug commands you already tried
 
the parallel port debug tool i got from beyond logic....it will alow you
to turn on and off the output pins

and i tried a program called hottime same thing wont control 23456789

i can figure out why power is there even on boot before o/s starts
power on 23456

i even tried my linux box same thing 23456 has power befor the o/s
starts...

sorry for being allover the place and for my purpose well i have a few
ideas but i cant go any further untill i learn how to control the pin's
 
There is also a program called 'debug' standard included in dos/win98

i thought you were referring to that program

Try the following, Go to MS DOS prompt and type
Debug

A '-' should appear, then type
O 378 0

(Thats a a letter O followed by 378 and then a zero)
And then test your pins , they should be all 0
 
i did what you suggested and it did not change 23456 has power and 789no power , do i need to do a reboot.....
 
try what i suggested in my second post, to check you are writing to the right adress.

Also, try booting to MSDOS directly without going to windows (press F8 when the computer says windows is starting, then select MS-dos mode)
and then try the debug O 378 0 thing. It's possible windows keeps a lock on the port.

if all else fails try to check the port is still functional (can you print with it)
 
yep it works fine have a lexmark that runs on it....

I tried again and the same results are the same..
debug in dos

"-"
-o 378 0 enter
-


test the same power on 23456 789 on power......
 
111

do this in debug.exe


a 100

then

mov dx, 378
mov al, 0
out dx, al
int 20

then g (for GO)

all data output pins on parallel port (d0-d7) should be 0v
 
Parralell port

Hi,

if i'm unterstanding you good you only want to
send signals to the parallel port/serial port only for putting the pins high or low or to read the status...??

there is a dll in the WWW whit wich you easly can contol all the ports form your computer also game port..

it used in visual basic.

for best performance of that knid of dll and programs use win98se or win95..

TKS

if you ask for more i will give you more
 
Thank's for all the help guys
I will give your ideas a try and let you know
how i made out..........

thanks again ........
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top