I am sending few data to the hyperterminal via UART. When i send a new line character, the data moves to the next line but it starts from the point where the previous data is stopped. The cursor doesn't move to the beginning of the line.I have tried many times using ASCII 10,11 and 13 and it still doesn't work.How do i fix this?
Hyperterminal has not been included in Windows since pre-Win7 so it's pretty much deprecated. Most of us use some alternative(s) such as Putty, Realterm or Teraterm (all free downloads).
CR LF (in that order!) should do it (0x0D, 0x0A), but there is a setting in Hyperterm that allows you to automatically tack a LF on the end of a CR.
Other terminal programs will typically have a similar option- here is Realterm:
Generally CR/LF should do the job.
CR is carriage return, with cursor going to the beginning of the same line.
LF is line feed, with cursor moving next line vertically (this is what you currently see on your terminal).
Send two characters one after another - 0x0d (13) and 0x0a (10).
Some applications will consider only LF to be new line indicator, but these applications are oriented for data flow rather than displaying this data on simple text devices like ASCII terminal.