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

Radio

Bluetooth LE

Bluetooth 5 Low Energy: beacons, phones, keyboards, MIDI

built, not flashed

Loading the 3D view…

  • RF
  • Link
  • HCI

Key facts

  • Bluetooth 5 LE and Bluetooth Mesh, at 125 kbps, 500 kbps, 1 Mbps or 2 Mbps.

    Chip datasheet §C0.1

  • Up to 20 dBm out, and the coded PHY (125 kbps) hears down to -104.5 dBm for long range.

    Chip datasheet §C0.1

  • Extended and multiple advertising sets, several connections as central and peripheral at once, link-layer encryption.

    Chip datasheet §C4.3.3.2

  • Wi-Fi and Bluetooth share one antenna; a built-in coexistence mechanism takes turns.

    Chip datasheet §C0.1

Gotchas

The radio needs the PLL clock

Wi-Fi and Bluetooth LE only work while the CPU clock comes from the PLL. Running the CPU from the crystal or the RC oscillator to save power stops the radio.

In our labs

8 labs use this block, across 1 tracks. Open a track to see them.

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

Key registers

SYSTEM_BT_LPCK_DIV_FRAC_REGoffset 0x002C
SYSTEM_BT_LPCK_DIV_FRAC_REG
BitsFieldWhat it does
28SYSTEM_LPCLK_RTC_ENLow-power clock for the radio on.
27SYSTEM_LPCLK_SEL_XTAL32KUse the 32 kHz crystal as that clock.
25SYSTEM_LPCLK_SEL_8MUse the divided RC_FAST_CLK (the default).

Technical reference §17.5

SYSTEM_SYSCLK_CONF_REGoffset 0x0060
SYSTEM_SYSCLK_CONF_REG
BitsFieldWhat it does
11:10SYSTEM_SOC_CLK_SELCPU clock source: 1 (PLL) is required for Bluetooth.

Technical reference §17.5

RTC_CNTL_RTC_WAKEUP_STATE_REGoffset 0x003C
RTC_CNTL_RTC_WAKEUP_STATE_REG
BitsFieldWhat it does
31:15RTC_CNTL_RTC_WAKEUP_ENAWake-up sources; the BT bit (0x400) lets Bluetooth wake the chip from light sleep.

Technical reference §10.8

Read the full sectionChip datasheet §C4.3.3