The MASM Forum Archive 2004 to 2012

Miscellaneous Forums => 16 bit DOS Programming => Topic started by: harsha on May 28, 2005, 04:37:55 PM

Title: Outprot
Post by: harsha on May 28, 2005, 04:37:55 PM
How to produce signals on outport using outport() function in C?? ::)
Title: Re: Outprot
Post by: Tedd on May 28, 2005, 05:00:33 PM
The outportb function is the same as doing:

mov al,byte_val
mov dx,port_no
out dx,al


(outportw does the same but with ax - so two bytes)


What exactly you mean by a 'signal' is a different matter. What are you trying to do? There are many different ports, and each is used to achieve different things.
Title: Project
Post by: harsha on May 29, 2005, 05:09:53 AM
I have to work on my project
Details :
I have to control a remote Car toy Which has got a wireless transmitter by way point method
What i thought
I am going to link the port signals i produce to  a transistor that acts as a switch and controls the switch buttons on the transmitter

Thats my need?I want to deal with computer produced signals?Tell me which is the easiest way to produce some voltage across ports? ::)
Title: Re: Outprot
Post by: MichaelW on May 29, 2005, 06:35:38 AM
If you goal is to implement a digital I/O interface without using a specialized I/O card, you might consider using the parallel port. The standard parallel port provides 12 digital outputs and 5 digital inputs. At least for the 8 digital outputs accessible through the data port, the outputs are latched and can typically source a minimum of 2.5ma @ 2.5V.

A large amount of related information is available here:

http://www.lvr.com/parport.htm
Title: Re: Outprot
Post by: harsha on May 29, 2005, 03:07:23 PM
Quote from: MichaelW on May 29, 2005, 06:35:38 AM
thnx you gave me many valuable info.