⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.wsdof.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
2 posts / 0 new
Last post
afkiwers
Offline
Last seen:2 years 7 months ago
Joined:2018-02-22 09:20
UART Speed

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

Device:
PM_Dialog
Offline
Last seen:1 day 12 hours ago
Staff
Joined:2018-02-08 11:03
Hi afkiwers,

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