Tool/software: TI-RTOS
Hi, I trying to use UART on CC1310 with flow control (in RS485), these are my configurations on my custom board
const PIN_Config BoardGpioInitTable[] = { CUSTOM_UART_RX | PIN_INPUT_EN | PIN_PULLDOWN, /* UART RX via debugger back channel */ CUSTOM_UART_TX | PIN_GPIO_OUTPUT_EN | PIN_GPIO_HIGH | PIN_PUSHPULL, /* UART TX via debugger back channel */ CUSTOM_UART_RTS | PIN_GPIO_OUTPUT_EN | PIN_GPIO_HIGH | PIN_PUSHPULL, CUSTOM_UART_CTS | PIN_INPUT_EN | PIN_GPIO_LOW | PIN_NOPULL | PIN_IRQ_DIS, CUSTOM_SPI0_MOSI | PIN_INPUT_EN | PIN_PULLDOWN, /* SPI master out - slave in */ CUSTOM_SPI0_MISO | PIN_INPUT_EN | PIN_PULLDOWN, /* SPI master in - slave out */ CUSTOM_SPI0_CLK | PIN_INPUT_EN | PIN_PULLDOWN, /* SPI clock */ PIN_TERMINATE }; /* UART Board */ #define CUSTOM_UART CC1310_LAUNCHXL_UART0 #define CUSTOM_UART_RX IOID_2 #define CUSTOM_UART_TX IOID_1 #define CUSTOM_UART_CTS IOID_3 #define CUSTOM_UART_RTS IOID_4 const UARTCC26XX_HWAttrsV2 uartCC26XXHWAttrs[CC1310_LAUNCHXL_UARTCOUNT] = { { .baseAddr = UART0_BASE, .powerMngrId = PowerCC26XX_PERIPH_UART0, .intNum = INT_UART0_COMB, .intPriority = ~0, .swiPriority = 0, .txPin = CUSTOM_UART_TX, .rxPin = CUSTOM_UART_RX, .ctsPin = CUSTOM_UART_CTS, .rtsPin = CUSTOM_UART_RTS, .ringBufPtr = uartCC26XXRingBuffer[CC1310_LAUNCHXL_UART0], .ringBufSize = sizeof(uartCC26XXRingBuffer[CC1310_LAUNCHXL_UART0]), .txIntFifoThr = UARTCC26XX_FIFO_THRESHOLD_1_8, .rxIntFifoThr = UARTCC26XX_FIFO_THRESHOLD_4_8, .errorFxn = NULL } };
Are my CTS and RTS pin configurations ok? but I can´t receive any data.