Hello,
How does changing the pins for the UARTx interface affect the max baud rate? Can I change them as needed? Where can I find the max baud rate of the interface?
From Keil:
/****************************************************************************************/
/* UART configuration */
/****************************************************************************************/
/ * *旧配置*
#定义GPIO_UART1_TX_PORT GPIO_PORT_0
#定义GPIO_UART1_TX_PIN GPIO_PIN_4
#定义GPIO_UART1_RX_PORT GPIO_PORT_0
#定义GPIO_UART1_RX_PIN GPIO_PIN_5
#定义GPIO_UART1_RTS_PORT GPIO_PORT_0
#定义GPIO_UART1_RTS_PIN GPIO_PIN_3
#定义GPIO_UART1_CTS_PORT GPIO_PORT_0
#定义GPIO_UART1_CTS_PIN GPIO_PIN_2
*/
/ *新配置* /
#定义GPIO_UART1_TX_PORT GPIO_PORT_0
#定义GPIO_UART1_TX_PIN GPIO_PIN_0
#定义GPIO_UART1_RX_PORT GPIO_PORT_0
#定义GPIO_UART1_RX_PIN GPIO_PIN_1
#定义GPIO_UART1_RTS_PORT GPIO_PORT_0
#定义GPIO_UART1_RTS_PIN GPIO_PIN_2
#定义GPIO_UART1_CTS_PORT GPIO_PORT_0
#定义GPIO_UART1_CTS_PIN GPIO_PIN_4
Hi afkiwers,
Yes, you are able reconfigure UART signals into different GPIOs and you are able to use the maximum baud rate (115200). Sorry, I am not able to understand your question “Where can I find the max baud rate of the interface”. Could you please clarify what you want to mean? Do you mean that you want to use 115200 baud rate? Did I understand correctly? Also, I strongly suggest you to have a look at the uart example of the SDK. This example demonstrates how to use uart drive and you could find all the configurations needed for UART. The project is located in the projects\target_apps\peripheral_examples\uart SDK directory.
Thanks, PM_Dialog