Problem with UART1 waiting for receiving charactor

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

Problem with UART1 waiting for receiving charactor

909 Views
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
Labels (1)
0 Kudos
Reply
1 Reply

845 Views
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 Kudos
Reply