Hello,
I'm using a TM4C129XNCZAD in an RS485. I'm using Uart3. I need to have the TX Enable for communication, but I can't get the Uart3RTS to work.
I enabled it using this code:
SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOJ);
GPIOPinConfigure(GPIO_PJ4_U3RTS); //TX enable RS485, PJ4
GPIOPinTypeUART(GPIO_PORTJ_AHB_BASE, GPIO_PIN_4 );
UARTModemControlSet(MODBUS_UART_BASE, UART_OUTPUT_RTS);
But I can't see the pin going high when I transmit data.
Also, I tried to enable the EOT interrupt, but doesn't work, I can see data flowing through the UART, but after the end of all bits, I don't enter in interrupt. I enabled it in this way:
#define UART_INT_EOT 0x800 // End of Transmission Interrupt Mask
UARTIntEnable(MODBUS_UART_BASE, (UART_INT_RX | UART_INT_RT | UART_INT_TX | UART_INT_EOT));
Can you help me?
Thanks