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.

TrC Code for communications between PCB and computer?

Status
Not open for further replies.

digi001

Full Member level 5
Joined
Apr 5, 2011
Messages
244
Helped
22
Reputation
44
Reaction score
21
Trophy points
1,298
Activity points
2,904
C Code for communications between PCB and computer?

I need to setup a communications between a microcontroller and a PC. They are connected via RS232 UARTs.

The drivers are written and I can use stdio like printf, scanf etc.

If I want the message to require a preamble '%' and end with a '\r\n' , how would I code this?

Are there any examples out there?
 
Last edited:

u mean something like this??

rprintf("%MyData\r\n");

yeah?
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top