AnsweredAssumed Answered

unexpected ustart1 isr

Question asked by r.denis on Sep 5, 2013
Latest reply on Sep 5, 2013 by Clive One
Attached is the pic showing the ustart1 registers. I do not see why i get usart1 irq, but it is ... What am I missing? My isr is stuck because something needs to be cleared.

void serial_port::isr_x()
{
    if (USART_GetITStatus(m_usart, USART_IT_RXNE) != RESET)
    {
       uint8_t b= USART_ReceiveData(m_usart);
      // . . .
    }
    if(USART_GetITStatus(m_usart, USART_IT_TXE) != RESET)
    {
        if (have data ...)
          USART_SendData(m_usart, outByte);
      else
        // Disable the USART Transmit interrupt
        disableTxInterrupt();
    }
}

Attachments

Outcomes