I have a problem in the below code.
Code: Select all
while (1) {
if (UART1_Data_Ready()) {
speed = UART1_Read();
LongIntToStrWithZeros(speed, txt);
Lcd_Out(2,6,txt);
if (UART1_Tx_Idle()==1) {
UART1_Write(speed);
}
delay_ms(10);
}
i need all digits to be received to operate the code correctly.
Please someone help me.
Regards
Ananth