espsss / tools / calculators

Calculators

Small calculations that come up all the time, with the chip's real limits filled in from the datasheet and ESP-IDF v5.5.5.

PWM (LEDC): frequency vs resolution

ADC input range and voltage divider

UART: bytes per second and time per message

Battery life with sleep

Sources

Every value the tool uses comes from these sources; open “What it confirms” for the quotes. Checked 2026-11-28.

  1. ESP32 Series Datasheet v5.3 primary
    What it confirms (18)
    • adc param: esp32: atten “Atten = 0, effective measurement range of 100 ∼ 950 mV –23 23 mV”
    • adc param: esp32: atten “Atten = 1, effective measurement range of 100 ∼ 1250 mV –30 30 mV”
    • adc param: esp32: atten “Atten = 2, effective measurement range of 150 ∼ 1750 mV –40 40 mV”
    • adc param: esp32: atten “Atten = 3, effective measurement range of 150 ∼ 2450 mV –60 60 mV”
    • adc param: esp32: note_atten3 “When atten = 3 and the measurement result is above 3000 (voltage at approx. 2450 mV), the ADC … accuracy will be worse than described in the table above.”
    • battery param: esp32: current “Transmit 802.11b, DSSS 1 Mbps, POUT = +19.5 dBm — 240 — mA … The current consumption measurements are taken with a 3.3 V supply at 25 °C of ambient temperature at the RF port. … All transmitters’ measurements are based on a 50% duty cycle.”
    • battery param: esp32: current “Receive 802.11b/g/n — 95 ~ 100 — mA … The current consumption measurements are taken with a 3.3 V supply at 25 °C of ambient temperature at the RF port. … All transmitters’ measurements are based on a 50% duty cycle.”
    • battery param: esp32: current “Transmit BT/BLE, POUT = 0 dBm — 130 — mA … The current consumption measurements are taken with a 3.3 V supply at 25 °C of ambient temperature at the RF port. … All transmitters’ measurements are based on a 50% duty cycle.”
    • battery param: esp32: current “Receive BT/BLE — 95 ~ 100 — mA … The current consumption measurements are taken with a 3.3 V supply at 25 °C of ambient temperature at the RF port. … All transmitters’ measurements are based on a 50% duty cycle.”
    • battery param: esp32: current “Dual-core chip(s) 30 mA ~ 68 mA … Modem-sleep mode: The CPU is operational and the clock is configurable. The Wi-Fi/Bluetooth … baseband and radio are disabled. … In Modem-sleep mode, the CPU frequency changes automatically. The frequency depends on the CPU load and … the peripherals used.”
    • battery param: esp32: current “Dual-core chip(s) 20 mA ~ 31 mA … Modem-sleep mode: The CPU is operational and the clock is configurable. The Wi-Fi/Bluetooth … baseband and radio are disabled. … In Modem-sleep mode, the CPU frequency changes automatically. The frequency depends on the CPU load and … the peripherals used.”
    • battery param: esp32: current “Light-sleep - 0.8 mA … Light-sleep mode: The CPU is paused. The RTC memory and RTC peripherals, as well as the ULP … coprocessor are running.”
    • battery param: esp32: current “The ULP coprocessor is powered up. 150 µA … Deep-sleep mode: Only the RTC memory and RTC peripherals are powered up.”
    • battery param: esp32: current “ULP sensor-monitored pattern 100 µA @1% duty … Deep-sleep mode: Only the RTC memory and RTC peripherals are powered up. … the ULP coprocessor works with the ULP sensor … periodically and the ADC works with a duty cycle of 1%, so the power consumption is 100 µA.”
    • battery param: esp32: current “RTC timer + RTC memory 10 µA … Deep-sleep mode: Only the RTC memory and RTC peripherals are powered up.”
    • battery param: esp32: current “Hibernation RTC timer only 5 µA … Hibernation mode: The internal 8 MHz oscillator and ULP coprocessor are disabled. The RTC … recovery memory is powered down. Only one RTC timer on the slow clock and certain RTC GPIOs … are active.”
    • battery param: esp32: current “CHIP_PU is set to low level, the chip is powered down. 1 µA”
    • uart param: esp32: max_baud “Programmable baud rates up to 5 MBaud”
  2. ESP-IDF v5.5.5: components/soc/esp32/include/soc/soc_caps.h primary
    What it confirms (7)
    • adc param: esp32: oneshot_bits “SOC_ADC_RTC_MIN_BITWIDTH (9) … SOC_ADC_RTC_MAX_BITWIDTH (12)”
    • ledc param: esp32: timer_bits “SOC_LEDC_TIMER_BIT_WIDTH (20)”
    • ledc param: esp32: channels “SOC_LEDC_SUPPORT_HS_MODE (1) … SOC_LEDC_CHANNEL_NUM (8)”
    • ledc param: esp32: timers “SOC_LEDC_TIMER_NUM (4)”
    • uart param: esp32: max_baud “SOC_UART_BITRATE_MAX (5000000)”
    • uart param: esp32: fifo_len “SOC_UART_FIFO_LEN (128)”
    • uart param: esp32: hp_uarts “SOC_UART_HP_NUM (3)”
  3. arduino-esp32 3.3.12: cores/esp32/esp32-hal-adc.c primary
    What it confirms (12)
    • adc param: esp32: arduino_default_bits “static uint8_t __analogWidth = SOC_ADC_RTC_MAX_BITWIDTH; … static uint8_t __analogReturnedWidth = SOC_ADC_RTC_MAX_BITWIDTH; … SOC_ADC_RTC_MAX_BITWIDTH (12)”
    • adc param: esp32-s2: arduino_default_bits “static uint8_t __analogWidth = SOC_ADC_RTC_MAX_BITWIDTH; … static uint8_t __analogReturnedWidth = SOC_ADC_RTC_MAX_BITWIDTH; … SOC_ADC_RTC_MAX_BITWIDTH (13)”
    • adc param: esp32-s3: arduino_default_bits “static uint8_t __analogWidth = SOC_ADC_RTC_MAX_BITWIDTH; … static uint8_t __analogReturnedWidth = SOC_ADC_RTC_MAX_BITWIDTH; … SOC_ADC_RTC_MAX_BITWIDTH (12)”
    • adc param: esp32-c2: arduino_default_bits “static uint8_t __analogWidth = SOC_ADC_RTC_MAX_BITWIDTH; … static uint8_t __analogReturnedWidth = SOC_ADC_RTC_MAX_BITWIDTH; … SOC_ADC_RTC_MAX_BITWIDTH (12)”
    • adc param: esp32-c3: arduino_default_bits “static uint8_t __analogWidth = SOC_ADC_RTC_MAX_BITWIDTH; … static uint8_t __analogReturnedWidth = SOC_ADC_RTC_MAX_BITWIDTH; … SOC_ADC_RTC_MAX_BITWIDTH (12)”
    • adc param: esp32-c5: arduino_default_bits “static uint8_t __analogWidth = SOC_ADC_RTC_MAX_BITWIDTH; … static uint8_t __analogReturnedWidth = SOC_ADC_RTC_MAX_BITWIDTH; … SOC_ADC_RTC_MAX_BITWIDTH (12)”
    • adc param: esp32-c6: arduino_default_bits “static uint8_t __analogWidth = SOC_ADC_RTC_MAX_BITWIDTH; … static uint8_t __analogReturnedWidth = SOC_ADC_RTC_MAX_BITWIDTH; … SOC_ADC_RTC_MAX_BITWIDTH (12)”
    • adc param: esp32-c61: arduino_default_bits “static uint8_t __analogWidth = SOC_ADC_RTC_MAX_BITWIDTH; … static uint8_t __analogReturnedWidth = SOC_ADC_RTC_MAX_BITWIDTH; … SOC_ADC_RTC_MAX_BITWIDTH (12)”
    • adc param: esp32-h2: arduino_default_bits “static uint8_t __analogWidth = SOC_ADC_RTC_MAX_BITWIDTH; … static uint8_t __analogReturnedWidth = SOC_ADC_RTC_MAX_BITWIDTH; … SOC_ADC_RTC_MAX_BITWIDTH (12)”
    • adc param: esp32-p4: arduino_default_bits “static uint8_t __analogWidth = SOC_ADC_RTC_MAX_BITWIDTH; … static uint8_t __analogReturnedWidth = SOC_ADC_RTC_MAX_BITWIDTH; … SOC_ADC_RTC_MAX_BITWIDTH (12)”
    • adc param: all: arduino_default_atten “static uint8_t __analogAttenuation = ADC_11db; … Default is 11db”
    • adc param: all: arduino_read_resolution “if (!bits || bits > 16) { … __analogReturnedWidth = bits; … #if CONFIG_IDF_TARGET_ESP32 … __analogSetWidth(bits); // hardware analog resolution from 9 to 12 … return value >> (from - __analogReturnedWidth); … return value << (__analogReturnedWidth - from);”
  4. ESP32-S2 Series Datasheet v1.9 primary
    What it confirms (15)
    • adc param: esp32-s2: atten “ATTEN0, effective measurement range of 0 ~ 700 –10 10 mV”
    • adc param: esp32-s2: atten “ATTEN1, effective measurement range of 0 ~ 950 –11 11 mV”
    • adc param: esp32-s2: atten “ATTEN2, effective measurement range of 0 ~ 1200 –13 13 mV”
    • adc param: esp32-s2: atten “ATTEN3, effective measurement range of 0 ~ 2300 –17 17 mV”
    • battery param: esp32-s2: current “802.11b, 20 MHz, 1 Mbps, @19.5 dBm 310 … The current consumption measurements are taken with a 3.3 V supply at 25 °C of ambient temperature at the RF port. … All transmitters’ measurements are based on a 100% duty cycle.”
    • battery param: esp32-s2: current “802.11b/g/n, 20 MHz 63 … The current consumption measurements are taken with a 3.3 V supply at 25 °C of ambient temperature at the RF port. … The consumption in RX mode is measured when peripherals are disabled … and the CPU is idle.”
    • battery param: esp32-s2: current “CPU is idle 20.0 28.0 … The measurements below are applicable to ESP32-S2, ESP32-S2FH2, and ESP32-S2FH4. … In Modem-sleep mode, Wi-Fi is clock gated. … In Modem-sleep mode, the consumption might be higher when accessing flash.”
    • battery param: esp32-s2: current “CPU is running 23.0 32.0 … The measurements below are applicable to ESP32-S2, ESP32-S2FH2, and ESP32-S2FH4. … In Modem-sleep mode, Wi-Fi is clock gated. … In Modem-sleep mode, the consumption might be higher when accessing flash.”
    • battery param: esp32-s2: current “Light-sleep VDD_SPI and Wi-Fi are powered down, and all GPIOs are high-impedance 750 … VDD_SPI and Wi-Fi are powered down, and all GPIOs are high-impedance … In Light-sleep mode, with all related SPI pins pulled up, the current consumption of the em-bedded PSRAM is 140 µA.”
    • battery param: esp32-s2: current “The ULP co-processor ULP-FSM 170 … During Deep-sleep, when the ULP co-processor is powered on, peripherals such as GPIO and”
    • battery param: esp32-s2: current “is powered on2 ULP-RISC-V 190 … During Deep-sleep, when the ULP co-processor is powered on, peripherals such as GPIO and”
    • battery param: esp32-s2: current “Deep-sleep ULP sensor-monitored pattern3 22 … When touch sensors work with a duty cycle of 1%, the typical current … consumption is 22 µA.”
    • battery param: esp32-s2: current “RTC timer + RTC memory 25”
    • battery param: esp32-s2: current “RTC timer only 20”
    • battery param: esp32-s2: current “CHIP_PU is set to low level, the chip is powered off 1”
  5. ESP-IDF v5.5.5: components/soc/esp32s2/include/soc/soc_caps.h primary
    What it confirms (7)
    • adc param: esp32-s2: oneshot_bits “SOC_ADC_RTC_MIN_BITWIDTH (13) … SOC_ADC_RTC_MAX_BITWIDTH (13)”
    • ledc param: esp32-s2: timer_bits “SOC_LEDC_TIMER_BIT_WIDTH (14)”
    • ledc param: esp32-s2: channels “SOC_LEDC_CHANNEL_NUM (8)”
    • ledc param: esp32-s2: timers “SOC_LEDC_TIMER_NUM (4)”
    • uart param: esp32-s2: max_baud “SOC_UART_BITRATE_MAX (5000000)”
    • uart param: esp32-s2: fifo_len “SOC_UART_FIFO_LEN (128)”
    • uart param: esp32-s2: hp_uarts “SOC_UART_HP_NUM (2)”
  6. ESP32-S3 Series Datasheet v2.2 primary
    What it confirms (17)
    • adc param: esp32-s3: atten “ATTEN0, effective measurement range of 0 ~ 850 –5 5 mV”
    • adc param: esp32-s3: atten “ATTEN1, effective measurement range of 0 ~ 1100 –6 6 mV”
    • adc param: esp32-s3: atten “ATTEN2, effective measurement range of 0 ~ 1600 –10 10 mV”
    • adc param: esp32-s3: atten “ATTEN3, effective measurement range of 0 ~ 2900 –50 50 mV”
    • battery param: esp32-s3: current “802.11b, 1 Mbps, @21 dBm 340 … The current consumption measurements are taken with a 3.3 V supply at 25 °C ambient temperature. … TX current consumption is rated at a 100% duty cycle. … RX current consumption is rated when the peripherals are disabled and the CPU idle.”
    • battery param: esp32-s3: current “802.11b/g/n, HT20 88 … The current consumption measurements are taken with a 3.3 V supply at 25 °C ambient temperature. … TX current consumption is rated at a 100% duty cycle. … RX current consumption is rated when the peripherals are disabled and the CPU idle.”
    • battery param: esp32-s3: current “Bluetooth LE @ 0 dBm 176 … The current consumption measurements are taken with a 3.3 V supply at 25 °C ambient temperature. … TX current consumption is rated at a 100% duty cycle. … RX current consumption is rated when the peripherals are disabled and the CPU idle.”
    • battery param: esp32-s3: current “RX Bluetooth LE 93 … The current consumption measurements are taken with a 3.3 V supply at 25 °C ambient temperature. … TX current consumption is rated at a 100% duty cycle. … RX current consumption is rated when the peripherals are disabled and the CPU idle.”
    • battery param: esp32-s3: current “WAITI 32.9 47.6 … The measurements below are applicable to ESP32-S3 and ESP32-S3FH8. … Current consumption when all peripheral clocks are disabled. … Current consumption when all peripheral clocks are enabled. … In Modem-sleep mode, Wi-Fi is clock gated, and the current consumption might be higher when accessing”
    • battery param: esp32-s3: current “240 Dual core running 32-bit data access instructions 66.2 81.3 … The measurements below are applicable to ESP32-S3 and ESP32-S3FH8. … Current consumption when all peripheral clocks are disabled. … Current consumption when all peripheral clocks are enabled. … In Modem-sleep mode, Wi-Fi is clock gated, and the current consumption might be higher when accessing”
    • battery param: esp32-s3: current “Light-sleep1 VDD_SPI and Wi-Fi are powered down, and all GPIOs are high-impedance. 240 … VDD_SPI and Wi-Fi are powered down, and all GPIOs are high-impedance. … In Light-sleep mode, all related SPI pins are pulled up. For chips embedded with PSRAM, please add … corresponding PSRAM consumption values, e.g., 140 µA for 8 MB 8-line PSRAM (3.3 V), 200 µA for”
    • battery param: esp32-s3: current “The ULP co-processor ULP-FSM 170 … During Deep-sleep, when the ULP co-processor is powered on, peripherals such as GPIO and I2C”
    • battery param: esp32-s3: current “is powered on2 ULP-RISC-V 190 … During Deep-sleep, when the ULP co-processor is powered on, peripherals such as GPIO and I2C”
    • battery param: esp32-s3: current “Deep-sleep ULP sensor-monitored pattern3 18 … When touch sensors work with a duty cycle of 1%, the typical current consumption … is 18 µA.”
    • battery param: esp32-s3: current “RTC memory and RTC peripherals are powered up. 8”
    • battery param: esp32-s3: current “RTC memory is powered up. RTC peripherals are powered down. 7”
    • battery param: esp32-s3: current “CHIP_PU is set to low level. The chip is shut down. 1”
  7. ESP-IDF v5.5.5: components/soc/esp32s3/include/soc/soc_caps.h primary
    What it confirms (7)
    • adc param: esp32-s3: oneshot_bits “SOC_ADC_RTC_MIN_BITWIDTH (12) … SOC_ADC_RTC_MAX_BITWIDTH (12)”
    • ledc param: esp32-s3: timer_bits “SOC_LEDC_TIMER_BIT_WIDTH (14)”
    • ledc param: esp32-s3: channels “SOC_LEDC_CHANNEL_NUM (8)”
    • ledc param: esp32-s3: timers “SOC_LEDC_TIMER_NUM (4)”
    • uart param: esp32-s3: max_baud “SOC_UART_BITRATE_MAX (5000000)”
    • uart param: esp32-s3: fifo_len “SOC_UART_FIFO_LEN (128)”
    • uart param: esp32-s3: hp_uarts “SOC_UART_HP_NUM (3)”
  8. ESP8684 Series Datasheet v2.3 (ESP32-C2 group) primary
    What it confirms (11)
    • adc param: esp32-c2: atten “ATTEN0, effective measurement range of 0 ~ 950 -5 5 mV”
    • adc param: esp32-c2: atten “ATTEN3, effective measurement range of 0 ~ 2800 -10 10 mV”
    • battery param: esp32-c2: current “802.11b, 1 Mbps, @22 dBm 370 … The current consumption measurements are taken with a 3.3 V supply at 25 °C of ambient temperature at the RF port. … TX current consumption is rated at a 100% duty cycle. … RX current consumption is rated when the peripherals are disabled and the CPU idle.”
    • battery param: esp32-c2: current “RX 802.11b/g/n, HT20 65 … The current consumption measurements are taken with a 3.3 V supply at 25 °C of ambient temperature at the RF port. … TX current consumption is rated at a 100% duty cycle. … RX current consumption is rated when the peripherals are disabled and the CPU idle.”
    • battery param: esp32-c2: current “Bluetooth LE @ 0 dBm 150 … The current consumption measurements are taken with a 3.3 V supply at 25 °C of ambient temperature at the RF port. … TX current consumption is rated at a 100% duty cycle. … RX current consumption is rated when the peripherals are disabled and the CPU idle.”
    • battery param: esp32-c2: current “RX Bluetooth LE 62 … The current consumption measurements are taken with a 3.3 V supply at 25 °C of ambient temperature at the RF port. … TX current consumption is rated at a 100% duty cycle. … RX current consumption is rated when the peripherals are disabled and the CPU idle.”
    • battery param: esp32-c2: current “WFI (Wait-for-Interrupt) 10.7 11.5 … Current consumption when all peripheral clocks are disabled. … Current consumption when all peripheral clocks are enabled. … In Modem-sleep mode, Wi-Fi is clock gated, and the current consumption might be higher when accessing”
    • battery param: esp32-c2: current “CPU run at full speed 14.7 15.6 … Current consumption when all peripheral clocks are disabled. … Current consumption when all peripheral clocks are enabled. … In Modem-sleep mode, Wi-Fi is clock gated, and the current consumption might be higher when accessing”
    • battery param: esp32-c2: current “Light-sleep — 140 µA”
    • battery param: esp32-c2: current “Deep-sleep Only RTC timer is powered on 5 µA”
    • battery param: esp32-c2: current “CHIP_EN is set to low level, and the chip is powered off 1 µA”
  9. ESP-IDF v5.5.5: components/soc/esp32c2/include/soc/soc_caps.h primary
    What it confirms (7)
    • adc param: esp32-c2: oneshot_bits “SOC_ADC_RTC_MIN_BITWIDTH (12) … SOC_ADC_RTC_MAX_BITWIDTH (12)”
    • ledc param: esp32-c2: timer_bits “SOC_LEDC_TIMER_BIT_WIDTH (14)”
    • ledc param: esp32-c2: channels “SOC_LEDC_CHANNEL_NUM (6)”
    • ledc param: esp32-c2: timers “SOC_LEDC_TIMER_NUM (4)”
    • uart param: esp32-c2: max_baud “SOC_UART_BITRATE_MAX (2500000)”
    • uart param: esp32-c2: fifo_len “SOC_UART_FIFO_LEN (128)”
    • uart param: esp32-c2: hp_uarts “SOC_UART_HP_NUM (2)”
  10. ESP32-C3 Series Datasheet v2.5 primary
    What it confirms (11)
    • adc param: esp32-c3: atten “ATTEN0, effective measurement range of 0 ~ 750 –10 10 mV”
    • adc param: esp32-c3: atten “ATTEN1, effective measurement range of 0 ~ 1050 –10 10 mV”
    • adc param: esp32-c3: atten “ATTEN2, effective measurement range of 0 ~ 1300 –10 10 mV”
    • adc param: esp32-c3: atten “ATTEN3, effective measurement range of 0 ~ 2500 –35 35 mV”
    • battery param: esp32-c3: current “802.11b, 1 Mbps, @21 dBm 335 … The current consumption measurements are taken with a 3.3 V supply at 25 °C of ambient temperature at the RF port. … All transmitters’ measurements are based on a 100% duty cycle.”
    • battery param: esp32-c3: current “802.11b/g/n, HT20 84 … The current consumption measurements are taken with a 3.3 V supply at 25 °C of ambient temperature at the RF port. … All transmitters’ measurements are based on a 100% duty cycle.”
    • battery param: esp32-c3: current “CPU is running 23 28 … In Modem-sleep mode, Wi-Fi is clock gated. … In Modem-sleep mode, the consumption might be higher when accessing flash.”
    • battery param: esp32-c3: current “CPU is idle 16 21 … In Modem-sleep mode, Wi-Fi is clock gated. … In Modem-sleep mode, the consumption might be higher when accessing flash.”
    • battery param: esp32-c3: current “Light-sleep VDD_SPI and Wi-Fi are powered down, and all GPIOs are high-impedance 130 … VDD_SPI and Wi-Fi are powered down, and all GPIOs are high-impedance”
    • battery param: esp32-c3: current “Deep-sleep RTC timer + RTC memory 5”
    • battery param: esp32-c3: current “Power off CHIP_EN is set to low level, the chip is powered off 1”
  11. ESP-IDF v5.5.5: components/soc/esp32c3/include/soc/soc_caps.h primary
    What it confirms (7)
    • adc param: esp32-c3: oneshot_bits “SOC_ADC_RTC_MIN_BITWIDTH (12) … SOC_ADC_RTC_MAX_BITWIDTH (12)”
    • ledc param: esp32-c3: timer_bits “SOC_LEDC_TIMER_BIT_WIDTH (14)”
    • ledc param: esp32-c3: channels “SOC_LEDC_CHANNEL_NUM (6)”
    • ledc param: esp32-c3: timers “SOC_LEDC_TIMER_NUM (4)”
    • uart param: esp32-c3: max_baud “SOC_UART_BITRATE_MAX (5000000)”
    • uart param: esp32-c3: fifo_len “SOC_UART_FIFO_LEN (128)”
    • uart param: esp32-c3: hp_uarts “SOC_UART_HP_NUM (2)”
  12. ESP32-C5 Series Datasheet v1.5 primary
    What it confirms (17)
    • adc param: esp32-c5: atten “ATTEN0, effective measurement range of 0 ~ 1000 –10 10 mV”
    • adc param: esp32-c5: atten “ATTEN1, effective measurement range of 0 ~ 1300 –10 10 mV”
    • adc param: esp32-c5: atten “ATTEN2, effective measurement range of 0 ~ 1900 –12 12 mV”
    • adc param: esp32-c5: atten “ATTEN3, effective measurement range of 0 ~ 3300 –15 15 mV”
    • battery param: esp32-c5: current “802.11b, 1 Mbps, DSSS @ 20 dBm 320 … The current consumption measurements are taken with a 3.3 V supply at 25 °C ambient temperature. … TX current consumption is rated at a 100% duty cycle. … RX current consumption is rated when the peripherals are disabled and the CPU idle.”
    • battery param: esp32-c5: current “802.11b/g/n, HT20 87 … The current consumption measurements are taken with a 3.3 V supply at 25 °C ambient temperature. … TX current consumption is rated at a 100% duty cycle. … RX current consumption is rated when the peripherals are disabled and the CPU idle.”
    • battery param: esp32-c5: current “802.11a, 6 Mbps, OFDM @ 18 dBm 408 … The current consumption measurements are taken with a 3.3 V supply at 25 °C ambient temperature. … TX current consumption is rated at a 100% duty cycle. … RX current consumption is rated when the peripherals are disabled and the CPU idle.”
    • battery param: esp32-c5: current “802.11a/n, HT20 110 … The current consumption measurements are taken with a 3.3 V supply at 25 °C ambient temperature. … TX current consumption is rated at a 100% duty cycle. … RX current consumption is rated when the peripherals are disabled and the CPU idle.”
    • battery param: esp32-c5: current “Bluetooth LE @ 0 dBm 140 … The current consumption measurements are taken with a 3.3 V supply at 25 °C ambient temperature. … TX current consumption is rated at a 100% duty cycle. … RX current consumption is rated when the peripherals are disabled and the CPU idle.”
    • battery param: esp32-c5: current “RX Bluetooth LE 79 … The current consumption measurements are taken with a 3.3 V supply at 25 °C ambient temperature. … TX current consumption is rated at a 100% duty cycle. … RX current consumption is rated when the peripherals are disabled and the CPU idle.”
    • battery param: esp32-c5: current “RX 802.15.4 78 … The current consumption measurements are taken with a 3.3 V supply at 25 °C ambient temperature. … TX current consumption is rated at a 100% duty cycle. … RX current consumption is rated when the peripherals are disabled and the CPU idle.”
    • battery param: esp32-c5: current “WAITI 18 27 … In Modem-sleep mode, Wi-Fi is clock gated. … In Modem-sleep mode, the consumption might be higher when accessing flash.”
    • battery param: esp32-c5: current “Run CoreMark 34 43 … In Modem-sleep mode, Wi-Fi is clock gated. … In Modem-sleep mode, the consumption might be higher when accessing flash.”
    • battery param: esp32-c5: current “CPU and wireless communication modules are powered down, Light-sleep 0.25 peripheral clocks are disabled, and all GPIOs are high-impedance … CPU and wireless communication modules are powered down, … peripheral clocks are disabled, and all GPIOs are high-impedance”
    • battery param: esp32-c5: current “CPU, wireless communication modules and peripherals are pow-0.06 ered down, and all GPIOs are high-impedance”
    • battery param: esp32-c5: current “Deep-sleep RTC timer and LP memory are powered on 0.012”
    • battery param: esp32-c5: current “CHIP_PU is set to low level, the chip is powered off 0.002”
  13. ESP-IDF v5.5.5: components/soc/esp32c5/include/soc/soc_caps.h primary
    What it confirms (8)
    • adc param: esp32-c5: oneshot_bits “SOC_ADC_RTC_MIN_BITWIDTH (12) … SOC_ADC_RTC_MAX_BITWIDTH (12)”
    • ledc param: esp32-c5: timer_bits “SOC_LEDC_TIMER_BIT_WIDTH (20)”
    • ledc param: esp32-c5: channels “SOC_LEDC_CHANNEL_NUM (6)”
    • ledc param: esp32-c5: timers “SOC_LEDC_TIMER_NUM (4)”
    • uart param: esp32-c5: max_baud “SOC_UART_BITRATE_MAX (5000000)”
    • uart param: esp32-c5: fifo_len “SOC_UART_FIFO_LEN (128)”
    • uart param: esp32-c5: hp_uarts “SOC_UART_HP_NUM (2)”
    • uart param: esp32-c5: lp_fifo_len “SOC_UART_LP_NUM (1U) … SOC_LP_UART_FIFO_LEN (16)”
  14. ESP32-C6 Series Datasheet v1.6 primary
    What it confirms (15)
    • adc param: esp32-c6: atten “ATTEN0, effective measurement range of 0 ~ 1000 –12 12 mV”
    • adc param: esp32-c6: atten “ATTEN1, effective measurement range of 0 ~ 1300 –12 12 mV”
    • adc param: esp32-c6: atten “ATTEN2, effective measurement range of 0 ~ 1900 –23 23 mV”
    • adc param: esp32-c6: atten “ATTEN3, effective measurement range of 0 ~ 3300 –40 40 mV”
    • battery param: esp32-c6: current “802.11b, 1 Mbps, DSSS @ 21.0 dBm 354 … The current consumption measurements are taken with a 3.3 V supply at 25 °C ambient temperature. … TX current consumption is rated at a 100% duty cycle. … RX current consumption is rated when the peripherals are disabled and the CPU idle.”
    • battery param: esp32-c6: current “802.11b/g/n, HT20 78 … The current consumption measurements are taken with a 3.3 V supply at 25 °C ambient temperature. … TX current consumption is rated at a 100% duty cycle. … RX current consumption is rated when the peripherals are disabled and the CPU idle.”
    • battery param: esp32-c6: current “Bluetooth LE @ 0 dBm 130 … The current consumption measurements are taken with a 3.3 V supply at 25 °C ambient temperature. … TX current consumption is rated at a 100% duty cycle. … RX current consumption is rated when the peripherals are disabled and the CPU idle.”
    • battery param: esp32-c6: current “RX Bluetooth LE 71 … The current consumption measurements are taken with a 3.3 V supply at 25 °C ambient temperature. … TX current consumption is rated at a 100% duty cycle. … RX current consumption is rated when the peripherals are disabled and the CPU idle.”
    • battery param: esp32-c6: current “RX 802.15.4 74 … The current consumption measurements are taken with a 3.3 V supply at 25 °C ambient temperature. … TX current consumption is rated at a 100% duty cycle. … RX current consumption is rated when the peripherals are disabled and the CPU idle.”
    • battery param: esp32-c6: current “CPU is running 27 38 … In Modem-sleep mode, Wi-Fi is clock gated. … In Modem-sleep mode, the consumption might be higher when accessing flash.”
    • battery param: esp32-c6: current “CPU is idle 17 28 … In Modem-sleep mode, Wi-Fi is clock gated. … In Modem-sleep mode, the consumption might be higher when accessing flash.”
    • battery param: esp32-c6: current “CPU and wireless communication modules are powered down, 180 Light-sleep peripheral clocks are disabled, and all GPIOs are high-impedance … CPU and wireless communication modules are powered down, … peripheral clocks are disabled, and all GPIOs are high-impedance”
    • battery param: esp32-c6: current “CPU, wireless communication modules and peripherals are pow-35 ered down, and all GPIOs are high-impedance”
    • battery param: esp32-c6: current “Deep-sleep RTC timer and LP memory are powered on 7”
    • battery param: esp32-c6: current “CHIP_PU is set to low level, the chip is powered off 1”
  15. ESP-IDF v5.5.5: components/soc/esp32c6/include/soc/soc_caps.h primary
    What it confirms (8)
    • adc param: esp32-c6: oneshot_bits “SOC_ADC_RTC_MIN_BITWIDTH (12) … SOC_ADC_RTC_MAX_BITWIDTH (12)”
    • ledc param: esp32-c6: timer_bits “SOC_LEDC_TIMER_BIT_WIDTH (20)”
    • ledc param: esp32-c6: channels “SOC_LEDC_CHANNEL_NUM (6)”
    • ledc param: esp32-c6: timers “SOC_LEDC_TIMER_NUM (4)”
    • uart param: esp32-c6: max_baud “SOC_UART_BITRATE_MAX (5000000)”
    • uart param: esp32-c6: fifo_len “SOC_UART_FIFO_LEN (128)”
    • uart param: esp32-c6: hp_uarts “SOC_UART_HP_NUM (2)”
    • uart param: esp32-c6: lp_fifo_len “SOC_UART_LP_NUM (1U) … SOC_LP_UART_FIFO_LEN (16)”
  16. ESP32-C61 Series Datasheet v1.1 primary
    What it confirms (14)
    • adc param: esp32-c61: atten “ATTEN0, effective measurement range of 0 ~ 1000 –10 10 mV”
    • adc param: esp32-c61: atten “ATTEN1, effective measurement range of 0 ~ 1300 –10 10 mV”
    • adc param: esp32-c61: atten “ATTEN2, effective measurement range of 0 ~ 1900 –12 12 mV”
    • adc param: esp32-c61: atten “ATTEN3, effective measurement range of 0 ~ 3300 –15 15 mV”
    • battery param: esp32-c61: current “802.11b, 1 Mbps, DSSS @21 dBm 360 … The current consumption measurements are taken with a 3.3 V supply at 25 °C ambient temperature. … TX current consumption is rated at a 100% duty cycle. … RX current consumption is rated when the peripherals are disabled and the CPU idle.”
    • battery param: esp32-c61: current “802.11b/g/n, HT20 88 … The current consumption measurements are taken with a 3.3 V supply at 25 °C ambient temperature. … TX current consumption is rated at a 100% duty cycle. … RX current consumption is rated when the peripherals are disabled and the CPU idle.”
    • battery param: esp32-c61: current “Bluetooth LE @ 0 dBm 128 … The current consumption measurements are taken with a 3.3 V supply at 25 °C ambient temperature. … TX current consumption is rated at a 100% duty cycle. … RX current consumption is rated when the peripherals are disabled and the CPU idle.”
    • battery param: esp32-c61: current “RX Bluetooth LE 81 … The current consumption measurements are taken with a 3.3 V supply at 25 °C ambient temperature. … TX current consumption is rated at a 100% duty cycle. … RX current consumption is rated when the peripherals are disabled and the CPU idle.”
    • battery param: esp32-c61: current “WAITI 11 18 … In Modem-sleep mode, Wi-Fi is clock gated. … In Modem-sleep mode, the consumption might be higher when accessing flash.”
    • battery param: esp32-c61: current “Run CoreMark 21 28 … In Modem-sleep mode, Wi-Fi is clock gated. … In Modem-sleep mode, the consumption might be higher when accessing flash.”
    • battery param: esp32-c61: current “CPU and wireless communication modules are powered down, 0.2 Light-sleep peripheral clocks are disabled, and all GPIOs are high-impedance … CPU and wireless communication modules are powered down, … peripheral clocks are disabled, and all GPIOs are high-impedance”
    • battery param: esp32-c61: current “CPU, wireless communication modules and peripherals are pow-0.05 ered down, and all GPIOs are high-impedance”
    • battery param: esp32-c61: current “Deep-sleep LP timer and LP memory are powered on 0.01”
    • battery param: esp32-c61: current “CHIP_PU is set to low level, the chip is powered off 0.001”
  17. ESP-IDF v5.5.5: components/soc/esp32c61/include/soc/soc_caps.h primary
    What it confirms (7)
    • adc param: esp32-c61: oneshot_bits “SOC_ADC_RTC_MIN_BITWIDTH (12) … SOC_ADC_RTC_MAX_BITWIDTH (12)”
    • ledc param: esp32-c61: timer_bits “SOC_LEDC_TIMER_BIT_WIDTH (20)”
    • ledc param: esp32-c61: channels “SOC_LEDC_CHANNEL_NUM (6)”
    • ledc param: esp32-c61: timers “SOC_LEDC_TIMER_NUM (4)”
    • uart param: esp32-c61: max_baud “SOC_UART_BITRATE_MAX (5000000)”
    • uart param: esp32-c61: fifo_len “SOC_UART_FIFO_LEN (128)”
    • uart param: esp32-c61: hp_uarts “SOC_UART_HP_NUM (3)”
  18. ESP32-H2 Series Datasheet v1.3 primary
    What it confirms (14)
    • adc param: esp32-h2: atten “ATTEN0, effective measurement range of 0 ~ 1000 –7 7 mV”
    • adc param: esp32-h2: atten “ATTEN1, effective measurement range of 0 ~ 1300 –8 8 mV”
    • adc param: esp32-h2: atten “ATTEN2, effective measurement range of 0 ~ 1900 –12 12 mV”
    • adc param: esp32-h2: atten “ATTEN3, effective measurement range of 0 ~ 3300 –23 23 mV”
    • battery param: esp32-h2: current “Bluetooth LE @ 0 dBm 36 … The current consumption measurements are taken with a 3.3 V supply at 25 °C of ambient temperature at the RF port. … All transmitters’ measurements are based on a 100% duty cycle.”
    • battery param: esp32-h2: current “RX Bluetooth LE 24 … The current consumption measurements are taken with a 3.3 V supply at 25 °C of ambient temperature at the RF port. … All transmitters’ measurements are based on a 100% duty cycle.”
    • battery param: esp32-h2: current “802.15.4 @ 0 dBm 36 … The current consumption measurements are taken with a 3.3 V supply at 25 °C of ambient temperature at the RF port. … All transmitters’ measurements are based on a 100% duty cycle.”
    • battery param: esp32-h2: current “RX 802.15.4 25 … The current consumption measurements are taken with a 3.3 V supply at 25 °C of ambient temperature at the RF port. … All transmitters’ measurements are based on a 100% duty cycle.”
    • battery param: esp32-h2: current “CPU running 10 17 … The measurements below are applicable to ESP32-H2FH2S and ESP32-H2FH4S. … In Modem-sleep mode, the current consumption might be higher when accessing flash.”
    • battery param: esp32-h2: current “CPU in idle 6 13 … The measurements below are applicable to ESP32-H2FH2S and ESP32-H2FH4S. … In Modem-sleep mode, the current consumption might be higher when accessing flash.”
    • battery param: esp32-h2: current “ered down, peripheral clocks are disabled, and all 85 … CPU and wireless communication modules are pow- … GPIOs are high-impedance … The measurements below are applicable to ESP32-H2FH2S and ESP32-H2FH4S.”
    • battery param: esp32-h2: current “and all GPIOs are high-25 impedance … CPU, wireless communication modules and periph … The measurements below are applicable to ESP32-H2FH2S and ESP32-H2FH4S.”
    • battery param: esp32-h2: current “Deep-sleep RTC timer and LP memory are powered on 7 … The measurements below are applicable to ESP32-H2FH2S and ESP32-H2FH4S.”
    • battery param: esp32-h2: current “CHIP_EN is set to low level, the chip is powered off 1 … The measurements below are applicable to ESP32-H2FH2S and ESP32-H2FH4S.”
  19. ESP-IDF v5.5.5: components/soc/esp32h2/include/soc/soc_caps.h primary
    What it confirms (7)
    • adc param: esp32-h2: oneshot_bits “SOC_ADC_RTC_MIN_BITWIDTH (12) … SOC_ADC_RTC_MAX_BITWIDTH (12)”
    • ledc param: esp32-h2: timer_bits “SOC_LEDC_TIMER_BIT_WIDTH (20)”
    • ledc param: esp32-h2: channels “SOC_LEDC_CHANNEL_NUM (6)”
    • ledc param: esp32-h2: timers “SOC_LEDC_TIMER_NUM (4)”
    • uart param: esp32-h2: max_baud “SOC_UART_BITRATE_MAX (5000000)”
    • uart param: esp32-h2: fifo_len “SOC_UART_FIFO_LEN (128)”
    • uart param: esp32-h2: hp_uarts “SOC_UART_HP_NUM (2)”
  20. ESP32-P4 Series Datasheet Pre-release v0.7 (preliminary; covers chip revision v3.x) primary
    What it confirms (10)
    • adc param: esp32-p4: atten “ATTEN0, effective measurement range of 0–1000 –12 12 mV”
    • adc param: esp32-p4: atten “ATTEN1, effective measurement range of 0–1300 –12 12 mV”
    • adc param: esp32-p4: atten “ATTEN2, effective measurement range of 0–1900 –12 12 mV”
    • adc param: esp32-p4: atten “ATTEN3, effective measurement range of 0–3300 –15 15 mV”
    • battery param: esp32-p4: current “WAITI (Dual core in idle state) 23 56 … The current consumption measurements in different modes are taken with a 3.3 V supply at 25 °C ambient … Current consumption when all peripheral clocks are disabled. … Current consumption when all peripheral clocks are enabled. … In Active mode, the current consumption might be higher when accessing flash/PSRAM.”
    • battery param: esp32-p4: current “Dual core running 32-bit data access instructions 97 150 … The current consumption measurements in different modes are taken with a 3.3 V supply at 25 °C ambient … Current consumption when all peripheral clocks are disabled. … Current consumption when all peripheral clocks are enabled. … In Active mode, the current consumption might be higher when accessing flash/PSRAM.”
    • battery param: esp32-p4: current “All GPIOs are high-impedance, and all power supplies are enabled 0.8 … The current consumption measurements in different modes are taken with a 3.3 V supply at 25 °C ambient … The power consumption data was measured with USB 2.0 not working. … The current in Light-sleep mode refers to the current measured when the PSRAM is not”
    • battery param: esp32-p4: current “and chip is connected through USB 0.085 … All GPIOs are high-impedance, most of peripherals are disabled, … The current consumption measurements in different modes are taken with a 3.3 V supply at 25 °C ambient … The power consumption data was measured with USB 2.0 not working. … The current in Light-sleep mode refers to the current measured when the PSRAM is not”
    • battery param: esp32-p4: current “Deep-sleep LP timer and LP memory are powered on 0.012 … The current consumption measurements in different modes are taken with a 3.3 V supply at 25 °C ambient … The power consumption data was measured with USB 2.0 not working.”
    • battery param: esp32-p4: current “CHIP_PU is set to low level, the chip is powered off 0.001 … The current consumption measurements in different modes are taken with a 3.3 V supply at 25 °C ambient … The power consumption data was measured with USB 2.0 not working.”
  21. ESP-IDF v5.5.5: components/soc/esp32p4/include/soc/soc_caps.h primary
    What it confirms (8)
    • adc param: esp32-p4: oneshot_bits “SOC_ADC_RTC_MIN_BITWIDTH (12) … SOC_ADC_RTC_MAX_BITWIDTH (12)”
    • ledc param: esp32-p4: timer_bits “SOC_LEDC_TIMER_BIT_WIDTH (20)”
    • ledc param: esp32-p4: channels “SOC_LEDC_CHANNEL_NUM (8)”
    • ledc param: esp32-p4: timers “SOC_LEDC_TIMER_NUM (4)”
    • uart param: esp32-p4: max_baud “SOC_UART_BITRATE_MAX (5000000)”
    • uart param: esp32-p4: fifo_len “SOC_UART_FIFO_LEN (128)”
    • uart param: esp32-p4: hp_uarts “SOC_UART_HP_NUM (5)”
    • uart param: esp32-p4: lp_fifo_len “SOC_UART_LP_NUM (1U) … SOC_LP_UART_FIFO_LEN (16)”
  22. ESP-IDF v5.5.5: components/hal/include/hal/adc_types.h primary
    What it confirms (1)
    • adc param: all: atten_enum “ADC_ATTEN_DB_0 = 0, … ADC_ATTEN_DB_2_5 = 1, … ADC_ATTEN_DB_6 = 2, … ADC_ATTEN_DB_12 = 3, … ADC_ATTEN_DB_11 __attribute__((deprecated)) = ADC_ATTEN_DB_12,”
  23. arduino-esp32 3.3.12: cores/esp32/esp32-hal-adc.h primary
    What it confirms (1)
    • adc param: all: arduino_atten_enum “typedef enum { ADC_0db, ADC_2_5db, ADC_6db, ADC_11db, ADC_ATTENDB_MAX } adc_attenuation_t;”
  24. ESP-IDF v5.5.5 Programming Guide (ESP32): LED Control (LEDC) primary
    What it confirms (5)
    • ledc param: esp32: clk_source “APB_CLK | 80 MHz | High / Low”
    • ledc param: esp32: clk_source “REF_TICK | 1 MHz | High / Low”
    • ledc param: esp32: clk_source “RC_FAST_CLK | ~ 8 MHz | Low | Dynamic Frequency Scaling compatible, Light-sleep compatible”
    • ledc param: esp32: shared_clock “All chips except esp32 and esp32s2 do not have timer-specific clock sources”
    • ledc param: esp32: no_full_duty_at_max_res “On ESP32, when channel's binded timer selects its maximum duty resolution, the duty cycle value cannot be set to (2 ** duty_resolution). … Otherwise, the internal duty counter in the hardware will overflow and be messed up.”
  25. ESP32 Technical Reference Manual v5.9 primary
    What it confirms (14)
    • ledc param: esp32: clk_source “APB_CLK (80 MHz)”
    • ledc param: esp32: clk_source “REF_TICK (1 MHz)”
    • ledc param: esp32: clk_source “RC_FAST_CLK (8 MHz)”
    • ledc param: esp32: timer_bits “The output signal of the timer is the 20-bit value generated by the counter.”
    • ledc param: esp32: channels “controller contains eight high-speed and eight low-speed channels”
    • ledc param: esp32: timers “There are four high-speed clock modules … There are also four low-speed clock modules”
    • ledc param: esp32: div_int_bits “the highest 10 bits represent the integer portion A … The division factor ranges from 1 ∼ 1023.”
    • ledc param: esp32: div_frac_bits “while the lowest eight bits contain the fractional portion B”
    • ledc param: esp32: min_div_x_2res “Timer Configuration Constraints … must satisfy the following condition: … 2LEDC_HSTIMERx_DUTY_RES ≥ 8”
    • uart param: esp32: fifo_len “1024 × 8-bit RAM shared by three UART transmit-FIFOs and receive-FIFOs … One block holds 128 × 8-bit data.”
    • uart param: all: frame_start_bits “A typical UART frame begins with a START bit”
    • uart param: all: frame_data_bits “Supports 5/6/7/8 bits of data length”
    • uart param: all: frame_parity_bits “Supports parity bit”
    • uart param: all: frame_stop_bits “Supports 1/1.5/2 STOP bits”
  26. ESP-IDF v5.5.5: components/hal/esp32/include/hal/ledc_ll.h primary
    What it confirms (2)
    • ledc param: esp32: div_frac_bits “#define LEDC_LL_FRACTIONAL_BITS (8)”
    • ledc param: esp32: auto_clk_order “#define LEDC_LL_TIMER_SPECIFIC_CLOCKS {\ … LEDC_REF_TICK, \ … #define LEDC_LL_GLOBAL_CLOCKS { \ … LEDC_SLOW_CLK_APB, \ … LEDC_SLOW_CLK_RC_FAST, \ … If the SoC presents timer-specific clock(s), try to achieve the given frequency … No divider was found yet, try with APB! … On ESP32, only low speed channel can use the global clocks. … /* If the divisor is valid, we can return this value. */”
  27. arduino-esp32 3.3.12: cores/esp32/esp32-hal-ledc.c primary
    What it confirms (15)
    • ledc param: esp32: arduino_default_clk “#define LEDC_DEFAULT_CLK LEDC_AUTO_CLK … Original ESP32 does not support XTAL as an LEDC source and defaults to … ``LEDC_AUTO_CLK`` instead.”
    • ledc param: esp32-s2: arduino_default_clk “#ifdef SOC_LEDC_SUPPORT_XTAL_CLOCK … #define LEDC_DEFAULT_CLK LEDC_USE_XTAL_CLK … SOC_LEDC_SUPPORT_XTAL_CLOCK (1)”
    • ledc param: esp32-s3: arduino_default_clk “#ifdef SOC_LEDC_SUPPORT_XTAL_CLOCK … #define LEDC_DEFAULT_CLK LEDC_USE_XTAL_CLK … SOC_LEDC_SUPPORT_XTAL_CLOCK (1)”
    • ledc param: esp32-c2: arduino_default_clk “#ifdef SOC_LEDC_SUPPORT_XTAL_CLOCK … #define LEDC_DEFAULT_CLK LEDC_USE_XTAL_CLK … SOC_LEDC_SUPPORT_XTAL_CLOCK (1)”
    • ledc param: esp32-c3: arduino_default_clk “#ifdef SOC_LEDC_SUPPORT_XTAL_CLOCK … #define LEDC_DEFAULT_CLK LEDC_USE_XTAL_CLK … SOC_LEDC_SUPPORT_XTAL_CLOCK (1)”
    • ledc param: esp32-c5: arduino_default_clk “#ifdef SOC_LEDC_SUPPORT_XTAL_CLOCK … #define LEDC_DEFAULT_CLK LEDC_USE_XTAL_CLK … SOC_LEDC_SUPPORT_XTAL_CLOCK (1)”
    • ledc param: esp32-c6: arduino_default_clk “#ifdef SOC_LEDC_SUPPORT_XTAL_CLOCK … #define LEDC_DEFAULT_CLK LEDC_USE_XTAL_CLK … SOC_LEDC_SUPPORT_XTAL_CLOCK (1)”
    • ledc param: esp32-c61: arduino_default_clk “#ifdef SOC_LEDC_SUPPORT_XTAL_CLOCK … #define LEDC_DEFAULT_CLK LEDC_USE_XTAL_CLK … SOC_LEDC_SUPPORT_XTAL_CLOCK (1)”
    • ledc param: esp32-h2: arduino_default_clk “#ifdef SOC_LEDC_SUPPORT_XTAL_CLOCK … #define LEDC_DEFAULT_CLK LEDC_USE_XTAL_CLK … SOC_LEDC_SUPPORT_XTAL_CLOCK (1)”
    • ledc param: esp32-p4: arduino_default_clk “#ifdef SOC_LEDC_SUPPORT_XTAL_CLOCK … #define LEDC_DEFAULT_CLK LEDC_USE_XTAL_CLK … SOC_LEDC_SUPPORT_XTAL_CLOCK (1)”
    • ledc param: all: arduino_analogwrite_freq “static int analog_frequency = 1000; … if (ledcAttach(pin, analog_frequency, analog_resolution) == 0) {”
    • ledc param: all: arduino_analogwrite_res “static uint8_t analog_resolution = 8; … range is from 0 (always off) to 255 (always on).”
    • ledc param: all: arduino_ledcwritetone_res “uint32_t ledcWriteTone(uint8_t pin, uint32_t freq) { … ledc_timer.duty_resolution = 10;”
    • ledc param: all: arduino_resolution_limit “#define LEDC_MAX_BIT_WIDTH SOC_LEDC_TIMER_BIT_WIDTH … if (resolution == 0 || resolution > LEDC_MAX_BIT_WIDTH) {”
    • ledc param: all: arduino_ledcwrite_full_on “//Fixing if all bits in resolution is set = LEDC FULL ON … uint32_t max_duty = (1 << bus->channel_resolution) - 1; … if ((duty >= max_duty) && (max_duty != 1)) { … duty = max_duty + 1;”
  28. ESP-IDF v5.5.5 Programming Guide (ESP32-S2): LED Control (LEDC) primary
    What it confirms (7)
    • ledc param: esp32-s2: clk_source “APB_CLK | 80 MHz | / | REF_TICK”
    • ledc param: esp32-s2: clk_source “REF_TICK | 1 MHz | Dynamic Frequency Scaling compatible”
    • ledc param: esp32-s2: clk_source “RC_FAST_CLK | ~ 8 MHz | Dynamic Frequency Scaling compatible, Light-sleep compatible”
    • ledc param: esp32-s2: clk_source “XTAL_CLK | 40 MHz | Dynamic Frequency Scaling compatible”
    • ledc param: esp32-s2: channels “It has 8 channels which can generate independent waveforms”
    • ledc param: esp32-s2: shared_clock “All chips except esp32 and esp32s2 do not have timer-specific clock sources”
    • ledc param: esp32-s2: no_full_duty_at_max_res “On ESP32-S2, when channel's binded timer selects its maximum duty resolution, the duty cycle value cannot be set to (2 ** duty_resolution). … Otherwise, the internal duty counter in the hardware will overflow and be messed up.”
  29. ESP32-S2 Technical Reference Manual v1.3 primary
    What it confirms (7)
    • ledc param: esp32-s2: clk_source “APB_CLK (80 MHz)”
    • ledc param: esp32-s2: clk_source “REF_TICK (1 MHz)”
    • ledc param: esp32-s2: clk_source “RC_FAST_CLK (8 MHz)”
    • ledc param: esp32-s2: timer_bits “The LED PWM controller has a 14-bit counter”
    • ledc param: esp32-s2: div_int_bits “the highest 10 bits is the integer part”
    • ledc param: esp32-s2: div_frac_bits “while the lowest eight bits is the fractional part represented as B”
    • uart param: esp32-s2: max_baud “When using an 80 MHz input clock, the UART controller supports a maximum baud rate of 5 Mbaud.”
  30. ESP-IDF v5.5.5: components/hal/esp32s2/include/hal/ledc_ll.h primary
    What it confirms (1)
    • ledc param: esp32-s2: div_frac_bits “#define LEDC_LL_FRACTIONAL_BITS (8)”
  31. ESP-IDF v5.5.5 Programming Guide (ESP32-S3): LED Control (LEDC) primary
    What it confirms (7)
    • ledc param: esp32-s3: clk_source “APB_CLK | 80 MHz | / | RC_FAST_CLK”
    • ledc param: esp32-s3: clk_source “RC_FAST_CLK | ~ 20 MHz | Dynamic Frequency Scaling compatible, Light-sleep compatible”
    • ledc param: esp32-s3: clk_source “XTAL_CLK | 40 MHz | Dynamic Frequency Scaling compatible”
    • ledc param: esp32-s3: channels “It has 8 channels which can generate independent waveforms”
    • ledc param: esp32-s3: shared_clock “For ESP32-S3, all timers share one clock source.”
    • ledc param: esp32-s3: no_full_duty_at_max_res “On ESP32-S3, when channel's binded timer selects its maximum duty resolution, the duty cycle value cannot be set to (2 ** duty_resolution). … Otherwise, the internal duty counter in the hardware will overflow and be messed up.”
    • ledc param: all: duty_range “should be from 0 to (2 ** duty_resolution). For example, if the selected duty resolution is 10, then the duty cycle values can range from 0 to 1024.”
  32. ESP32-S3 Technical Reference Manual v1.8 primary
    What it confirms (10)
    • ledc param: esp32-s3: clk_source “APB_CLK (80 MHz)”
    • ledc param: esp32-s3: clk_source “XTAL_CLK (40 MHz)”
    • ledc param: esp32-s3: timer_bits “Each timer contains a 14-bit timebase counter”
    • ledc param: esp32-s3: div_int_bits “corresponds to the most significant 10 bits of LEDC_CLK_DIV_TIMERx”
    • ledc param: esp32-s3: div_frac_bits “The fractional part B corresponds to the least significant 8 bits of LEDC_CLK_DIV_TIMERx”
    • uart param: esp32-s3: max_baud “When using the 80 MHz input clock, the UART controller supports a maximum baud rate of 5 Mbaud.”
    • uart param: all: frame_start_bits “A frame starts with one START bit … The START bit is logical low”
    • uart param: all: frame_data_bits “The actual data length can be anywhere between 5 ~ 8 bits, configured by UART_BIT_NUM.”
    • uart param: all: frame_parity_bits “When … UART_PARITY_EN is set, a parity bit is added after data bits. UART_PARITY is used to choose even parity or … odd parity.”
    • uart param: all: frame_stop_bits “STOP bits which can be 1, 1.5, or 2 bits long, configured by UART_STOP_BIT_NUM … whereas STOP bits are … logical high.”
  33. ESP-IDF v5.5.5: components/hal/esp32s3/include/hal/ledc_ll.h primary
    What it confirms (1)
    • ledc param: esp32-s3: div_frac_bits “#define LEDC_LL_FRACTIONAL_BITS (8)”
  34. ESP-IDF v5.5.5 Programming Guide (ESP32-C2): LED Control (LEDC) primary
    What it confirms (6)
    • ledc param: esp32-c2: clk_source “PLL_60M_CLK | 60 MHz”
    • ledc param: esp32-c2: clk_source “RC_FAST_CLK | ~ 20 MHz | Dynamic Frequency Scaling compatible, Light-sleep compatible”
    • ledc param: esp32-c2: clk_source “XTAL_CLK | 40/26 MHz | Dynamic Frequency Scaling compatible”
    • ledc param: esp32-c2: channels “It has 6 channels which can generate independent waveforms”
    • ledc param: esp32-c2: shared_clock “For ESP32-C2, all timers share one clock source.”
    • ledc param: esp32-c2: no_full_duty_at_max_res “On ESP32-C2, when channel's binded timer selects its maximum duty resolution, the duty cycle value cannot be set to (2 ** duty_resolution). … Otherwise, the internal duty counter in the hardware will overflow and be messed up.”
  35. ESP8684 Technical Reference Manual v1.3 primary
    What it confirms (6)
    • ledc param: esp32-c2: clk_source “PLL_F60M_CLK (60 MHz)”
    • ledc param: esp32-c2: clk_source “XTAL_CLK (40 MHz) … XTAL_CLK (26 MHz)”
    • ledc param: esp32-c2: timer_bits “Each timer contains a 14-bit timebase counter”
    • ledc param: esp32-c2: div_int_bits “corresponds to the most significant 10 bits of LEDC_CLK_DIV_TIMERx”
    • ledc param: esp32-c2: div_frac_bits “The fractional part B corresponds to the least significant 8 bits of LEDC_CLK_DIV_TIMERx”
    • uart param: esp32-c2: max_baud “When using the 40 MHz input clock, the UART controller supports a maximum baud rate of 2.5 Mbaud.”
  36. ESP-IDF v5.5.5: components/hal/esp32c2/include/hal/ledc_ll.h primary
    What it confirms (1)
    • ledc param: esp32-c2: div_frac_bits “#define LEDC_LL_FRACTIONAL_BITS (8)”
  37. ESP-IDF v5.5.5 Programming Guide (ESP32-C3): LED Control (LEDC) primary
    What it confirms (6)
    • ledc param: esp32-c3: clk_source “APB_CLK | 80 MHz | / | RC_FAST_CLK”
    • ledc param: esp32-c3: clk_source “RC_FAST_CLK | ~ 20 MHz | Dynamic Frequency Scaling compatible, Light-sleep compatible”
    • ledc param: esp32-c3: clk_source “XTAL_CLK | 40 MHz | Dynamic Frequency Scaling compatible”
    • ledc param: esp32-c3: channels “It has 6 channels which can generate independent waveforms”
    • ledc param: esp32-c3: shared_clock “For ESP32-C3, all timers share one clock source.”
    • ledc param: esp32-c3: no_full_duty_at_max_res “On ESP32-C3, when channel's binded timer selects its maximum duty resolution, the duty cycle value cannot be set to (2 ** duty_resolution). … Otherwise, the internal duty counter in the hardware will overflow and be messed up.”
  38. ESP32-C3 Technical Reference Manual v1.4 primary
    What it confirms (6)
    • ledc param: esp32-c3: clk_source “APB_CLK (80 MHz)”
    • ledc param: esp32-c3: clk_source “XTAL_CLK (40 MHz)”
    • ledc param: esp32-c3: timer_bits “Each timer contains a 14-bit timebase counter”
    • ledc param: esp32-c3: div_int_bits “corresponds to the most significant 10 bits of LEDC_CLK_DIV_TIMERx”
    • ledc param: esp32-c3: div_frac_bits “The fractional part B corresponds to the least significant 8 bits of LEDC_CLK_DIV_TIMERx”
    • uart param: esp32-c3: max_baud “When using the 80 MHz input clock, the UART controller supports a maximum baud rate of 5 Mbaud.”
  39. ESP-IDF v5.5.5: components/hal/esp32c3/include/hal/ledc_ll.h primary
    What it confirms (1)
    • ledc param: esp32-c3: div_frac_bits “#define LEDC_LL_FRACTIONAL_BITS (8)”
  40. ESP-IDF v5.5.5 Programming Guide (ESP32-C5): LED Control (LEDC) primary
    What it confirms (5)
    • ledc param: esp32-c5: clk_source “PLL_80M_CLK | 80 MHz”
    • ledc param: esp32-c5: clk_source “RC_FAST_CLK | ~ 17.5 MHz | Dynamic Frequency Scaling compatible, Light-sleep compatible”
    • ledc param: esp32-c5: clk_source “XTAL_CLK | 48 MHz | Dynamic Frequency Scaling compatible”
    • ledc param: esp32-c5: channels “It has 6 channels which can generate independent waveforms”
    • ledc param: esp32-c5: shared_clock “For ESP32-C5, all timers share one clock source.”
  41. ESP32-C5 Technical Reference Manual v1.1 primary
    What it confirms (6)
    • ledc param: esp32-c5: clk_source “REF_80M_CLK (80 MHz)”
    • ledc param: esp32-c5: clk_source “XTAL_48M_CLK (48 MHz)”
    • ledc param: esp32-c5: timer_bits “Each timer contains a 20-bit timebase counter”
    • ledc param: esp32-c5: div_int_bits “corresponds to the most significant 10 bits of LEDC_CLK_DIV_TIMERx”
    • ledc param: esp32-c5: div_frac_bits “The fractional part B corresponds to the least significant 8 bits of LEDC_CLK_DIV_TIMERx”
    • uart param: esp32-c5: max_baud “When using the 80 MHz input clock, the UART controller supports a maximum baud rate of 5 MBaud.”
  42. ESP-IDF v5.5.5: components/hal/esp32c5/include/hal/ledc_ll.h primary
    What it confirms (1)
    • ledc param: esp32-c5: div_frac_bits “#define LEDC_LL_FRACTIONAL_BITS (8)”
  43. ESP-IDF v5.5.5 Programming Guide (ESP32-C6): LED Control (LEDC) primary
    What it confirms (6)
    • ledc param: esp32-c6: clk_source “PLL_80M_CLK | 80 MHz”
    • ledc param: esp32-c6: clk_source “RC_FAST_CLK | ~ 17.5 MHz | Dynamic Frequency Scaling compatible, Light-sleep compatible”
    • ledc param: esp32-c6: clk_source “XTAL_CLK | 40 MHz | Dynamic Frequency Scaling compatible”
    • ledc param: esp32-c6: channels “It has 6 channels which can generate independent waveforms”
    • ledc param: esp32-c6: shared_clock “For ESP32-C6, all timers share one clock source.”
    • ledc param: esp32-c6: no_full_duty_at_max_res “On ESP32-C6, when channel's binded timer selects its maximum duty resolution, the duty cycle value cannot be set to (2 ** duty_resolution). … Otherwise, the internal duty counter in the hardware will overflow and be messed up.”
  44. ESP32-C6 Technical Reference Manual v1.2 primary
    What it confirms (7)
    • ledc param: esp32-c6: clk_source “PLL_F80M_CLK (80 MHz)”
    • ledc param: esp32-c6: clk_source “RC_FAST_CLK (17.5 MHz”
    • ledc param: esp32-c6: clk_source “XTAL_CLK (40 MHz)”
    • ledc param: esp32-c6: timer_bits “Each timer contains a 20-bit timebase counter”
    • ledc param: esp32-c6: div_int_bits “corresponds to the most significant 10 bits of LEDC_CLK_DIV_TIMERx”
    • ledc param: esp32-c6: div_frac_bits “The fractional part B corresponds to the least significant 8 bits of LEDC_CLK_DIV_TIMERx”
    • uart param: esp32-c6: max_baud “When using the 80 MHz input clock, the UART controller supports a maximum baud rate of 5 Mbaud.”
  45. ESP-IDF v5.5.5: components/hal/esp32c6/include/hal/ledc_ll.h primary
    What it confirms (1)
    • ledc param: esp32-c6: div_frac_bits “#define LEDC_LL_FRACTIONAL_BITS (8)”
  46. ESP-IDF v5.5.5 Programming Guide (ESP32-C61): LED Control (LEDC) primary
    What it confirms (5)
    • ledc param: esp32-c61: clk_source “PLL_80M_CLK | 80 MHz”
    • ledc param: esp32-c61: clk_source “RC_FAST_CLK | ~ 17.5 MHz | Dynamic Frequency Scaling compatible, Light-sleep compatible”
    • ledc param: esp32-c61: clk_source “XTAL_CLK | 40 MHz | Dynamic Frequency Scaling compatible”
    • ledc param: esp32-c61: channels “It has 6 channels which can generate independent waveforms”
    • ledc param: esp32-c61: shared_clock “For ESP32-C61, all timers share one clock source.”
  47. ESP32-C61 Technical Reference Manual v1.0 primary
    What it confirms (6)
    • ledc param: esp32-c61: clk_source “REF_80M_CLK (80 MHz)”
    • ledc param: esp32-c61: clk_source “XTAL_40M_CLK (40 MHz)”
    • ledc param: esp32-c61: timer_bits “Each timer contains a 20-bit timebase counter”
    • ledc param: esp32-c61: div_int_bits “corresponds to the most significant 10 bits of LEDC_CLK_DIV_TIMERx”
    • ledc param: esp32-c61: div_frac_bits “The fractional part B corresponds to the least significant 8 bits of LEDC_CLK_DIV_TIMERx”
    • uart param: esp32-c61: max_baud “When using the 80 MHz input clock, the UART controller supports a maximum baud rate of 5 MBaud.”
  48. ESP-IDF v5.5.5: components/hal/esp32c61/include/hal/ledc_ll.h primary
    What it confirms (1)
    • ledc param: esp32-c61: div_frac_bits “#define LEDC_LL_FRACTIONAL_BITS (8)”
  49. ESP-IDF v5.5.5 Programming Guide (ESP32-H2): LED Control (LEDC) primary
    What it confirms (6)
    • ledc param: esp32-h2: clk_source “PLL_96M_CLK | 96 MHz”
    • ledc param: esp32-h2: clk_source “RC_FAST_CLK | ~ 8 MHz | Dynamic Frequency Scaling compatible, Light-sleep compatible”
    • ledc param: esp32-h2: clk_source “XTAL_CLK | 32 MHz | Dynamic Frequency Scaling compatible”
    • ledc param: esp32-h2: channels “It has 6 channels which can generate independent waveforms”
    • ledc param: esp32-h2: shared_clock “For ESP32-H2, all timers share one clock source.”
    • ledc param: esp32-h2: no_full_duty_at_max_res “On ESP32-H2, when channel's binded timer selects its maximum duty resolution, the duty cycle value cannot be set to (2 ** duty_resolution). … Otherwise, the internal duty counter in the hardware will overflow and be messed up.”
  50. ESP32-H2 Technical Reference Manual v1.2 primary
    What it confirms (7)
    • ledc param: esp32-h2: clk_source “PLL_F96M_CLK (96 MHz)”
    • ledc param: esp32-h2: clk_source “RC_FAST_CLK (8 MHz)”
    • ledc param: esp32-h2: clk_source “XTAL_CLK (32 MHz)”
    • ledc param: esp32-h2: timer_bits “Each timer contains a 20-bit timebase counter”
    • ledc param: esp32-h2: div_int_bits “corresponds to the most significant 10 bits of LEDC_CLK_DIV_TIMERx”
    • ledc param: esp32-h2: div_frac_bits “The fractional part B corresponds to the least significant 8 bits of LEDC_CLK_DIV_TIMERx”
    • uart param: esp32-h2: max_baud “When using the 80 MHz input clock, the UART controller supports a maximum baud rate of 5 Mbaud.”
  51. ESP-IDF v5.5.5: components/hal/esp32h2/include/hal/ledc_ll.h primary
    What it confirms (1)
    • ledc param: esp32-h2: div_frac_bits “#define LEDC_LL_FRACTIONAL_BITS (8)”
  52. ESP-IDF v5.5.5 Programming Guide (ESP32-P4): LED Control (LEDC) primary
    What it confirms (6)
    • ledc param: esp32-p4: clk_source “PLL_80M_CLK | 80 MHz”
    • ledc param: esp32-p4: clk_source “RC_FAST_CLK | ~ 17.5 MHz | Dynamic Frequency Scaling compatible, Light-sleep compatible”
    • ledc param: esp32-p4: clk_source “XTAL_CLK | 40 MHz | Dynamic Frequency Scaling compatible”
    • ledc param: esp32-p4: channels “It has 8 channels which can generate independent waveforms”
    • ledc param: esp32-p4: shared_clock “For ESP32-P4, all timers share one clock source.”
    • ledc param: esp32-p4: no_full_duty_at_max_res “On ESP32-P4, when channel's binded timer selects its maximum duty resolution, the duty cycle value cannot be set to (2 ** duty_resolution). … Otherwise, the internal duty counter in the hardware will overflow and be messed up.”
  53. ESP32-P4 Technical Reference Manual v1.0 primary
    What it confirms (7)
    • ledc param: esp32-p4: clk_source “PLL_F80M_CLK (80 MHz)”
    • ledc param: esp32-p4: clk_source “XTAL_CLK (40 MHz)”
    • ledc param: esp32-p4: timer_bits “Each timer contains a 20-bit timebase counter”
    • ledc param: esp32-p4: div_int_bits “corresponds to the most significant 10 bits of LEDC_CLK_DIV_TIMERx”
    • ledc param: esp32-p4: div_frac_bits “The fractional part B corresponds to the least significant 8 bits of LEDC_CLK_DIV_TIMERx”
    • ledc param: esp32-p4: min_div_x_2res “Timer Configuration Constraints … must satisfy the following condition: … 2LEDC_TIMERx_DUTY_RES ≥ 8”
    • uart param: esp32-p4: max_baud “When using the 80 MHz input clock, the UART controller supports a maximum baud rate of 5 MBaud.”
  54. ESP-IDF v5.5.5: components/hal/esp32p4/include/hal/ledc_ll.h primary
    What it confirms (1)
    • ledc param: esp32-p4: div_frac_bits “#define LEDC_LL_FRACTIONAL_BITS (8)”
  55. arduino-esp32 3.3.12: docs/en/api/ledc.rst primary
    What it confirms (2)
    • ledc param: all: arduino_timer_sharing “``ledcAttach()`` / ``ledcAttachChannel()`` reuse an existing timer when another … channel in the **same group** is already configured with the same frequency and … ``ledcChangeFrequency()`` on either pin then changes **all** channels on that”
    • ledc param: all: arduino_xtal_example_min “At 40 MHz with 8-bit resolution, the minimum is about **153 Hz**.”
  56. arduino-esp32 3.3.12: cores/esp32/HardwareSerial.cpp primary
    What it confirms (6)
    • uart param: esp32-c5: lp_fifo_len “// LP UART has FIFO of 16 bytes”
    • uart param: esp32-c6: lp_fifo_len “// LP UART has FIFO of 16 bytes”
    • uart param: esp32-p4: lp_fifo_len “// LP UART has FIFO of 16 bytes”
    • uart param: all: arduino_rx_buffer “_rxBufferSize(256), _txBufferSize(0)”
    • uart param: all: arduino_tx_buffer “_rxBufferSize(256), _txBufferSize(0) … // if new_size is higher than SOC_UART_FIFO_LEN, TX Ringbuffer will be active”
    • uart param: all: arduino_buffer_min “// minimum total RX Buffer size is the UART FIFO space (128 bytes for most SoC) + 1. IDF imposition. … if (new_size <= FIFOLen) { … new_size = FIFOLen + 1; … // Valid values are zero or higher than the FIFO length … RX Buffer can't be resized when Serial is already running. Set it before calling begin().”
  57. arduino-esp32 3.3.12: cores/esp32/HardwareSerial.h primary
    What it confirms (4)
    • uart param: all: frame_8n1_bits “Maximum for 11 bits symbol is 92 (SERIAL_8N2, SERIAL_8E1, SERIAL_8O1, etc), Maximum for 10 bits symbol is 101 (SERIAL_8N1).”
    • uart param: all: arduino_default_config “unsigned long baud, uint32_t config = SERIAL_8N1, int8_t rxPin = -1, int8_t txPin = -1, bool invert = false, unsigned long timeout_ms = 20000UL,”
    • uart param: all: arduino_rxfifo_full_thrhd “uint8_t rxfifo_full_thrhd = 120”
    • uart param: all: arduino_serial_mapping “// if not using CDC on Boot, Arduino Serial is the UART0 device … #define Serial Serial0 … #define Serial HWCDCSerial … #define Serial USBSerial”