AnsweredAssumed Answered

we are using k60fx512. we are using the following intialization steps to enable the uart2 interuppt

Question asked by anju m on Aug 5, 2015
Latest reply on Aug 5, 2015 by Hui_Ma

the intialisation steps are:

 

uart_init (UART2_BASE_PTR,120000, 921600);

UART_C2_REG(UART2_BASE_PTR) |= UART_C2_RIE_MASK;

NVICICPR1 |= 1 << (49%32);

  NVICISER1 |= 1 << (49%32);

 

then isr for uart2:

 

void UART2_handler(void)

{

    unsigned char data1;

  if(!(UART_S1_REG(UART2_BASE_PTR) & UART_S1_RDRF_MASK))

    data1=UART_D_REG(UART2_BASE_PTR);

}

 

while receiving the data, it is entering inside the ISR. But it is never coming out of the isr.??

Outcomes