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.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…