Tool/software:
Hi.,
I am using TM4C1294NCPDT microcontroller. I am using UART Communication for Communicating my PCB and HMI display. And the baud rate is 19200. When the communication occures(Ex: Communicating cable disconnect or PCB not sending the data to Receiver whatever cost) the HMI fault intimation receives microcontroller lately.
And the PCB and HMI UART Communication time is 5 seconds.
After 5 seconds on HMI communication fault received.If i try to reduce the communication timing (Ex:2 sec) it affecets the communication because not communicating.
Eg:Code:
if(g_UART5_TimeoutRetryCount >= 50)// adding delay
{
UART5_SuccessFlag = 0;
YELLOW_LED_Flags.Byte = IO_LED_OFF;
_RED_LED_Flags.Byte = IO_LED_OFF;
GREEN_LED_Flags.Byte = IO_LED_OFF;
SENSOR_YELLOW_LED_Flags.Byte = IO_LED_500MS_TOGGLE;
g_Data.LSU_Status_ID = sp_Status_HMICommunicationTimeout;
}
If you have any queries please let me know and explain how to solve this issue.