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.

Programming using RS232 and C/C++

Status
Not open for further replies.

Mejdi_tn

Junior Member level 3
Joined
Oct 20, 2007
Messages
28
Helped
7
Reputation
14
Reaction score
6
Trophy points
1,283
Activity points
1,473
hi ;
i need to program using serial Port "RS232" , but I can'nt use standard protrocol like RX or Tx, because I must send and resiv two parallel senial; ther is any fonction can do that in C/C++
think you
 

Re: RS232 en C/C++

Hi,

Please make your question more clear....
 

Re: RS232 en C/C++

Mejdi_tn said:
hi ;
i need to program using serial Port "RS232" , but I can'nt use standard protrocol like RX or Tx, because I must send and resiv two parallel senial; ther is any fonction can do that in C/C++
think you


Here are two methods of sending data to and from the serial port in C.
1) Using outportb(PORT_ID, DATA) or outport(PORT_ID,DATA) defined in “dos.h”. 2) Is using bioscom() function defined in “bios.h”.
 

RS232 en C/C++

use matlab
x=serial('com1')
fopen(x);
fscanf(x); % for reciving
fprintf(x); %for sending
fclose(x);
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top