Hi,
I couldn't clearly understand, which terminating character require to send while using UART in microcontroller?
If we are communicating between "microcontroller<-->PC". As per I know, the terminal program used on PC is set to use some short of terminating character for in coming stream.
But what if we are communicating between two microcontrollers? or between two UART ports of the same microcontroller? How can we know which terminating character we require to send?
Because some time it works with \r\n, sometime only \r and some time only \n ?
Please somebody clarify this concept...
Thanks in Advance.
I couldn't clearly understand, which terminating character require to send while using UART in microcontroller?
If we are communicating between "microcontroller<-->PC". As per I know, the terminal program used on PC is set to use some short of terminating character for in coming stream.
But what if we are communicating between two microcontrollers? or between two UART ports of the same microcontroller? How can we know which terminating character we require to send?
Because some time it works with \r\n, sometime only \r and some time only \n ?
Please somebody clarify this concept...
Thanks in Advance.