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

Radio

Wi-Fi

2.4 GHz 802.11b/g/n, as a station, an access point or both

runs on the board

Loading the 3D view…

  • RF
  • MAC
  • Baseband

Key facts

Gotchas

ADC2 stops working while Wi-Fi is on

The ADC2 channels (GPIO11-20) cannot be used at the same time as Wi-Fi: the radio shares ADC2 through an arbiter. Put analog sensors on ADC1 (GPIO1-10), as the sound labs do with GPIO6.

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

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

SYSTEM_SYSCLK_CONF_REGoffset 0x0060
SYSTEM_SYSCLK_CONF_REG
BitsFieldWhat it does
18:12SYSTEM_CLK_XTAL_FREQThe crystal frequency in MHz (40).
11:10SYSTEM_SOC_CLK_SELCPU clock source: 1 (PLL) is required for Wi-Fi.

Technical reference §17.5

APB_SARADC_APB_ADC_ARB_CTRL_REGoffset 0x0038
APB_SARADC_APB_ADC_ARB_CTRL_REG
BitsFieldWhat it does
11:10APB_SARADC_ADC_ARB_WIFI_PRIORITYThe radio's priority on ADC2.
4APB_SARADC_ADC_ARB_WIFI_FORCEHand ADC2 to the radio.

Technical reference §39.7.3

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 Wi-Fi bit (0x20) lets the radio wake the chip from light sleep.

Technical reference §10.8

Read the full sectionChip datasheet §C4.3.2