hallo! kann mir vielleicht jemand weiterhelfen mit folgendem problem: sobald ich eine Taste auf der Tastatur drücke, sollte eigentlich die statusLED rot leuchten, tut sie aber nicht! was ist falsch oder was fehlt?!


#include <avr/io.h>
#include <avr/interrupt.h>

void Init(void);

ISR(USART_RXC_vect){
StatusLED(RED); // diese Funktion funktioniert ansonsten einwandfrei! wenn sie denn einmal aufgerufen würde....
UCSRA&=~(1<<RXC);
}

// Hauptprogramm
int main(void) {
Init();
StatusLED(GREEN);
UCSRB|=(1<<RXCIE);
UCSRB |= 0x10; // enable receiver
while(1);
return 0;
}

void Init (void)
{
// prepare RS232
UCSRA = 0x00;
UCSRB = 0x00;
UCSRC = 0x86; // No Parity | 1 Stop Bit | 8 Data Bit
UBRRL = 0xCF; // 2400bps @ 8.00MHz
sei();
}