Skip to content
esp-labsESP32-S3 bench guide
All blocks

Connectivity

UART

Three serial ports, the one you see in the serial monitor

runs on the board

Loading the 3D view…

  • TX
  • RX
  • RTS
  • CTS

Key facts

Gotchas

GPIO43 and 44 carry the boot log

TX 43 and RX 44 are UART0. The ROM prints its boot messages there, and on the DevKitC they go to the USB-to-UART bridge behind the COM port. Wire something else to them and you lose the serial monitor, and the device sees the boot messages.

In our labs

32 labs use this block, across 6 tracks. Open a track to see them.

  • done by you
  • runs on the board
  • built, not flashed
  • planned

Key registers

UART_FIFO_REGoffset 0x0000
UART_FIFO_REG
BitsFieldWhat it does
7:0UART_RXFIFO_RD_BYTERead a received byte, or write one to send.

Technical reference §26.7

UART_CLKDIV_REGoffset 0x0014
UART_CLKDIV_REG
BitsFieldWhat it does
23:20UART_CLKDIV_FRAGFractional part of the divider.
11:0UART_CLKDIVWhole part of the baud-rate divider.

Technical reference §26.7

UART_STATUS_REGoffset 0x001C
UART_STATUS_REG
BitsFieldWhat it does
25:16UART_TXFIFO_CNTBytes still in the transmit FIFO.
9:0UART_RXFIFO_CNTBytes waiting in the receive FIFO.

Technical reference §26.7

UART_CONF0_REGoffset 0x0020
UART_CONF0_REG
BitsFieldWhat it does
14UART_LOOPBACKLoop TX back to RX for a self-test.
5:4UART_STOP_BIT_NUMStop-bit length.
3:2UART_BIT_NUMData bits (3 means 8).
1UART_PARITY_ENParity check on.
0UART_PARITYParity mode.

Technical reference §26.7

UART_CLK_CONF_REGoffset 0x0078
UART_CLK_CONF_REG
BitsFieldWhat it does
21:20UART_SCLK_SELClock source: 1 APB_CLK, 2 RC_FAST_CLK, 3 XTAL_CLK.
19:12UART_SCLK_DIV_NUMDivider in front of the baud generator.

Technical reference §26.7

Read the full sectionTechnical reference §26