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.

hardware interfacing using c or c++

Status
Not open for further replies.

kotis

Newbie level 5
Joined
Oct 11, 2007
Messages
9
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,341
hardware interfacing through c

Hello.
I have been trying to look for a c or c++ tutorial that has instructions on hardware interfacing code.
Provide a link or any other source.
 

hardware interfacing with c

what are you interfacing to?
 

hardware interfacing using c

I just want to interface a hand wired circut through the parallel port using visual c++
I would be glad to receive any general tutorial on interfacing using visual or borland c++.
 

hardware interfacing in c

Dear Kotis, well you can interface any device using parallel port the only thing you need to have is a NPN Transistor, just conenct the base of the transistor to the Data Pin of the parallel port and then connect a relay to the emitter of and provide a vcc to the collector, the relay will be connected to your device which will be operational when the transistor is switched on, there are 8 Data Pins thus you k connect upto 8 Bits of Devices that is at most 255 Devices and control them simultaneously...the control command syntax for c/c++ is
outport(0x378,a);
here 0x378 is the parallel ports address and 'a' is a variable depending on the value data pins of the parallel port will by high/low, thus operating the specific transistor/device,...

Best Regards
Jamshid Dastur
 

tutorial for hardware interfacing through c

Hi
Using C and C++ use the follwing two commands
InPort(adress) or inportB(addresss) to receive data from parallel port

Outport(address, data) or outportb(address, data) send data to parallel port
 

visual c++ for hardware interfacing

use an IC to protect your parallel port. Just search for that IC because I forgot to the name of it. It will be very risky to damage your parallel port.


Regards,

Necolei
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top