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.??