Is the newline identifier (0a) put into the receive buffer when uart communication is performed?

19 Views Asked by At

When I am communicating with uart communication on a microcontroller msp432, I find that a value of 0x0a is added to both the sent and returned values, does this do anything? enter image description here

enter image description here After checking the ascll table I found that the value 0x0a corresponds to a newline, so will this value be put into the accept buffer, I found that after I add 1 to the value the return value is not 0x0a, but 0x0b, I am a little confused, so can someone explain to me how this works in detail?

0

There are 0 best solutions below