Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to use C (say Turbo C) to send and receive ASCII from COM port

Status
Not open for further replies.

cuser9

Programmer
Oct 13, 2008
1
0
0
US
Hello. I am a newbie to this forum. First time user, just joined.

I want to send ASCII characters to COM port using say Turbo C. The recipient of the ASCII character is a PIC microcontroller.

And I want to also receive ASCII characters from COM port via Turbo C.

On the PIC side, I have a program that can send and receive ASCII from PC (via Hyperterminal) and it works.

But I want the PIC to talk to Turbo C, not Hyperterminal.

Does anyone know how to use Turbo C to receive and send ASCII characters to COM port?

A small but complete program to send say "Hello world" to COM port and receive message "I am here" from COM port and display it on PC screen would be great. Use say Baud rate of 9600.

Thanks in advance.

td
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top