7 Replies Latest reply on Apr 2, 2013 1:15 AM by userc_43398

    Problem with UART RX Interrupt

       Hi People,




      I'm using an UART to give user info thru RX buffer and then make decisions based on RX interrupts triggered by the same. So when I give a character i/p for the first tym, branching to ISR occurs but when I try to give another user-input to be received by the RX buffer (when I'm inside the ISR) and read the RX buffer through a variable, say choice, [choice=UART_cReadChar(); ], choice is left with only the previous user value & controls goes to the beginning of the ISR.




      I'm not able to over-write the contents of RX buffer when I'm inside the ISR, which is essential to branch it to appropriate code fragments in functions. Can this be done ? please help.