LPC214 UART1 with interrup example code

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPC214 UART1 with interrup example code

989 Views
Hari123pass123
Contributor I

 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.

Labels (1)
0 Kudos
4 Replies

968 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

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

 

 

0 Kudos

960 Views
Hari123pass123
Contributor I

Hi,

thank you for your replay,

My received hex data remains constant.

Example : 7E 00 90 03 13 A1 00 18  FF EF CD

 

 

 

0 Kudos

948 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

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

0 Kudos

860 Views
Hari123pass123
Contributor I

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.

0 Kudos