Vandal S
Member level 3
rcif buffer
I have a PIC 16f877 and i want to interface it with the pc. I am sending characters through UART and depending on those characters, it activates some pins. But how do I know when characters aren't transmitted no more? At the present, I made it with a delay, and it runs continuously for 400ms, but after that, it becomes 0 for a short perioad and then 5V again.
How do I eliminate the 0 Volts period? if i try with a while ( while (uart_recive='w') {uart_read, do stuff} ) it will always stay in 5V until another key is pressed, as if the buffer remains with the last character, doen't refresh.
If I haven't been very clear, please say so.
I have a PIC 16f877 and i want to interface it with the pc. I am sending characters through UART and depending on those characters, it activates some pins. But how do I know when characters aren't transmitted no more? At the present, I made it with a delay, and it runs continuously for 400ms, but after that, it becomes 0 for a short perioad and then 5V again.
How do I eliminate the 0 Volts period? if i try with a while ( while (uart_recive='w') {uart_read, do stuff} ) it will always stay in 5V until another key is pressed, as if the buffer remains with the last character, doen't refresh.
If I haven't been very clear, please say so.