Problem with UART1 waiting for receiving charactor

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

Problem with UART1 waiting for receiving charactor

910件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by arunkollam on Mon Jul 15 06:38:43 MST 2013
Hi
       Iam working on a project based on uart communication on LPC 1227.The problem is that when ever i send a data through uart0 , my program is expected to receive a acknowledgement via uart1.so when ever the received data is missing or received in error, my program hangs and wait for the data which never come at UART1 again and it will not accept any data at UART0.So i need a routine to identify the absence of string and make it to send a fake data or restart the MCU to avoid this hanging.



Thanks
Arun
ラベル(1)
0 件の賞賛
返信
1 返信

846件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by fjrg76 on Wed Jul 17 11:07:53 MST 2013
Have you tried with the UART's several flags? One of them indicates whether a character has been received.
0 件の賞賛
返信