Aug 26, 2020
02:17 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Aug 26, 2020
02:17 AM
Hello team,
I am using XMC4800 for uart communication, controlling a RS485 transceiver.
I use the following function to enable the protocol event and connect to the SR4 in XMC_UART0_CH1.
/* Enabled protocol events */
const uint32_t UART_CONFIG_0_enabled_protocol_events = ((uint32_t)XMC_UART_CH_EVENT_FRAME_FINISHED);
/* Set the service request line for the Data Lost, Baud Rate Generator and UART protocol events */
XMC_USIC_CH_SetInterruptNodePointer(XMC_UART0_CH1, XMC_USIC_CH_INTERRUPT_NODE_POINTER_PROTOCOL, 4U);
/* Enable the UART protocol-specific events (PCR_ASCMode register) */
XMC_UART_CH_EnableEvent(XMC_UART0_CH1, UART_CONFIG_0_enabled_protocol_events);
for the interrupt I use interrupt APP and set as
#define UART1EndOfFrame IRQ_Hdlr_88
.node = (IRQn_Type)88,
.priority = 0,
The baudrate is 57600. The interrupt triggers but there is 60ms comparing the whole uart frame is less then 200 us.
There is no other interrupts besides CPU_CTRL_XMC4_0 with priority 0
Is there a reason for the 60ms delay?
I am using XMC4800 for uart communication, controlling a RS485 transceiver.
I use the following function to enable the protocol event and connect to the SR4 in XMC_UART0_CH1.
/* Enabled protocol events */
const uint32_t UART_CONFIG_0_enabled_protocol_events = ((uint32_t)XMC_UART_CH_EVENT_FRAME_FINISHED);
/* Set the service request line for the Data Lost, Baud Rate Generator and UART protocol events */
XMC_USIC_CH_SetInterruptNodePointer(XMC_UART0_CH1, XMC_USIC_CH_INTERRUPT_NODE_POINTER_PROTOCOL, 4U);
/* Enable the UART protocol-specific events (PCR_ASCMode register) */
XMC_UART_CH_EnableEvent(XMC_UART0_CH1, UART_CONFIG_0_enabled_protocol_events);
for the interrupt I use interrupt APP and set as
#define UART1EndOfFrame IRQ_Hdlr_88
.node = (IRQn_Type)88,
.priority = 0,
The baudrate is 57600. The interrupt triggers but there is 60ms comparing the whole uart frame is less then 200 us.
There is no other interrupts besides CPU_CTRL_XMC4_0 with priority 0
Is there a reason for the 60ms delay?
- Tags:
- IFX
1 Reply
Sep 02, 2020
10:02 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sep 02, 2020
10:02 AM
Did you get an answer?
IS there any detailed info on using interrupts with FIFOs?
IS there any detailed info on using interrupts with FIFOs?