XMC UART interrupt

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
User15194
Level 1
Level 1
Here the IRQ is generated on SR0

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
XMC_UART_CH_SetInterruptNodePointer(XMC_UART0_CH1, 0);
XMC_UART_CH_EnableEvent(XMC_UART0_CH1, XMC_UART_CH_EVENT_TRANSMIT_BUFFER);

XMC_UART_CH_Start(XMC_UART0_CH1);

NVIC_SetPriority(USIC0_0_IRQn, 1);
NVIC_EnableIRQ(USIC0_0_IRQn);


void USIC0_0_IRQHandler(void) {

}
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>


Here the IRQ should be generated on SR1, not working no IRQ, what ist wrong here ?

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
XMC_UART_CH_SetInterruptNodePointer(XMC_UART0_CH1, 1); //SR1
XMC_UART_CH_EnableEvent(XMC_UART0_CH1, XMC_UART_CH_EVENT_TRANSMIT_BUFFER);

XMC_UART_CH_Start(XMC_UART0_CH1);

NVIC_SetPriority(USIC0_1_IRQn, 1);
NVIC_EnableIRQ(USIC0_1_IRQn);


void USIC0_1_IRQHandler(void) {

}
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
0 Likes
1 Reply
User15194
Level 1
Level 1
Ok i found the problem, i use the wrong function, now with
XMC_UART_CH_SelectInterruptNodePointer(XMC_UART0_CH1, XMC_UART_CH_INTERRUPT_NODE_POINTER_TRANSMIT_BUFFER , 1);

all is working
0 Likes