Jun 15, 2012 #1 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: Jun 15, 2012
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?
Jun 18, 2012 #2 behnam9856 Member level 3 Joined Jan 12, 2010 Messages 63 Helped 11 Reputation 22 Reaction score 10 Trophy points 1,288 Activity points 1,627 u mean something like this?? rprintf("%MyData\r\n"); yeah?