I am currently working for LPC2148 and using UART protocol. I received hex value for UART, but if the value is 0x00, the controller is not recognized I received all the data and store it in char array, but I am unable to store array hex value of 0x00. how to resolve the problem Please send me any suggestions or example code.
Hi,
For the 0x00 data, it is regarded as a "NULL Character" for Ascii code, if the receiver can not receive the Null Character, I suppose you can replace it with another character, for example 0x30, 0x30,0x30, if you receive three continuous 0x30, you know it is 0x00.
Pls check if it is possible
BR
XiangJun Rong
Hi,
thank you for your replay,
My received hex data remains constant.
Example : 7E 00 90 03 13 A1 00 18 FF EF CD
Hi,
Do you mean that you always receive the data 7E 00 90 03 13 A1 00 18 FF EF CD no matter what the transmitter sends?
If it is the case, I suggest you pay attention to the clock accuracy for both transmitter and receiver or reducing the baud rate.
BR
XiangJun Rong
I am unable to change the baud rate. My transmitter operates at a constant baud rate of 9600.
My transmitter transmits a large hex value, but my controller does not receive it.
Please send uart with an example of interrupt code.