AnsweredAssumed Answered

USART1 interrupt

Question asked by Laga.Freya on Nov 4, 2015
Latest reply on Nov 13, 2015 by Laga.Freya
Hi to all,
I am encountering a problem using USART1 interrupt.
I can correctly send data on tx line and I woul like to use interrupt to receive data from rx line.

I enabled RXNEIE bit in CR1 and created the handler

extern "C" void USART1_IRQHandler() // I am using C++
{
    myled.LedOn(LED4);
    Delay(1000);
    myled.LedOff(LED4);
    return;
}

but nothing happened. Do I have to enable something else?

Thank you
Freya



Outcomes