something-big-is-coming.jpg

2 posts / 0 new
Last post
afkiwers
Offline
Last seen: 1 year 1 month 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 */
/****************************************************************************************/

/* *old config*
#define GPIO_UART1_TX_PORT GPIO_PORT_0
#define GPIO_UART1_TX_PIN GPIO_PIN_4
#define GPIO_UART1_RX_PORT GPIO_PORT_0
#define GPIO_UART1_RX_PIN GPIO_PIN_5
#define GPIO_UART1_RTS_PORT GPIO_PORT_0
#define GPIO_UART1_RTS_PIN GPIO_PIN_3
#define GPIO_UART1_CTS_PORT GPIO_PORT_0
#define GPIO_UART1_CTS_PIN GPIO_PIN_2
*/
/*new config*/
#define GPIO_UART1_TX_PORT GPIO_PORT_0
#define GPIO_UART1_TX_PIN GPIO_PIN_0
#define GPIO_UART1_RX_PORT GPIO_PORT_0
#define GPIO_UART1_RX_PIN GPIO_PIN_1
#define GPIO_UART1_RTS_PORT GPIO_PORT_0
#define GPIO_UART1_RTS_PIN GPIO_PIN_2
#define GPIO_UART1_CTS_PORT GPIO_PORT_0
#define GPIO_UART1_CTS_PIN GPIO_PIN_4

Device: 
PM_Dialog
Offline
Last seen: 24 min 35 sec 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