AVR- RS232 capture with interrupt
Posted: Thu Jan 27, 2011 5:10 pm
Hello all,
I'm not very familiar with interrupt programming on the AVR. But I'm trying to capture incomming data on the rs232-port (PD0) with the 'UART0 RX'-interrupt on the ATMega168 and show the hex-value on the display, but nothing happens (Test-programm is attached).
Shouldn't the RXINT jump into the linked macro every time a new byte is comming from the PC and store it into my RxIN-variable? Should this also work on the simulator? Can I disable and enable the RXINT-interrupt by only adding the interrupt-symbol in the program as often as needed or do I have to add additional code?
I've already tried the 'TEST RS232 - TEST RECEPTION.fcf' example from the forum but this also doesn't work (I think this is for PIC).
Could you please give some help?
Many thanks,
Niro
I'm not very familiar with interrupt programming on the AVR. But I'm trying to capture incomming data on the rs232-port (PD0) with the 'UART0 RX'-interrupt on the ATMega168 and show the hex-value on the display, but nothing happens (Test-programm is attached).
Shouldn't the RXINT jump into the linked macro every time a new byte is comming from the PC and store it into my RxIN-variable? Should this also work on the simulator? Can I disable and enable the RXINT-interrupt by only adding the interrupt-symbol in the program as often as needed or do I have to add additional code?
I've already tried the 'TEST RS232 - TEST RECEPTION.fcf' example from the forum but this also doesn't work (I think this is for PIC).
Could you please give some help?
Many thanks,
Niro