Problem with UART1 waiting for receiving charactor

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Problem with UART1 waiting for receiving charactor

920 次查看
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 回复

856 次查看
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 项奖励
回复