What's the "next line" command for 8051 in C language?

Status
Not open for further replies.

hamidraza22

Newbie level 6
Joined
Sep 21, 2006
Messages
14
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,362
as there is a command { cout<<"\n"; } for next line in C++;
can any1 tell me how can i use this command for 8051 Microntroller C landuage.
I am doing doing serial communication through 8051 microcontroller.
 

help needed

printf("\n"); or printf("\r\n");

\n = new line
\r = carriag return (to start of line)

in some terminal emulation program, it want \r for bring cursor to 1st location of line.
 

Re: help needed

kason the thing u have told me is applicable for Turbo C
i want the same logic but in syntax of Microcontroller 8051 C language.
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…