×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

How do I determine db9/db25 pin status with viisual c++

How do I determine db9/db25 pin status with viisual c++

How do I determine db9/db25 pin status with viisual c++

(OP)
How do I determine db9/db25 pin status with visual c++ ?
I need to read a 1 or 0 from the db9/25 according to certain conditions.How do I do this? I need a class name from the MFC.
C1600@univtech.co.za
Please this is urgent.
Thanks.

RE: How do I determine db9/db25 pin status with viisual c++

#include "conio.h"
#define DATA 0x378
#define STATUS 0x379

//for writing
_outp(DATA,4); //where 4 is to be written to data port
//for input
_inp(STATUS);

/*the addresses given are the common ones for the DB25 parallel port. Data or output port is an 8 bit port white status port takes it as an 8 bit data but allows only 4 or 5 input pins. Refer-
http://www.indiacam.net/pinout/#3 for pinouts.

Regards

Aditya Singh

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources