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

Timing

RMT

Plays and records exact pulse trains: IR remotes, RGB LEDs

runs on the board

Loading the 3D view…

  • TX
  • RX
  • Carrier

Key facts

Gotchas

The RGB LED is on GPIO38 or GPIO48

The DevKitC-1 v1.1 guide puts the addressable RGB LED on GPIO38; many boards wire it to GPIO48. If the LED stays dark, try the other pin.

In our labs

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

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

Key registers

RMT_CHnCONF0_REGoffset 0x0020 + 0x4·n
RMT_CHnCONF0_REG
BitsFieldWhat it does
21RMT_CARRIER_EN_CHnAdd a carrier wave.
19:16RMT_MEM_SIZE_CHnHow many 48-word RAM blocks the channel uses.
15:8RMT_DIV_CNT_CHnClock divider: the length of one tick.
0RMT_TX_START_CHnStart sending.

Technical reference §37.6

RMT_CHnSTATUS_REGoffset 0x0050 + 0x4·n
RMT_CHnSTATUS_REG
BitsFieldWhat it does
25RMT_MEM_EMPTY_CHnRan out of data (wrap mode off).
24:22RMT_STATE_CHnWhat the channel is doing.

Technical reference §37.6

RMT_SYS_CONF_REGoffset 0x00C0
RMT_SYS_CONF_REG
BitsFieldWhat it does
31RMT_CLK_ENRegister clock on.
25:24RMT_SCLK_SELClock source: 1 APB_CLK, 2 RC_FAST_CLK, 3 XTAL_CLK.
11:4RMT_SCLK_DIV_NUMWhole part of the clock divider.

Technical reference §37.6

Read the full sectionTechnical reference §37