LPC214 UART1 with interrup example code

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

LPC214 UART1 with interrup example code

2,307件の閲覧回数
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.

ラベル(1)
0 件の賞賛
返信
4 返答(返信)

2,286件の閲覧回数
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 件の賞賛
返信

2,278件の閲覧回数
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 件の賞賛
返信

2,266件の閲覧回数
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 件の賞賛
返信

2,178件の閲覧回数
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 件の賞賛
返信