AnsweredAssumed Answered

How to escape USART1 interrupt?

Question asked by chinniwhites on Aug 6, 2012
Latest reply on Aug 8, 2012 by chinniwhites
Below is my USART1 handler:

void USART1_IRQHandler(void)
{
    if(USART_GetITStatus(USART1, USART_IT_RXNE) != RESET){
        USART_SendString(USART1, "\r\n======Blow ME======\r\n");
        USART_ITConfig( USART1, USART_IT_RXNE, DISABLE );
    }
}

I want it to print Blow Me on hyperterminal once, then go back to executing.  I can print stuff to the screen, but as soon as i press a key to trigger receive interrupt, program gets stuck repeatedly spitting out Blow Me.  The only way I found to print only once is to disable the interrupt, but then it never works again (perhaps put an enable in the main loop?)

Sure this is simple, please help.

Outcomes