HI,
I do double check everything but it doesn't work. I add FIFO memory to the reception part and now it is much much better.
Another question is that "Do you know how can I cancel scanf(..) function?"
To explain this question I can say:
Intrinsically SCANF() function waits for ever till it receive a character. I need to wait for user input until certain amount of time; Hence, I run a timer and after timeout I want to cancel the scanf.
after timeout other thing working good but UART locks and does not work (I think it is due to ongoing scanf).
Any suggestion is welcome...