Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

The outport instruction

Status
Not open for further replies.

shedeed

Member level 4
Member level 4
Joined
Sep 26, 2004
Messages
70
Helped
2
Reputation
4
Reaction score
1
Trophy points
1,288
Location
Egypt
Activity points
631
function outport in borland c

what does this instruction do " the second argument"
outport(0x379,0x05^0x0b)
 

c++ outport

That looks like C.
"outport" is not a standard C function.
You didn't tell us which compiler you are using. I'm guessing "outport" sends a byte to a port.

If those are correct guesses, then the ^ operator is bitwise exclusive-or, so the function outputs the value 0x0E to port 0x379.
 

sorry it was really a c code instruction
 

Outport is a function in Borland C compilers (Turbo C or Borland C++).

outport sends a word to the specified output port.
outportb sends a byte to the specified output port.
The rest is true.

Belsugului[/i]
 

does any body know how to interface the status register of the parallel port because it have thre reserved bits
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top