News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Outprot

Started by harsha, May 28, 2005, 04:37:55 PM

Previous topic - Next topic

harsha

How to produce signals on outport using outport() function in C?? ::)

Tedd

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.
No snowflake in an avalanche feels responsible.

harsha

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? ::)

MichaelW

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
eschew obfuscation

harsha