Aug 08, 2018
09:56 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Aug 08, 2018
09:56 PM
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) {
}
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
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) {
}
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
- Tags:
- IFX
1 Reply
Aug 08, 2018
10:12 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Aug 08, 2018
10:12 PM
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
XMC_UART_CH_SelectInterruptNodePointer(XMC_UART0_CH1, XMC_UART_CH_INTERRUPT_NODE_POINTER_TRANSMIT_BUFFER , 1);
all is working