Page 341 - ARM Based Microcontroller Projects Using MBED
P. 341
13.2 NUCLEO-F411RE UART GPIO PINS 327
the RS232 protocol is not used and the two communicating devices are connected to each
other directly.
Table 13.2 illustrates the functions supported by Mbed UART.
TABLE 13.2 Mbed UART Functions
Function Description
baud Set the serial communication baud rate
format Set the communication format
getc Read a character from serial port
putc Write a character to serial port
printf Write formatted string to serial port
scanf Read formatted string from serial port
readable Determine if a there a character available to read
writeable Determine if there is space to write a character
attach Attach an interrupt service routine function to serial port
13.2 NUCLEO-F411RE UART GPIO PINS
There are three UART modules on the Nucleo-F411RE development board. The following
are the GPIO pins for these modules:
UART Module Signal GPIO Pin
UART1 TX PA_15, PB_6, PA_9
UART1 RX PB_7, PB_3, PA_10
UART1 CTS PA_11
UART2 TX PA_2 (PC communication)
UART2 RX PA_3 (PC communication)
UART2 CTS PA_0
UART2 RTS PA_1
UART6 RX PC_7
UART6 TX PC_6
UART6 RTS PA_12
Notice that UART2 is used to communicate with the PC and is not freely available as a
general purpose serial communication module.