I have a TM4C123AH tiva processor.
I have configured the UART in 9-Bit Mode with interrupt
UARTConfigSetExpClk(UART1_BASE, SysCtlClockGet(), 38400, (UART_CONFIG_WLEN_8 | UART_CONFIG_STOP_ONE | UART_CONFIG_PAR_ZERO)); UARTFIFODisable (UART1_BASE); UARTIntEnable(UART1_BASE, UART_INT_RX | UART_INT_9BIT | UART_INT_FE); UART_INT_FE | UART_INT_PE)); UART9BitAddrSet(UART1_BASE, 0x83, 0xFF); // slave address 03 fisso UART9BitEnable(UART1_BASE); IntEnable(INT_UART1);
When the interrupt routine is execute I cannot read the Address value
ulStatus = UARTIntStatus(UART1_BASE, true); UARTIntClear(UART1_BASE, ulStatus); if (ulStatus & UART_MIS_9BITMIS) { while(UARTCharsAvail(UART1_BASE)) { // NEVER ENTER HERE bufferRx[cntbufferRx] = UARTCharGet(UART1_BASE); cntbufferRx ++; } cntbufferRx = 0; } else if (ulStatus & UART_MIS_RXMIS) { while(UARTCharsAvail(UART1_BASE)) { bufferRx[cntbufferRx] = UARTCharGet(UART1_BASE); cntbufferRx ++; } } }
Is it normal not read the data address in 9-BIT mode ?
Thanks