ESP8685 ESPRESSIF | Alldatasheet

Document overview

  • Manufacturer or author: Provided By alldatasheet.com(free datasheet download site)
  • PDF pages: 60

Technical content

Datasheet sections

  • 1 Pins
  • 1.1 Pin Layout
  • 1.2 Pin Description
  • 1.3 Power Supply
  • 2 Boot Configurations
  • 2.1 Chip Boot Mode Control
  • 2.2 ROM Messages Printing Control
  • 3 Functional Description
  • 3.1 System
  • 3.1.1 Microprocessor and Master
  • 3.1.1.1 High-Performance CPU
  • 3.1.1.2 GDMA Controller
  • 3.1.2 Memory Organization
  • 3.1.2.1 Internal Memory
  • 3.1.2.2 Cache
  • 3.1.3 System Components
  • 3.1.3.1 IO MUX and GPIO Matrix
  • 3.1.3.2 Reset
  • 3.1.3.3 Clock
  • 3.1.3.4 Interrupt Matrix
  • 3.1.3.5 System Timer
  • 3.1.3.6 Power Management Unit
  • 3.1.3.7 Timer Group
  • 3.1.3.8 Watchdog Timers
  • 3.1.3.9 Permission Control
  • 3.1.3.10 System Registers
  • 3.1.3.11 Debug Assistant
  • 3.1.4 Cryptography and Security Component
  • 3.1.4.1 AES Accelerator

Datasheet sections

  • 3.1.4.2 HMAC Accelerator
  • 3.1.4.3 RSA Accelerator
  • 3.1.4.4 SHA Accelerator
  • 3.1.4.5 Digital Signature
  • 3.1.4.6 External Memory Encryption and Decryption
  • 3.1.4.7 Random Number Generator
  • 3.2 Peripherals
  • 3.2.1 Connectivity Interface
  • 3.2.1.1 UART Controller
  • 3.2.1.2 SPI Controller
  • 3.2.1.3 I2C Controller
  • 3.2.1.4 I2S Controller
  • 3.2.1.5 USB Serial/JTAG Controller
  • 3.2.1.6 Two-wire Automotive Interface
  • 3.2.1.7 LED PWM Controller
  • 3.2.1.8 Remote Control Peripheral
  • 3.2.2 Analog Signal Processing
  • 3.2.2.1 SAR ADC
  • 3.2.2.2 Temperature Sensor
  • 3.3 Wireless Communication
  • 3.3.1 Radio
  • 3.3.1.3 Clock Generator
  • 3.3.2 Wi-Fi
  • 3.3.2.1 Wi-Fi Radio and Baseband
  • 3.3.2.2 Wi-Fi MAC
  • 3.3.2.3 Networking Features
  • 3.3.3 Bluetooth LE
  • 3.3.3.1 Bluetooth LE PHY
  • 3.3.3.2 Bluetooth LE Link Controller
  • 4 Electrical Characteristics
  • 4.1 Absolute Maximum Ratings
  • 4.2 Recommended Operating Conditions
  • 4.4 ADC Characteristics
  • 4.5 Current Consumption
  • 4.5.1 RF Current Consumption in Active Mode
  • 4.5.2 Current Consumption in Other Modes
  • 4.6 Reliability
  • 5 RF Characteristics
  • 5.1 Wi-Fi Radio
  • 5.1.1 Wi-Fi RF Transmitter (TX) Characteristics
  • 5.1.2 Wi-Fi RF Receiver (RX) Characteristics

Datasheet sections

  • 5.2 Bluetooth 5 (LE) Radio
  • 5.2.1 Bluetooth LE RF Transmitter (TX) Characteristics
  • 5.2.2 Bluetooth LE RF Receiver (RX) Characteristics
  • 6 Packaging

Datasheet Version 1.4 Ultra-Low-Power SoC with RISC-V Single-Core CPU 2.4 GHz Wi-Fi (802.11b/g/n) and Bluetooth® 5 (LE)

4 MB flash in the chip’s package

QFN28 (4×4 mm) package Including: ESP8685H4 www.espressif.com

ESP8685 is an low-power and highly-integrated MCU-based solution that supports 2.4 GHz Wi-Fi and Bluetooth® Low Energy (Bluetooth LE). The functional block diagram of the SoC is shown below. Core System Wireless MAC and Baseband Wi-Fi MAC Wi-Fi Baseband Bluetooth LE Link Controller Bluetooth LE Baseband Security RISC-V 32-bit Microprocessor JTAG Cache Flash Encryption Peripherals Espressif’s ESP8685 Wi-Fi + Bluetooth® Low Energy SoC ROM SRAM RSA RNG Digital Signature SHA AES HMAC Secure Boot USB Serial/ JTAG GPIO UART TWAI® General-purpose Timers I2S I2C Flash LED PWM SPI0/1 RMT SPI2 DIG ADC Controller System Timer RTC GPIO Temperature Sensor RTC Memory RWDT PMU RTC Modules having power in specific power modes: Active Active and Modem-sleep All modes Active, Modem-sleep, and Light-sleep; optional in Light-sleep⚙ GDMA RTC Super WDT⚙ MWDT

2.4 GHz Balun + Switch

2.4 GHz Receiver

2.4 GHz Transmitter

ESP8685 Functional Block Diagram For more information on power consumption, see Section3.1.3.6Power Management Unit. The ESP8685chip seriesis a member of the ESP32-C3chip series group. For more information about this chip series group, seeESP32-C3 Chip Series Group Overview. Espressif Systems 2 Submit Documentation Feedback ESP8685 Series Datasheet v1.4

Features

  • IEEE 802.11b/g/n-compliant
  • Supports 20 MHz, 40 MHz bandwidth in 2.4 GHz band
  • 1T1R mode with data rate up to 150 Mbps
  • Wi-Fi Multimedia (WMM)
  • TX/RX A-MPDU, TX/RX A-MSDU
  • Immediate Block ACK
  • Fragmentation and defragmentation
  • Transmit opportunity (TXOP)
  • Automatic Beacon monitoring (hardware TSF)
  • Four virtual Wi-Fi interfaces
  • Simultaneous support for Infrastructure BSS in Station mode, SoftAP mode, Station + SoftAP mode, and promiscuous mode Note that when ESP8685 scans in Station mode, the SoftAP channel will change along with the Station channel
  • Antenna diversity
  • 802.11mc FTM Bluetooth®
  • Bluetooth LE: Bluetooth 5, Bluetooth mesh
  • High power mode (20 dBm)
  • Speed: 125 Kbps, 500 Kbps, 1 Mbps, 2 Mbps
  • Advertising extensions
  • Multiple advertisement sets
  • Channel selection algorithm #2
  • Internal co-existence mechanism between Wi-Fi and Bluetooth to share the same antenna CPU and Memory
  • 32-bit RISC-V single-core processor, up to 160 MHz
  • CoreMark® score: – 1 core at 160 MHz: 483.27 CoreMark; 3.02 CoreMark/MHz
  • 384 KB ROM
  • 400 KB SRAM (16 KB for cache) Espressif Systems 3 Submit Documentation Feedback ESP8685 Series Datasheet v1.4
  • 8 KB SRAM in RTC
  • In-package flash
  • Access to flash accelerated by cache
  • Supports flash in-Circuit Programming (ICP) Advanced Peripheral Interfaces
  • 15 programmable GPIOs
  • Digital interfaces: – Three SPI (SPI0 and SPI1 are used to connect the in-package flash. Only SPI2 is available) – Two UART – I2C – I2S – Remote control peripheral, with 2 transmit channels and 2 receive channels – LED PWM controller, with up to 6 channels – Full-speed USB Serial/JTAG controller – General DMA controller (GDMA), with 3 transmit channels and 3 receive channels – TWAI® controller compatible with ISO 11898-1 (CAN Specification 2.0)
  • Analog interfaces: – Two 12-bit SAR ADCs, up to 6 channels – Temperature sensor
  • Timers: – Two 54-bit general-purpose timers – Three digital watchdog timers – Analog watchdog timer – 52-bit system timer Power Management
  • Fine-resolution power control through a selection of clock frequency, duty cycle, Wi-Fi operating modes, and individual power control of internal components
  • Four power modes designed for typical scenarios: Active, Modem-sleep, Light-sleep, Deep-sleep
  • Power consumption in Deep-sleep mode is 5µA
  • RTC memory remains powered on in Deep-sleep mode Espressif Systems 4 Submit Documentation Feedback ESP8685 Series Datasheet v1.4
  • Secure boot - permission control on accessing internal and external memory
  • Flash encryption - memory encryption and decryption
  • 4096-bit OTP, up to 1792 bits for users
  • Cryptographic hardware acceleration: – AES-128/256 (FIPS PUB 197) – SHA Accelerator (FIPS PUB 180-4) – RSA Accelerator – Random Number Generator (RNG) – HMAC – Digital signature RF Module
  • Antenna switches, RF balun, power amplifier, low-noise receive amplifier
  • Up to +21 dBm of power for an 802.11b transmission
  • Up to +20 dBm of power for an 802.11n transmission
  • Up to -105 dBm of sensitivity for Bluetooth LE receiver (125 Kbps)

Applications

With low power consumption, ESP8685 is an ideal choice for IoT devices in the following areas:

  • Smart Home
  • Industrial Automation
  • Health Care
  • Consumer Electronics
  • Smart Agriculture
  • POS Machines
  • Service Robot
  • Audio Devices
  • Generic Low-power IoT Sensor Hubs
  • Generic Low-power IoT Data Loggers Espressif Systems 5 Submit Documentation Feedback ESP8685 Series Datasheet v1.4

1-1 ESP8685H4 Pin Description 12 1-2 Description of Timing Parameters for Power-up and Reset 14 2-1 Default Configuration of Strapping Pins 15 2-2 Description of Timing Parameters for the Strapping Pins 15 2-3 Chip Boot Mode Control 16 2-4 UART0 ROM Message Printing Control 17 2-5 USB Serial/JTAG ROM Message Printing Control 17 3-1 IO MUX Pin Functions 21 3-2 Power-Up Glitches on Pins 22 3-3 Peripheral Signals via GPIO Matrix 23 4-2 Recommended Operating Conditions 44 4-3 DC Characteristics (3.3 V, 25 °C) 44 4-4 ADC Characteristics 45 4-5 ADC Calibration Results 45 4-6 Wi-Fi Current Consumption Depending on RF Modes 46 4-7 Current Consumption in Modem-sleep Mode 46 4-8 Current Consumption in Low-Power Modes 46 4-9 Reliability Qualifications 47 5-1 Wi-Fi Frequency 48 5-2 TX Power with Spectral Mask and EVM Meeting 802.11 Standards 48 5-3 TX EVM Test 48 5-4 RX Sensitivity 49 5-5 Maximum RX Level 50 5-6 RX Adjacent Channel Rejection 50 5-7 Bluetooth LE Frequency 51 5-8 Transmitter Characteristics - Bluetooth LE 1 Mbps 51 5-9 Transmitter Characteristics - Bluetooth LE 2 Mbps 51 5-10 Transmitter Characteristics - Bluetooth LE 125 Kbps 52 5-11 Transmitter Characteristics - Bluetooth LE 500 Kbps 52 5-12 Receiver Characteristics - Bluetooth LE 1 Mbps 52 5-13 Receiver Characteristics - Bluetooth LE 2 Mbps 53 5-14 Receiver Characteristics - Bluetooth LE 125 Kbps 53 5-15 Receiver Characteristics - Bluetooth LE 500 Kbps 54 Espressif Systems 9 Submit Documentation Feedback ESP8685 Series Datasheet v1.4

1-1 ESP8685 Pin Layout (Top View) 11 1-2 ESP8685 Power Scheme 13 1-3 Visualization of Timing Parameters for Power-up and Reset 14 2-1 Visualization of Timing Parameters for the Strapping Pins 16 3-1 Address Mapping Structure 19 6-1 QFN28 (4×4 mm) Package 55 Espressif Systems 10 Submit Documentation Feedback ESP8685 Series Datasheet v1.4

1 Pins

1.1 Pin Layout

VDD3P3_RTC MTDI MTMS GPIO3 CHIP_EN GPIO2 XTAL_32K_N XTAL_32K_P VDD3P3 VDD3P3 LNA_IN VDDA XTAL_P XTAL_N U0TXD U0RXD GPIO19 VDDA GPIO18 NC NC VDD_SPI VDD3P3_CPU GPIO10 GPIO9

29 GND

Figure 1-1. ESP8685 Pin Layout (Top View) Espressif Systems 11 Submit Documentation Feedback ESP8685 Series Datasheet v1.4

1.2 Pin Description

Table 1-1. ESP8685H4 Pin Description Name No. Type Power Domain Function LNA_IN 1 I/O i RF input and output VDD3P3 2 PA i Analog power supply VDD3P3 3 PA i Analog power supply XTAL_32K_P 4 I/O/T VDD3P3_RTC GPIO0, ADC1_CH0, XTAL_32K_P XTAL_32K_N 5 I/O/T VDD3P3_RTC GPIO1, ADC1_CH1, XTAL_32K_N GPIO2 6 I/O/T VDD3P3_RTC GPIO2, ADC1_CH2, FSPIQ CHIP_EN 7 I VDD3P3_RTC High: on, enables the chip. Low: off, the chip powers off. Note: Do not leave the CHIP_EN pin floating. GPIO3 8 I/O/T VDD3P3_RTC GPIO3, ADC1_CH3 MTMS 9 I/O/T VDD3P3_RTC GPIO4, ADC1_CH4, FSPIHD, MTMS MTDI 10 I/O/T VDD3P3_RTC GPIO5, ADC2_CH0, FSPIWP MTDI VDD3P3_RTC 11 PD i Input power supply for RTC MTCK 12 I/O/T VDD3P3_CPU GPIO6, FSPICLK, MTCK MTDO 13 I/O/T VDD3P3_CPU GPIO7 , FSPID, MTDO GPIO8 14 I/O/T VDD3P3_CPU GPIO8 GPIO9 15 I/O/T VDD3P3_CPU GPIO9 GPIO10 16 I/O/T VDD3P3_CPU GPIO10, FSPICS0 VDD3P3_CPU 17 PD i Input power supply for CPU IO VDD_SPI 18 PD i For internal use only NC 19 i i NC NC 20 i i NC GPIO18 21 I/O/T VDD3P3_CPU GPIO18, USB_D- GPIO19 22 I/O/T VDD3P3_CPU GPIO19, USB_D+ U0RXD 23 I/O/T VDD3P3_CPU GPIO20, U0RXD U0TXD 24 I/O/T VDD3P3_CPU GPIO21, U0TXD XTAL_N 25 i i External crystal output XTAL_P 26 i i External crystal input VDDA 27 PA i Analog power supply VDDA 28 PA i Analog power supply GND 29 G i Ground 1 PA: analog power supply; PD: power supply for RTC IO; I: input; O: output; T: high impedance. 2 The pin function in this table refers only to some fixed settings and do not cover all cases for signals that can be input and output through the GPIO matrix. For more information on the GPIO matrix, please refer to T able3-3. Espressif Systems 12 Submit Documentation Feedback ESP8685 Series Datasheet v1.4

1.3 Power Supply

ESP8685 has four input power pins:

  • VDDA1
  • VDDA2
  • VDD3P3_RTC
  • VDD3P3_CPU VDDA1 and VDDA2 are the input power supply for the analog domain. RTC IO is powered from VDD3P3_RTC. The RTC domain is powered from Low Power Voltage Regulator, which is powered from VDD3P3_RTC. The Digital System domain is powered from Digital System Voltage Regulator, which is powered from VDD3P3_CPU and VDD3P3_RTC at the same time. Digital IO is powered from VDD3P3_CPU. The power scheme diagram is shown in Figure1-2. Figure 1-2. ESP8685 Power Scheme Once the power is supplied to the chip, its power rails need a short time to stabilize. After that, CHIP_EN – the pin used for power-up and reset – is pulled high to activate the chip. For information on CHIP_EN as well as power-up and reset timing, see Figure1-3 and T able1-2. Espressif Systems 13 Submit Documentation Feedback ESP8685 Series Datasheet v1.4

VIL_nRST tSTBL tRST 2.8 V VDDA, VDD3P3, VDD3P3_RTC, VDD3P3_CPU CHIP_EN Figure 1-3. Visualization of Timing Parameters for Power-up and Reset Table 1-2. Description of Timing Parameters for Power-up and Reset Parameter Description Min (µs) tSTBL Time reserved for the power rails of VDDA, VDD3P3, VDD3P3_RTC, and VDD3P3_CPU to stabilize before the CHIP_EN pin is pulled high to activate the chip tRST Time reserved for CHIP_EN to stay below VIL_nRST to reset the chip (see T able4-3) 50 Espressif Systems 14 Submit Documentation Feedback ESP8685 Series Datasheet v1.4

2 Boot Configurations

The chip allows for configuring the following boot parameters throughstrapping pinsand eFuse parametersat power-up or a hardware reset, without microcontroller interaction.

  • Chip boot mode – Strapping pins: GPIO2, GPIO8, and GPIO9
  • ROM message printing – Strapping pin: GPIO8 – eFuse parameters: EFUSE_UART_PRINT_CONTROL and EFUSE_USB_PRINT_CHANNEL The default values of all the above eFuse bits are 0, which means that they are not burnt. Given that eFuse is one-time programmable, once an eFuse bit is programmed to 1, it can never be reverted to 0. For how to program eFuse bits, please refer toESP32-C3 Technical Reference Manual> ChaptereFuse Controller. The default values of the strapping pins, namely the logic levels, are determined by pins’ internal weak pull-up/pull-down resistors at reset if the pins are not connected to any circuit, or connected to an external high-impedance circuit. Table 2-1. Default Configuration of Strapping Pins Strapping Pin Default Configuration Bit Value GPIO2 Floating – GPIO8 Floating – GPIO9 Weak pull-up 1 To change the bit values, the strapping pins should be connected to external pull-down/pull-up resistances. If the ESP8685 is used as a device by a host MCU, the strapping pin voltage levels can also be controlled by the host MCU. All strapping pins have latches. At system reset, the latches sample the bit values of their respective strapping pins and store them until the chip is powered down or shut down. The states of latches cannot be changed in any other way. It makes the strapping pin values available during the entire chip operation, and the pins are freed up to be used as regular IO pins after reset. The timing of signals connected to the strapping pins should adhere to thesetup timeand hold time specifications in T able2-2 and Figure2-1. Table 2-2. Description of Timing Parameters for the Strapping Pins Parameter Description Min (ms) tSU Setup timeis the time reserved for the power rails to stabilize be- fore the CHIP_EN pin is pulled high to activate the chip. 0 tH Hold timeis the time reserved for the chip to read the strapping pin values after CHIP_EN is already high and before these pins start operating as regular IO pins. Espressif Systems 15 Submit Documentation Feedback ESP8685 Series Datasheet v1.4

VIL_nRST VIH tSU tH CHIP_EN Figure 2-1. Visualization of Timing Parameters for the Strapping Pins

2.1 Chip Boot Mode Control

GPIO2, GPIO8, and GPIO9 control the boot mode after the reset is released. See T able2-3 Chip Boot Mode Control. Table 2-3. Chip Boot Mode Control Boot Mode GPIO2 2 GPIO8 GPIO9 SPI boot mode 1 Any value 1 Joint download boot mode3 1 1 0 1 Bold marks the default value and configuration.

2 GPIO2 actually does not determine SPI Boot and Joint Down-

load Boot mode, but it is recommended to pull this pin up due to glitches.

3 Joint Download Boot mode supports the following download

methods:

  • USB-Serial-JTAG Download Boot
  • UART Download Boot In SPI Boot mode, the ROM bootloader loads and executes the program from SPI flash to boot the system. In Joint Download Boot mode, users can download binary files into flash using UART0 or USB interface. It is also possible to download binary files into SRAM and execute it from SRAM. In addition to SPI Boot and Joint Download Boot modes, ESP8685 also supports SPI Download Boot mode. For details, please seeESP32-C3 Technical Reference Manual> ChapterChip Boot Control.

2.2 ROM Messages Printing Control

During the boot process, the messages by the ROM code can be printed to:

  • (Default) UART0 and USB Serial/JTAG controller Espressif Systems 16 Submit Documentation Feedback ESP8685 Series Datasheet v1.4
  • UART0
  • USB Serial/JTAG controller EFUSE_UART_PRINT_CONTROL and GPIO8 control ROM messages printing toUART0 as shown in T able2-4 UART0 ROM Message Printing Control. Table 2-4. UART0 ROM Message Printing Control UART0 ROM Code PrintingEFUSE_UART_PRINT_CONTROL GPIO8 Enabled

0 Ignored

3 Ignored

1 Bold marks the default value and configuration. EFUSE_USB_PRINT_CHANNEL controls the printing toUSB Serial/JTAG controlleras shown in T able2-5 USB Serial/JTAG ROM Message Printing Control. Table 2-5. USB Serial/JTAG ROM Message Printing Control USB Serial/JTAG ROM Code Printing EFUSE_DIS_USB_SERIAL_JTAG2 EFUSE_USB_PRINT_CHANNEL Enabled 0 0 Disabled 0 1

1 Ignored

1 Bold marks the default value and configuration. 2 EFUSE_DIS_USB_SERIAL_JTAG controls whether to disable USB Serial/JTAG. Espressif Systems 17 Submit Documentation Feedback ESP8685 Series Datasheet v1.4

3 Functional Description

3.1 System

This section describes the core of the chip’s operation, covering its microprocessor, memory organization, system components, and security features.

3.1.1 Microprocessor and Master

This subsection describes the core processing units within the chip and their capabilities.

3.1.1.1 High-Performance CPU

ESP8685 has a low-power 32-bit RISC-V single-core microprocessor with the following features:

  • four-stage pipeline that supports a clock frequency of up to 160 MHz
  • RV32IMC ISA
  • 32-bit multiplier and 32-bit divider
  • up to 32 vectored interrupts at seven priority levels
  • up to 8 hardware breakpoints/watchpoints
  • up to 16 PMP regions
  • JTAG for debugging For details, seeESP32-C3 Technical Reference Manual> ChapterHigh-Performance CPU.

3.1.1.2 GDMA Controller

ESP8685 has a general DMA controller (GDMA) with six independent channels, i.e. three transmit channels and three receive channels. These six channels are shared by peripherals with DMA feature. The GDMA controller implements a fixed-priority scheme among these channels, whose priority can be configured. The GDMA controller controls data transfer using linked lists. It allows peripheral-to-memory and memory-to-memory data transfer at a high speed. All channels can access internal RAM. Peripherals on ESP8685 with DMA feature are SPI2, UHCI0, I2S, AES, SHA, and ADC. For details, seeESP32-C3 Technical Reference Manual> ChapterGDMA Controller (DMA).

3.1.2 Memory Organization

This subsection describes the memory arrangement to explain how data is stored, accessed, and managed for efficient operation. Figure 3-1 illustrates the address mapping structure of ESP8685. Espressif Systems 18 Submit Documentation Feedback ESP8685 Series Datasheet v1.4

Figure 3-1. Address Mapping Structure Note: The memory space with gray background is not available for use.

3.1.2.1 Internal Memory

ESP8685’s internal memory includes:

  • 384 KB of ROM: for booting and core functions
  • 400 KB of on-chip SRAM: for data and instructions, running at a configurable frequency of up to 160 MHz. Of the 400 KB SRAM, 16 KB is configured for cache
  • RTC FAST memory: 8 KB of SRAM that can be accessed by the main CPU. It can retain data in Deep-sleep mode
  • 4 Kbit of eFuse: 1792 bits are reserved for your data, such as encryption key and device ID Espressif Systems 19 Submit Documentation Feedback ESP8685 Series Datasheet v1.4
  • In-package flash – More than 100,000 program/erase cycles – More than 20 years of data retention time – Clock frequency up to 80 MHz by default For details, seeESP32-C3 Technical Reference Manual> ChapterSystem and Memory.

3.1.2.2 Cache

ESP8685 has an eight-way set associative cache. This cache is read-only and has the following features:

  • size: 16 KB
  • block size: 32 bytes
  • pre-load function
  • lock function
  • critical word first and early restart For details, seeESP32-C3 Technical Reference Manual> ChapterSystem and Memory. 3.1.2.3 eFuse Controller The eFuse memory is a one-time programmable memory that stores parameters and user data, and the eFuse controller of ESP8685 is used to program and read this eFuse memory. Feature List
  • Configurable write protection
  • Configurable read protection
  • Various hardware encoding schemes against data corruption For details, seeESP32-C3 Technical Reference Manual> ChaptereFuse Controller.

3.1.3 System Components

This subsection describes the essential components that contribute to the overall functionality and control of the system.

3.1.3.1 IO MUX and GPIO Matrix

ESP8685 has 15 GPIO pins which can be assigned various functions by configuring corresponding registers. Besides digital signals, some GPIOs can be also used for analog functions, such as ADC. All GPIOs have selectable internal pull-up or pull-down, or can be set to high impedance. When these GPIOs are configured as an input, the input value can be read by software through the register. Input GPIOs can also be set to generate edge-triggered or level-triggered CPU interrupts. All digital IO pins are bi-directional, non-inverting and tristate, including input and output buffers with tristate control. These pins can be Espressif Systems 20 Submit Documentation Feedback ESP8685 Series Datasheet v1.4

multiplexed with other functions, such as the UART , etc. For low-power operations, the GPIOs can be set to holding state. The IO MUX and the GPIO matrix are used to route signals from peripherals to GPIO pins. Together they provide highly configurable I/O. Using GPIO Matrix, peripheral input signals can be configured from any IO pins while peripheral output signals can be configured to any IO pins. T able3-1 shows the IO MUX functions of each pin. Table 3-1. IO MUX Pin Functions Name No. Function 0 Function 1 Function 2 Reset Notes XTAL_32K_P 4 GPIO0 GPIO0 i 0 R XTAL_32K_N 5 GPIO1 GPIO1 i 0 R GPIO2 6 GPIO2 GPIO2 FSPIQ 1 R GPIO3 8 GPIO3 GPIO3 i 1 R MTMS 9 MTMS GPIO4 FSPIHD 1 R MTDI 10 MTDI GPIO5 FSPIWP 1 R MTCK 12 MTCK GPIO6 FSPICLK 1* G MTDO 13 MTDO GPIO7 FSPID 1 G GPIO8 14 GPIO8 GPIO8 i 1 i GPIO9 15 GPIO9 GPIO9 i 3 i GPIO10 16 GPIO10 GPIO10 FSPICS0 1 G GPIO18 21 GPIO18 GPIO18 i 0 USB, G GPIO19 22 GPIO19 GPIO19 i 0* USB U0RXD 23 U0RXD GPIO20 i 3 G U0TXD 24 U0TXD GPIO21 i 4 i Reset The default configuration of each pin after reset:

  • 0 - input disabled, in high impedance state (IE = 0)
  • 1 - input enabled, in high impedance state (IE = 1)
  • 2 - input enabled, pull-down resistor enabled (IE = 1, WPD = 1)
  • 3 - input enabled, pull-up resistor enabled (IE = 1, WPU = 1)
  • 4 - output enabled, pull-up resistor enabled (OE = 1, WPU = 1)
  • 0* - input disabled, pull-up resistor enabled (IE = 0, WPU = 0, USB_WPU = 1). See details in Notes
  • 1* - When the value of eFuse bit EFUSE_DIS_PAD_JTAG is 0, input enabled, pull-up resistor enabled (IE = 1, WPU = 1) 1, input enabled, in high impedance state (IE = 1) We recommend pulling high or low GPIO pins in high impedance state to avoid unnecessary power consumption. You may add pull-up and pull-down resistors in your PCB design referring to T able4-3, or enable internal pull-up and pull-down resistors during software initialization. Notes Espressif Systems 21 Submit Documentation Feedback ESP8685 Series Datasheet v1.4
  • R - These pins have analog functions.
  • USB - GPIO18 and GPIO19 are USB pins. The pull-up value of a USB pin is controlled by the pin’s pull-up value together with USB pull-up value. If any of the two pull-up values is 1, the pin’s pull-up resistor will be enabled. The pull-up resistors of USB pins are controlled by USB_SERIAL_JTAG_DP_PULLUP bit.
  • G - These pins have glitches during power-up. See details in T able3-2. Table 3-2. Power-Up Glitches on Pins Typical Time PeriodPin Glitch1 (ns) MTCK Low-level glitch 5 MTDO Low-level glitch 5 GPIO10 Low-level glitch 5 U0RXD Low-level glitch 5 GPIO18 High-level glitch 50000

1 Low-level glitch: the pin is at a low level output status during the

time period; High-level glitch: the pin is at a high level output status during the time period; Pull-down glitch: the pin is at an internal weak pulled-down sta- tus during the time period; Pull-up glitch: the pin is at an internal weak pulled-up status dur- ing the time period. Please refer to T able4-3 for detailed parameters about low/high- level and pull-down/up. T able3-3 shows the peripheral input/output signals via GPIO matrix. Please pay attention to the configuration of the bit GPIO_FUNCn_OEN_SEL:

  • GPIO_FUNCn_OEN_SEL = 1: the output enable is controlled by the corresponding bitn of GPIO_ENABLE_REG: – GPIO_ENABLE_REG = 0: output is disabled; – GPIO_ENABLE_REG = 1: output is enabled;
  • GPIO_FUNCn_OEN_SEL = 0: use the output enable signal from peripheral, for example SPIQ_oe in the column “Output enable signal when GPIO_FUNCn_OEN_SEL = 0” of T able3-3. Note that the signals such as SPIQ_oe can be 1 (1’d1) or 0 (1’d0), depending on the configuration of corresponding peripherals. If it is 1’d1 in the “Output enable signal when GPIO_FUNCn_OEN_SEL = 0”, it indicates that once the register GPIO_FUNCn_OEN_SEL is cleared, the output signal is always enabled by default. Note: Signals are numbered consecutively, but not all signals are valid.
  • For input signals, only 6~ 11, 45, 53, 54, 63~ 68, 97~ 100 are valid.
  • For output signals, only 6~ 11, 45~ 50, 53~ 58, 63~ 73, 97~ 100, 123~ 125 are valid. Espressif Systems 22 Submit Documentation Feedback ESP8685 Series Datasheet v1.4

Table 3-3. Peripheral Signals via GPIO Matrix Signal No. Input Signal Default value Direct Input through IO MUX Output Signal Output enable signal when GPIO_FUNCn_OEN_SEL= 0 Direct Output through IO_MUX 0 - - - - 1’d1 no 1 - - - - 1’d1 no 2 - - - - 1’d1 no 3 - - - - 1’d1 no 4 - - - - 1’d1 no 5 - - - - 1’d1 no

6 U0RXD_in 0 yes U0TXD_out 1’d1 yes

7 U0CTS_in 0 no U0RTS_out 1’d1 no

8 U0DSR_in 0 no U0DTR_out 1’d1 no

9 U1RXD_in 0 no U1TXD_out 1’d1 no

10 U1CTS_in 0 no U1RTS_out 1’d1 no

11 U1DSR_in 0 no U1DTR_out 1’d1 no

12 I2S_MCLK_in 0 no I2S_MCLK_out 1’d1 no

13 I2SO_BCK_in 0 no I2SO_BCK_out 1’d1 no

14 I2SO_WS_in 0 no I2SO_WS_out 1’d1 no

15 I2SI_SD_in 0 no I2SO_SD_out 1’d1 no

16 I2SI_BCK_in 0 no I2SI_BCK_out 1’d1 no

17 I2SI_WS_in 0 no I2SI_WS_out 1’d1 no

18 gpio_bt_priority 0 no gpio_wlan_prio 1’d1 no 19 gpio_bt_active 0 no gpio_wlan_active 1’d1 no 20 - - - - 1’d1 no 21 - - - - 1’d1 no 22 - - - - 1’d1 no 23 - - - - 1’d1 no 24 - - - - 1’d1 no Espressif Systems 23 Submit Documentation Feedback ESP8685 Series Datasheet v1.4

No. Input Signal Default value Direct Input through IO MUX Output Signal Output enable signal when GPIO_FUNCn_OEN_SEL= 0 Direct Output through IO_MUX 25 - - - - 1’d1 no 26 - - - - 1’d1 no 27 - - - - 1’d1 no 28 cpu_gpio_in0 0 no cpu_gpio_out0 cpu_gpio_out_oen0 no 29 cpu_gpio_in1 0 no cpu_gpio_out1 cpu_gpio_out_oen1 no 30 cpu_gpio_in2 0 no cpu_gpio_out2 cpu_gpio_out_oen2 no 31 cpu_gpio_in3 0 no cpu_gpio_out3 cpu_gpio_out_oen3 no 32 cpu_gpio_in4 0 no cpu_gpio_out4 cpu_gpio_out_oen4 no 33 cpu_gpio_in5 0 no cpu_gpio_out5 cpu_gpio_out_oen5 no 34 cpu_gpio_in6 0 no cpu_gpio_out6 cpu_gpio_out_oen6 no 35 cpu_gpio_in7 0 no cpu_gpio_out7 cpu_gpio_out_oen7 no 36 - - - usb_jtag_tck 1’d1 no 37 - - - usb_jtag_tms 1’d1 no 38 - - - usb_jtag_tdi 1’d1 no 39 - - - usb_jtag_tdo 1’d1 no 40 - - - - 1’d1 no 41 - - - - 1’d1 no 42 - - - - 1’d1 no 43 - - - - 1’d1 no 44 - - - - 1’d1 no 45 ext_adc_start 0 no ledc_ls_sig_out0 1’d1 no 46 - - - ledc_ls_sig_out1 1’d1 no 47 - - - ledc_ls_sig_out2 1’d1 no 48 - - - ledc_ls_sig_out3 1’d1 no 49 - - - ledc_ls_sig_out4 1’d1 no 50 - - - ledc_ls_sig_out5 1’d1 no 51 rmt_sig_in0 0 no rmt_sig_out0 1’d1 no Espressif Systems 24 Submit Documentation Feedback ESP8685 Series Datasheet v1.4

No. Input Signal Default value Direct Input through IO MUX Output Signal Output enable signal when GPIO_FUNCn_OEN_SEL= 0 Direct Output through IO_MUX 52 rmt_sig_in1 0 no rmt_sig_out1 1’d1 no

53 I2CEXT0_SCL_in 1 no I2CEXT0_SCL_out I2CEXT0_SCL_oe no

54 I2CEXT0_SDA_in 1 no I2CEXT0_SDA_out I2CEXT0_SDA_oe no

55 - - - gpio_sd0_out 1’d1 no 56 - - - gpio_sd1_out 1’d1 no 57 - - - gpio_sd2_out 1’d1 no 58 - - - gpio_sd3_out 1’d1 no 59 - - - I2SO_SD1_out 1’d1 no 60 - - - - 1’d1 no 61 - - - - 1’d1 no 62 - - - - 1’d1 no

63 FSPICLK_in 0 yes FSPICLK_out_mux FSPICLK_oe yes

64 FSPIQ_in 0 yes FSPIQ_out FSPIQ_oe yes

65 FSPID_in 0 yes FSPID_out FSPID_oe yes

66 FSPIHD_in 0 yes FSPIHD_out FSPIHD_oe yes

67 FSPIWP_in 0 yes FSPIWP_out FSPIWP_oe yes

68 FSPICS0_in 0 yes FSPICS0_out FSPICS0_oe yes

69 - - - FSPICS1_out FSPICS1_oe no 70 - - - FSPICS2_out FSPICS2_oe no 71 - - - FSPICS3_out FSPICS3_oe no 72 - - - FSPICS4_out FSPICS4_oe no 73 - - - FSPICS5_out FSPICS5_oe no 74 twai_rx 1 no twai_tx 1’d1 no 75 - - - twai_bus_off_on 1’d1 no 76 - - - twai_clkout 1’d1 no 77 - - - - 1’d1 no 78 - - - - 1’d1 no Espressif Systems 25 Submit Documentation Feedback ESP8685 Series Datasheet v1.4

No. Input Signal Default value Direct Input through IO MUX Output Signal Output enable signal when GPIO_FUNCn_OEN_SEL= 0 Direct Output through IO_MUX 79 - - - - 1’d1 no 80 - - - - 1’d1 no 81 - - - - 1’d1 no 82 - - - - 1’d1 no 83 - - - - 1’d1 no 84 - - - - 1’d1 no 85 - - - - 1’d1 no 86 - - - - 1’d1 no 87 - - - - 1’d1 no 88 - - - - 1’d1 no 89 - - - ant_sel0 1’d1 no 90 - - - ant_sel1 1’d1 no 91 - - - ant_sel2 1’d1 no 92 - - - ant_sel3 1’d1 no 93 - - - ant_sel4 1’d1 no 94 - - - ant_sel5 1’d1 no 95 - - - ant_sel6 1’d1 no 96 - - - ant_sel7 1’d1 no 97 sig_in_func_97 0 no sig_in_func97 1’d1 no 98 sig_in_func_98 0 no sig_in_func98 1’d1 no 99 sig_in_func_99 0 no sig_in_func99 1’d1 no 100 sig_in_func_100 0 no sig_in_func100 1’d1 no Espressif Systems 26 Submit Documentation Feedback ESP8685 Series Datasheet v1.4

No. Input Signal Default value Direct Input through IO MUX Output Signal Output enable signal when GPIO_FUNCn_OEN_SEL= 0 Direct Output through IO_MUX 123 - - - CLK_OUT_out1 1’d1 no 124 - - - CLK_OUT_out2 1’d1 no 125 - - - CLK_OUT_out3 1’d1 no 127 - - - usb_jtag_trst 1’d1 no Espressif Systems 27 Submit Documentation Feedback ESP8685 Series Datasheet v1.4

For details, seeESP32-C3 Technical Reference Manual> ChapterIO MUX and GPIO Matrix.

3.1.3.2 Reset

The ESP8685 chip provides four types of reset that occur at different levels, namely CPU Reset, Core Reset, System Reset, and Chip Reset. Except for Chip Reset, all reset types preserve the data stored in internal memory. Feature List

  • Support four reset levels: – CPU Reset: Only resets CPU core. Once such reset is released, the instructions from the CPU reset vector will be executed – Core Reset: Resets the whole digital system except RTC, including CPU, peripherals, Wi-Fi, Bluetooth® LE, and digital GPIOs – System Reset: Resets the whole digital system, including RTC – Chip Reset: Resets the whole chip
  • Support software reset and hardware reset: – Software Reset: The CPU can trigger a software reset by configuring the corresponding registers – Hardware Reset: Hardware reset is directly triggered by the circuit For details, seeESP32-C3 Technical Reference Manual> ChapterReset and Clock.

3.1.3.3 Clock

For details, seeESP32-C3 Technical Reference Manual> ChapterReset and Clock. CPU Clock The CPU clock has three possible sources:

  • external main crystal clock
  • fast RC oscillator (typically about 17 .5 MHz, and adjustable)
  • PLL clock The application can select the clock source from the three clocks above. The selected clock source drives the CPU clock directly, or after division, depending on the application. Once the CPU is reset, the default clock source would be the external main crystal clock divided by 2. Note: ESP8685 is unable to operate without an external main crystal clock. Espressif Systems 28 Submit Documentation Feedback ESP8685 Series Datasheet v1.4

The RTC slow clock is used for RTC counter, RTC watchdog and low-power controller. It has three possible sources:

  • external low-speed (32 kHz) crystal clock
  • internal slow RC oscillator (typically about 136 kHz, and adjustable)
  • internal fast RC oscillator divided clock (derived from the fast RC oscillator divided by 256) The RTC fast clock is used for RTC peripherals and sensor controllers. It has two possible sources:
  • external main crystal clock divided by 2
  • internal fast RC oscillator divide-by-N clock (typically about 17 .5 MHz, and adjustable)

3.1.3.4 Interrupt Matrix

The Interrupt Matrix in the ESP8685 chip independently routes peripheral interrupt sources to the ESP-RISC-V CPU’s peripheral interrupts, to timely inform CPU to process the coming interrupts. Feature List

  • Accept 62 peripheral interrupt sources as input
  • Generate 31 CPU peripheral interrupts to CPU as output
  • Query current interrupt status of peripheral interrupt sources
  • Configure priority, type, threshold, and enable signal of CPU interrupts For details, seeESP32-C3 Technical Reference Manual> ChapterInterrupt Matrix.

3.1.3.5 System Timer

ESP8685 integrates a 52-bit system timer, which has two 52-bit counters and three comparators. The system timer has the following features:

  • counters with a fixed clock frequency of 16 MHz
  • three types of independent interrupts generated according to alarm value
  • two alarm modes: target mode and period mode
  • 52-bit target alarm value and 26-bit periodic alarm value
  • automatic reload of counter value
  • counters can be stalled if the CPU is stalled or in OCD mode For details, seeESP32-C3 Technical Reference Manual> ChapterSystem Timer.

3.1.3.6 Power Management Unit

The ESP8685 has an advanced Power Management Unit (PMU). It can be flexibly configured to power up different power domains of the chip to achieve the best balance between chip performance, power consumption, and wakeup latency. Espressif Systems 29 Submit Documentation Feedback ESP8685 Series Datasheet v1.4

Configuring the PMU is a complex procedure. To simplify power management for typical scenarios, there are the followingpredefined power modesthat power up different combinations of power domains:

  • Active mode– The CPU, RF circuits, and all peripherals are on. The chip can process data, receive, transmit, and listen.
  • Modem-sleep mode– The CPU is on, but the clock frequency can be reduced. The wireless connections can be configured to remain active as RF circuits are periodically switched on when required.
  • Light-sleep mode– The CPU stops running, and can be optionally powered on. The chip can be woken up via all wake up mechanisms: MAC, RTC timer, or external interrupts. Wireless connections can remain active. Some groups of digital peripherals can be optionally shut down.
  • Deep-sleep mode– Only RTC is powered on. Wireless connection data is stored in RTC memory. For power consumption in different power modes, see Section4.5 Current Consumption. For details, seeESP32-C3 Technical Reference Manual> ChapterLow-Power Management (RTC_CNTL).

3.1.3.7 Timer Group

ESP8685 has two 54-bit general-purpose timers, which are based on 16-bit prescalers and 54-bit auto-reload-capable up/down-timers. The timers’ features are summarized as follows:

  • a 16-bit clock prescaler, from 1 to 65536
  • a 54-bit time-base counter programmable to be incrementing or decrementing
  • able to read real-time value of the time-base counter
  • halting and resuming the time-base counter
  • programmable alarm generation
  • level interrupt generation For details, seeESP32-C3 Technical Reference Manual> ChapterTimer Group (TIMG).

3.1.3.8 Watchdog Timers

For details, seeESP32-C3 Technical Reference Manual> ChapterWatchdog Timers. Digital Watchdog Timers ESP8685 contains three digital watchdog timers: one in each of the two timer groups (called Main System Watchdog Timers, or MWDT) and one in the RTC module (called the RTC Watchdog Timer, or RWDT). During the flash boot process, RWDT and the MWDT in timer group 0 (TIMG0) are enabled automatically in order to detect and recover from booting errors. Digital watchdog timers have the following features: Espressif Systems 30 Submit Documentation Feedback ESP8685 Series Datasheet v1.4

  • four stages, each with a programmable timeout value. Each stage can be configured, enabled and disabled separately
  • interrupt, CPU reset, or core reset for MWDT upon expiry of each stage; interrupt, CPU reset, core reset, or system reset for RWDT upon expiry of each stage
  • 32-bit expiry counter
  • write protection, to prevent RWDT and MWDT configuration from being altered inadvertently
  • flash boot protection If the boot process from an SPI flash does not complete within a predetermined period of time, the watchdog will reboot the entire main system. Analog Watchdog Timer ESP8685 also has one analog watchdog timer: RTC super watchdog timer (SWD). It is an ultra-low-power circuit in analog domain that helps to prevent the system from operating in a sub-optimal state and resets the system if required. SWD has the following features:
  • Ultra-low power
  • Interrupt to indicate that the SWD timeout period is close to expiring
  • Various dedicated methods for software to feed SWD, which enables SWD to monitor the working state of the whole operating system

3.1.3.9 Permission Control

ESP8685 includes a Permission Controller (PMS), which allocates the hardware resources (memory and peripherals) to two isolated environments, thereby realizing the separation of privileged and unprivileged environments. Feature List

  • Independent access management in a privileged environment and unprivileged environment
  • Independent access management to internal memory, including – CPU access to internal memory – GDMA access to internal memory
  • Independent access management to external memory, including – CPU to external memory via SPI1 – CPU to external memory via Cache
  • Independent access management to peripheral regions, including – CPU access to peripheral regions – Interrupt upon unsupported access alignment
  • Address splitting for more flexible access management Espressif Systems 31 Submit Documentation Feedback ESP8685 Series Datasheet v1.4
  • Register locks to secure the integrity of access management related registers
  • Interrupt upon unauthorized access For details, seeESP32-C3 Technical Reference Manual> ChapterPermission Control (PMS).

3.1.3.10 System Registers

The System Registers in the ESP8685 chip are used to configure various auxiliary chip features. Feature List

  • Control system and memory
  • Control clock
  • Control software interrupt
  • Control low-power management
  • Control peripheral clock gating and reset For details, seeESP32-C3 Technical Reference Manual> ChapterSystem Registers (HP_SYSREG).

3.1.3.11 Debug Assistant

The Debug Assistant provides a set of functions to help locate bugs and issues during software debugging. It offers various monitoring capabilities and logging features to assist in identifying and resolving software errors efficiently. Feature List

  • Read/write monitoring: Monitors whether the CPU bus has read from or written to a specified address space. A detected read or write will trigger an interrupt.
  • Stack pointer (SP) monitoring: Monitors whether the SP exceeds the specified address space. A bounds violation will trigger an interrupt.
  • Program counter (PC) logging: Records PC value. The developer can get the last PC value at the most recent CPU reset.
  • Bus access logging: Records the information about bus access. When the CPU or DMA writes a specified value, the Debug Assistant module will record the address and PC value of this write operation, and push the data to the SRAM. For details, seeESP32-C3 Technical Reference Manual> ChapterDebug Assistant (ASSIST_DEBUG).

3.1.4 Cryptography and Security Component

This subsection describes the security features incorporated into the chip, which safeguard data and operations. Espressif Systems 32 Submit Documentation Feedback ESP8685 Series Datasheet v1.4

3.1.4.1 AES Accelerator

ESP8685 integrates an Advanced Encryption Standard (AES) accelerator, which is a hardware device that speeds up computation using AES algorithm significantly, compared to AES algorithms implemented solely in software. The AES accelerator integrated in ESP8685 has two working modes, which are Typical AES and DMA-AES. Feature List

  • Typical AES working mode – AES-128/AES-256 encryption and decryption
  • DMA-AES working mode – AES-128/AES-256 encryption and decryption – Block cipher mode * ECB (Electronic Codebook) * CBC (Cipher Block Chaining) * OFB (Output Feedback) * CTR (Counter) * CFB8 (8-bit Cipher Feedback) * CFB128 (128-bit Cipher Feedback) – Interrupt on completion of computation For details, seeESP32-C3 Technical Reference Manual> ChapterAES Accelerator (AES).

3.1.4.2 HMAC Accelerator

The HMAC Accelerator (HMAC) module is designed to compute Message Authentication Codes (MACs) using the SHA-256 Hash algorithm and keys as described in RFC 2104. It provides hardware support for HMAC computations, significantly reducing software complexity and improving performance. Feature List

  • Standard HMAC-SHA-256 algorithm
  • Hash result only accessible by configurable hardware peripheral (in downstream mode)
  • Compatible to challenge-response authentication algorithm
  • Generates required keys for the Digital Signature (DS) peripheral (in downstream mode)
  • Re-enables soft-disabled JTAG (in downstream mode) For details, see theESP32-C3 Technical Reference Manual> ChapterHMAC Accelerator. Espressif Systems 33 Submit Documentation Feedback ESP8685 Series Datasheet v1.4

3.1.4.3 RSA Accelerator

The RSA accelerator provides hardware support for high-precision computation used in various RSA asymmetric cipher algorithms, significantly improving their run time and reducing their software complexity. Compared with RSA algorithms implemented solely in software, this hardware accelerator can speed up RSA algorithms significantly. Feature List

  • Large-number modular exponentiation with two optional acceleration options, operands width up to 3072 bits
  • Large-number modular multiplication, operands width up to 3072 bits
  • Large-number multiplication, operands width up to 1536 bits
  • Operands of different widths
  • Interrupt on completion of computation For details, see theESP32-C3 Technical Reference Manual> ChapterRSA Accelerator.

3.1.4.4 SHA Accelerator

The SHA Accelerator (SHA) is a hardware device that speeds up SHA algorithm significantly, compared to SHA algorithm implemented solely in software. The SHA accelerator integrated in ESP8685 has two working modes, which are Typical SHA and DMA-SHA. Feature List

  • The following hash algorithms introduced inFIPS PUB 180-4 Spec. – SHA-1 – SHA-224 – SHA-256
  • Two working modes – Typical SHA – DMA-SHA
  • Interleaved function when working in Typical SHA working mode
  • Interrupt function when working in DMA-SHA working mode For more details, see theESP32-C3 Technical Reference Manual> ChapterSHA Accelerator (SHA).

3.1.4.5 Digital Signature

The Digital Signature (DS) module in the ESP8685 chip generates message signatures based on RSA with hardware acceleration. Espressif Systems 34 Submit Documentation Feedback ESP8685 Series Datasheet v1.4

  • RSA digital signatures with key length up to 3072 bits
  • Encrypted private key data, only decryptable by DS module
  • SHA-256 digest to protect private key data against tampering by an attacker For more details, see theESP32-C3 Technical Reference Manual> ChapterDigital Signature (DS).

3.1.4.6 External Memory Encryption and Decryption

The External Memory Encryption and Decryption (XTS_AES) module in the ESP8685 chip provides security for users’ application code and data stored in the external memory (flash). Feature List

  • General XTS_AES algorithm, compliant with IEEE Std 1619-2007
  • Software-based manual encryption
  • High-speed auto decryption, without software’s participation
  • Encryption and decryption functions jointly determined by registers configuration, eFuse parameters, and boot mode For more details, see theESP32-C3 Technical Reference Manual> ChapterExternal Memory Encryption and Decryption (XTS_AES).

3.1.4.7 Random Number Generator

The Random Number Generator (RNG) in the ESP8685 is a true random number generator that generates 32-bit random numbers for cryptographic operations from a physical process. Feature List

  • RNG entropy source – Thermal noise from high-speed ADC or SAR ADC – An asynchronous clock mismatch For more details about the Random Number Generator, refer to theESP32-C3 Technical Reference Manual> Chapter Random Number Generator (RNG). Espressif Systems 35 Submit Documentation Feedback ESP8685 Series Datasheet v1.4

3.2 Peripherals

This section describes the chip’s peripheral capabilities, covering connectivity interfaces and on-chip sensors that extend its functionality.

3.2.1 Connectivity Interface

This subsection describes the connectivity interfaces on the chip that enable communication and interaction with external devices and networks.

3.2.1.1 UART Controller

ESP8685 has two UART interfaces, i.e. UART0 and UART1, which support IrDA and asynchronous communication (RS232 and RS485) at a speed of up to 5 Mbps. The UART controller provides hardware flow control (CTS and RTS signals) and software flow control (XON and XOFF). Both UART interfaces connect to GDMA via UHCI0, and can be accessed by the GDMA controller or directly by the CPU. For details, seeESP32-C3 Technical Reference Manual> ChapterUART Controller (UART, LP_UART). Pin Assignment The pins connected to transmit and receive signals (U0TXD and U0RXD) forUART0 are multiplexed with GPIO21 ~ GPIO20 via IO MUX. Other signals can be routed to any GPIOs via the GPIO matrix. For more information about the pin assignment, see Section1.2 Pin Descriptionand ESP32-C3 Technical Reference Manual> ChapterIO MUX and GPIO Matrix.

3.2.1.2 SPI Controller

ESP8685 has the following SPI interfaces:

  • SPI0 used by ESP8685’s GDMA controller and cache to access in-package flash
  • SPI1 used by the CPU to access in-package flash
  • SPI2 is a general purpose SPI controller with access to a DMA channel allocated by the GDMA controller Features of SPI0 and SPI1
  • Supports Single SPI, Dual SPI, and Quad SPI, QPI modes
  • Configurable clock frequency with a maximum of 120 MHz in Single Transfer Rate (STR) mode
  • Data transmission is in bytes Features of SPI2
  • Supports operation as a master or slave
  • Connects to a DMA channel allocated by the GDMA controller
  • Supports Single SPI, Dual SPI, and Quad SPI, QPI
  • Configurable clock polarity (CPOL) and phase (CPHA) Espressif Systems 36 Submit Documentation Feedback ESP8685 Series Datasheet v1.4
  • Configurable clock frequency
  • Data transmission is in bytes
  • Configurable read and write data bit order: most-significant bit (MSB) first, or least-significant bit (LSB) first
  • As a master – Supports 2-line full-duplex communication with clock frequency up to 80 MHz – Supports 1-, 2-, 4-line half-duplex communication with clock frequency up to 80 MHz – Provides six SPI_CS pins for connection with six independent SPI slaves – Configurable CS setup time and hold time
  • As a slave – Supports 2-line full-duplex communication with clock frequency up to 60 MHz – Supports 1-, 2-, 4-line half-duplex communication with clock frequency up to 60 MHz For details, seeESP32-C3 Technical Reference Manual> ChapterSPI Controller (SPI). Pin Assignment For SPI0/1, the pins are not routed out. For SPI2, the pins are multiplexed with GPIO2, GPIO4 ~ GPIO7 , GPIO10, and JTAG interface via the IO MUX. For more information about the pin assignment, see Section1.2 Pin Descriptionand ESP32-C3 Technical Reference Manual> ChapterIO MUX and GPIO Matrix.

3.2.1.3 I2C Controller

ESP8685 has an I2C bus interface which is used for I2C master mode or slave mode, depending on your configuration. The I2C interface supports:

  • standard mode (100 Kbit/s)
  • fast mode (400 Kbit/s)
  • up to 800 Kbit/s (constrained by SCL and SDA pull-up strength)
  • 7-bit and 10-bit addressing mode
  • double addressing mode
  • 7-bit broadcast address For details, seeESP32-C3 Technical Reference Manual> ChapterI2C Controller (I2C). Pin Assignment The pins for I2C can be chosen from any GPIOs via the GPIO Matrix. For more information about the pin assignment, see Section1.2 Pin Descriptionand ESP32-C3 Technical Reference Manual> ChapterIO MUX and GPIO Matrix. Espressif Systems 37 Submit Documentation Feedback ESP8685 Series Datasheet v1.4

3.2.1.4 I2S Controller

ESP8685 includes a standard I2S interface. This interface can operate as a master or a slave in full-duplex mode or half-duplex mode, and can be configured for 8-bit, 16-bit, 24-bit, or 32-bit serial communication. BCK clock frequency, from 10 kHz up to 40 MHz, is supported. The I2S interface connects to the GDMA controller. The interface supports TDM PCM, TDM MSB alignment, TDM standard, and PDM standard. For details, seeESP32-C3 Technical Reference Manual> ChapterI2S Controller (I2S). Pin Assignment The pins for the I2S Controller can be chosen from any GPIOs via the GPIO Matrix. For more information about the pin assignment, see Section1.2 Pin Descriptionand ESP32-C3 Technical Reference Manual> ChapterIO MUX and GPIO Matrix.

3.2.1.5 USB Serial/JTAG Controller

ESP8685 integrates a USB Serial/JTAG controller. This controller has the following features:

  • CDC-ACM virtual serial port and JTAG adapter functionality
  • USB 2.0 full speed compliant, capable of up to 12 Mbit/s transfer speed (Note that this controller does not support the faster 480 Mbit/s high-speed transfer mode)
  • programming in-package flash
  • CPU debugging with compact JTAG instructions
  • a full-speed USB PHY integrated in the chip For details, seeESP32-C3 Technical Reference Manual> ChapterUSB Serial/JTAG Controller (USB_SERIAL_JTAG). Pin Assignment The pins for the USB Serial/JTAG Controller are multiplexed with GPIO18 ~ GPIO19. For more information about the pin assignment, see Section1.2 Pin Descriptionand ESP32-C3 Technical Reference Manual> ChapterIO MUX and GPIO Matrix.

3.2.1.6 Two-wire Automotive Interface

ESP8685 has a TWAI® controller with the following features:

  • compatible with ISO 11898-1 protocol (CAN Specification 2.0)
  • standard frame format (11-bit ID) and extended frame format (29-bit ID)
  • bit rates from 1 Kbit/s to 1 Mbit/s
  • multiple modes of operation: Normal, Listen Only, and Self-Test (no acknowledgment required)
  • 64-byte receive FIFO Espressif Systems 38 Submit Documentation Feedback ESP8685 Series Datasheet v1.4
  • acceptance filter (single and dual filter modes)
  • error detection and handling: error counters, configurable error interrupt threshold, error code capture, arbitration lost capture For details, seeESP32-C3 Technical Reference Manual> ChapterTwo-wire Automotive Interface. Pin Assignment The pins for the Two-wire Automotive Interface can be chosen from any GPIOs via the GPIO Matrix. For more information about the pin assignment, see Section1.2 Pin Descriptionand ESP32-C3 Technical Reference Manual> ChapterIO MUX and GPIO Matrix.

3.2.1.7 LED PWM Controller

The LED PWM controller can generate independent digital waveform on six channels. The LED PWM controller:

  • Can generate digital waveform with configurable periods and duty cycle. The resolution of duty cycle can be up to 14 bits.
  • Has multiple clock sources, including APB clock and external main crystal clock.
  • Can operate when the CPU is in Light-sleep mode.
  • Supports gradual increase or decrease of duty cycle, which is useful for the LED RGB color-gradient generator. For details, seeESP32-C3 Technical Reference Manual> ChapterLED PWM Controller. Pin Assignment The pins for the LED PWM Controller can be chosen from any GPIOs via the GPIO Matrix. For more information about the pin assignment, see Section1.2 Pin Descriptionand ESP32-C3 Technical Reference Manual> ChapterIO MUX and GPIO Matrix.

3.2.1.8 Remote Control Peripheral

The Remote Control Peripheral (RMT) supports two channels of infrared remote transmission and two channels of infrared remote reception. By controlling pulse waveform through software, it supports various infrared and other single wire protocols. All four channels share a 192 × 32-bit memory block to store transmit or receive waveform. For more details, seeESP32-C3 Technical Reference Manual> ChapterRemote Control Peripheral (RMT). Pin Assignment The pins for the Remote Control Peripheral can be chosen from any GPIOs via the GPIO Matrix. For more information about the pin assignment, see Section1.2 Pin Descriptionand ESP32-C3 Technical Reference Manual> ChapterIO MUX and GPIO Matrix. Espressif Systems 39 Submit Documentation Feedback ESP8685 Series Datasheet v1.4

3.2.2 Analog Signal Processing

This subsection describes components on the chip that sense and process real-world data.

3.2.2.1 SAR ADC

ESP8685 integrates two 12-bit SAR ADCs.

  • ADC1 supports measurements on 5 channels, and is factory-calibrated.
  • ADC2 supports measurements on 1 channel, and is not factory-calibrated. Note: ADC2 of some chip revisions is not operable. For details, please refer toESP32-C3 Series SoC Errata. For ADC characteristics, please refer to Section4.4 ADC Characteristics. For more details, seeESP32-C3 Technical Reference Manual> ChapterOn-Chip Sensors and Analog Signal Processing. Pin Assignment The pins for the SAR ADC are multiplexed with GPIO0 ~ GPIO5, JTAG interface, SPI2 interface, and pins for external crystal or oscillator. For more information about the pin assignment, see Section1.2 Pin Descriptionand ESP32-C3 Technical Reference Manual> ChapterIO MUX and GPIO Matrix.

3.2.2.2 Temperature Sensor

The temperature sensor generates a voltage that varies with temperature. The voltage is internally converted via an ADC into a digital value. The temperature sensor has a range of⚶40 °C to 125 °C. It is designed primarily to sense the temperature changes inside the chip. The temperature value depends on factors like microcontroller clock frequency or I/O load. Generally, the chip’s internal temperature is higher than the operating ambient temperature. For more details, seeESP32-C3 Technical Reference Manual> ChapterOn-Chip Sensors and Analog Signal Processing. Espressif Systems 40 Submit Documentation Feedback ESP8685 Series Datasheet v1.4

3.3 Wireless Communication

This section describes the chip’s wireless communication capabilities, spanning radio technology, Wi-Fi, Bluetooth, and 802.15.4.

3.3.1 Radio

This subsection describes the fundamental radio technology embedded in the chip that facilitates wireless communication and data exchange. ESP8685 radio consists of the following blocks:

  • 2.4 GHz receiver
  • 2.4 GHz transmitter
  • bias and regulators
  • balun and transmit-receive switch
  • clock generator 3.3.1.1 2.4 GHz Receiver The 2.4 GHz receiver demodulates the 2.4 GHz RF signal to quadrature baseband signals and converts them to the digital domain with two high-resolution, high-speed ADCs. To adapt to varying signal channel conditions, ESP8685 integrates RF filters, Automatic Gain Control (AGC), DC offset cancelation circuits, and baseband filters. 3.3.1.2 2.4 GHz Transmitter The 2.4 GHz transmitter modulates the quadrature baseband signals to the 2.4 GHz RF signal, and drives the antenna with a high-powered CMOS power amplifier. The use of digital calibration further improves the linearity of the power amplifier. Additional calibrations are integrated to cancel any radio imperfections, such as:
  • carrier leakage
  • I/Q amplitude/phase matching
  • baseband nonlinearities
  • RF nonlinearities
  • antenna matching These built-in calibration routines reduce the cost, time, and specialized equipment required for product testing.

3.3.1.3 Clock Generator

The clock generator produces quadrature clock signals of 2.4 GHz for both the receiver and the transmitter. All components of the clock generator are integrated into the chip, including inductors, varactors, filters, regulators and dividers. Espressif Systems 41 Submit Documentation Feedback ESP8685 Series Datasheet v1.4

The clock generator has built-in calibration and self-test circuits. Quadrature clock phases and phase noise are optimized on chip with patented calibration algorithms which ensure the best performance of the receiver and the transmitter.

3.3.2 Wi-Fi

This subsection describes the chip’s Wi-Fi capabilities, which facilitate wireless communication at a high data rate.

3.3.2.1 Wi-Fi Radio and Baseband

ESP8685 Wi-Fi radio and baseband support the following features:

  • 802.11b/g/n
  • 802.11n MCS0-7 that supports 20 MHz and 40 MHz bandwidth
  • 802.11n MCS32
  • 802.11n 0.4µs guard interval
  • data rate up to 150 Mbps
  • RX STBC (single spatial stream)
  • adjustable transmitting power
  • antenna diversity ESP8685 supports antenna diversity with an external RF switch. This switch is controlled by one or more GPIOs, and used to select the best antenna to minimize the effects of channel imperfections.

3.3.2.2 Wi-Fi MAC

ESP8685 implements the full 802.11 b/g/n Wi-Fi MAC protocol. It supports the Basic Service Set (BSS) STA and SoftAP operations under the Distributed Control Function (DCF). Power management is handled automatically with minimal host interaction to minimize the active duty period. ESP8685 Wi-Fi MAC applies the following low-level protocol functions automatically:

  • 4 × virtual Wi-Fi interfaces
  • infrastructure BSS in Station mode, SoftAP mode, Station + SoftAP mode, and promiscuous mode
  • RTS protection, CTS protection, Immediate Block ACK
  • fragmentation and defragmentation
  • TX/RX A-MPDU, TX/RX A-MSDU
  • transmit opportunity (TXOP)
  • Wi-Fi multimedia (WMM)
  • GCMP, CCMP, TKIP, WAPI, WEP, BIP, WPA2-PSK/WPA2-Enterprise, and WPA3-PSK/WPA3-Enterprise
  • automatic beacon monitoring (hardware TSF)
  • 802.11mc FTM Espressif Systems 42 Submit Documentation Feedback ESP8685 Series Datasheet v1.4

3.3.2.3 Networking Features

Espressif provides libraries for TCP/IP networking, ESP-WIFI-MESH networking, and other networking

3.3.3 Bluetooth LE

This subsection describes the chip’s Bluetooth capabilities, which facilitate wireless communication for low-power, short-range applications. ESP8685 includes a Bluetooth Low Energy subsystem that integrates a hardware link layer controller, an RF/modem block and a feature-rich software protocol stack. It supports the core features of Bluetooth 5 and Bluetooth mesh.

3.3.3.1 Bluetooth LE PHY

Bluetooth Low Energy radio and PHY in ESP8685 support:

  • 1 Mbps PHY
  • 2 Mbps PHY for higher data rates
  • coded PHY for longer range (125 Kbps and 500 Kbps)
  • HW Listen before talk (LBT)

3.3.3.2 Bluetooth LE Link Controller

Bluetooth Low Energy Link Layer Controller in ESP8685 supports:

  • LE advertising extensions, to enhance broadcasting capacity and broadcast more intelligent data
  • multiple advertisement sets
  • simultaneous advertising and scanning
  • multiple connections in simultaneous central and peripheral roles
  • adaptive frequency hopping and channel assessment
  • LE channel selection algorithm #2
  • connection parameter update
  • high duty cycle non-connectable advertising
  • LE privacy 1.2
  • LE data packet length extension
  • link layer extended scanner filter policies
  • low duty cycle directed advertising
  • link layer encryption
  • LE Ping Espressif Systems 43 Submit Documentation Feedback ESP8685 Series Datasheet v1.4

4 Electrical Characteristics

4.1 Absolute Maximum Ratings

Stresses above those listed in T able4-1 Absolute Maximum Ratingsmay cause permanent damage to the device. These are stress ratings only and normal operation of the device at these or any other conditions beyond those indicated in Section4.2 Recommended Operating Conditionsis not implied. Exposure to absolute-maximum-rated conditions for extended periods may affect device reliability. Table 4-1. Absolute Maximum Ratings Parameter Description Min Max Unit Input power pins1 Allowed input voltage ⚶0.3 3.6 V Ioutput 2 Cumulative IO output current — 1000 mA TSTORE Storage temperature ⚶40 150 °C 1 For more information on input power pins, see Section1.3 Power Supply.

2 The product proved to be fully functional after all its IO pins were pulled high

while being connected to ground for 24 consecutive hours at ambient temper- ature of 25 °C.

4.2 Recommended Operating Conditions

Table 4-2. Recommended Operating Conditions Parameter 1 Description Min Typ Max Unit VDDA, VDD3P3, VDD3P3_RTC Recommended input voltage 3.0 3.3 3.6 V VDD3P3_CPU 2 Recommended input voltage 3.0 3.3 3.6 V TA Operating ambient temperature ⚶40 — 105 °C IV DD Cumulative input current 0.5 — — A 1 See in conjunction with Section1.3 Power Supply. 2 If writing to eFuses, the voltage on VDD3P3_CPU should not exceed 3.3 V as the circuits re- sponsible for burning eFuses are sensitive to higher voltages. 4.3 DC Characteristics (3.3 V, 25 °C) Table 4-3. DC Characteristics (3.3 V, 25 °C) Parameter Description Min Typ Max Unit CIN Pin capacitance — 2 — pF VIH High-level input voltage 0.75 × VDD1 — VDD 1 + 0.3 V VIL Low-level input voltage ⚶0.3 — 0.25 × VDD1 V IIH High-level input current — — 50 nA IIL Low-level input current — — 50 nA Cont’d on next page Espressif Systems 44 Submit Documentation Feedback ESP8685 Series Datasheet v1.4

Table 4-3 – cont’d from previous page Parameter Description Min Typ Max Unit VOH 2 High-level output voltage 0.8 × VDD1 — — V VOL 2 Low-level output voltage — — 0.1 × VDD1 V IOH High-level source current (VDD1 = 3.3 V, VOH >= 2.64 V, PAD_DRIVER = 3) — 40 — mA IOL Low-level sink current (VDD1 = 3.3 V, VOL =

0.495 V, PAD_DRIVER = 3) — 28 — mA

RPU Internal weak pull-up resistor — 45 — kΩ RPD Internal weak pull-down resistor — 45 — kΩ VIH_nRST Chip reset release voltage CHIP_EN voltage is within the specified range) 0.75 × VDD1 — VDD 1 + 0.3 V VIL_nRST Chip reset voltage (CHIP_EN voltage is within the specified range) ⚶0.3 — 0.25 × VDD1 V 1 VDD – voltage from a power pin of a respective power domain. 2 VOH and VOL are measured using high-impedance load.

4.4 ADC Characteristics

Table 4-4. ADC Characteristics Symbol Parameter Min Max Unit DNL (Differential nonlinearity)1 ADC connected to an external ⚶7 7 LSB100 nF capacitor; DC signal input; INL (Integral nonlinearity) Ambient temperature at 25 °C; ⚶12 12 LSBWi-Fi off Sampling rate — — 100 kSPS 2

1 To get better DNL results, you can sample multiple times and apply a filter, or calculate the average

value. 2 kSPS means kilo samples-per-second. The calibrated ADC results after hardware calibration andsoftware calibration are shown in T able4-5. For higher accuracy, you may implement your own calibration methods. Table 4-5. ADC Calibration Results Parameter Description Min Max Unit Total error ATTEN0, effective measurement range of 0~ 750 ⚶10 10 mV ATTEN1, effective measurement range of 0~ 1050 ⚶10 10 mV ATTEN2, effective measurement range of 0~ 1300 ⚶10 10 mV ATTEN3, effective measurement range of 0~ 2500 ⚶35 35 mV Espressif Systems 45 Submit Documentation Feedback ESP8685 Series Datasheet v1.4

4.5 Current Consumption

4.5.1 RF Current Consumption in Active Mode

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. Table 4-6. Wi-Fi Current Consumption Depending on RF Modes Work Mode1 Description Peak (mA) Active (RF working) TX 802.11b, 1 Mbps, @21 dBm 335 802.11g, 54 Mbps, @19 dBm 285 802.11n, HT20, MCS7 , @18.5 dBm 276 802.11n, HT40, MCS7 , @18.5 dBm 278 RX 802.11b/g/n, HT20 84 802.11n, HT40 87

4.5.2 Current Consumption in Other Modes

Table 4-7. Current Consumption in Modem-sleep Mode Typ Mode CPU Frequency (MHz) Description All Peripherals Clocks Disabled (mA) All Peripherals Clocks Enabled (mA)1 Modem-sleep 2,3

160 CPU is running 23 28

80 CPU is running 17 22

1 In practice, the current consumption might be different depending on which peripherals are enabled. 2 In Modem-sleep mode, Wi-Fi is clock gated. 3 In Modem-sleep mode, the consumption might be higher when accessing flash. For a flash rated at 80 Mbit/s, in SPI 2-line mode the consumption is 10 mA. Table 4-8. Current Consumption in Low-Power Modes Mode Description Typ (µA) Light-sleep Wi-Fi are powered down, and all GPIOs are high-impedance 130 Deep-sleep RTC timer + RTC memory 5 Power off CHIP_EN is set to low level, the chip is powered off 1 Espressif Systems 46 Submit Documentation Feedback ESP8685 Series Datasheet v1.4

4.6 Reliability

Table 4-9. Reliability Qualifications Test Item Test Conditions Test Standard HTOL (High Temperature Operating Life) 125 °C, 1000 hours JESD22-A108 ESD (Electro-Static Discharge Sensitivity) HBM (Human Body Mode)1 ± 2000 V JS-001 CDM (Charge Device Mode)2 ± 1000 V JS-002 Latch up Current trigger ± 200 mA JESD78Voltage trigger 1.5 × VDDmax Preconditioning Bake 24 hours @125 °C Moisture soak (level 3: 192 hours @30 °C, 60% RH) IR reflow solder: 260 + 0 °C, 20 seconds, three times J-STD-020, JESD47 , JESD22-A113 TCT (Temperature Cycling Test) ⚶65 °C / 150 °C, 500 cycles JESD22-A104 uHAST (Highly Accelerated Stress Test, unbiased) 130 °C, 85% RH, 96 hours JESD22-A118 HTSL (High Temperature Storage Life) 150 °C, 1000 hours JESD22-A103 LTSL (Low Temperature Storage Life) ⚶40 °C, 1000 hours JESD22-A119 1 JEDEC document JEP155 states that 500 V HBM allows safe manufacturing with a standard ESD control process. 2 JEDEC document JEP157 states that 250 V CDM allows safe manufacturing with a standard ESD control process. Espressif Systems 47 Submit Documentation Feedback ESP8685 Series Datasheet v1.4

5 RF Characteristics

This section contains tables with RF characteristics of the Espressif product. The RF data is measured at the antenna port, where RF cable is connected, including the front-end loss. The front-end circuit is a 0Ω resistor. Devices should operate in the center frequency range allocated by regional regulatory authorities. The target center frequency range and the target transmit power are configurable by software. SeeESP RF TestTooland TestGuide for instructions. Unless otherwise stated, the RF tests are conducted with a 3.3 V (±5%) supply at 25 ºC ambient temperature.

5.1 Wi-Fi Radio

Table 5-1. Wi-Fi Frequency Min Typ Max Parameter (MHz) (MHz) (MHz) Center frequency of operating channel 2412 — 2484

5.1.1 Wi-Fi RF Transmitter (TX) Characteristics

Table 5-2. TX Power with Spectral Mask and EVM Meeting 802.11 Standards Min Typ Max Rate (dBm) (dBm) (dBm) 802.11b, 1 Mbps — 21.0 — 802.11b, 11 Mbps — 21.0 — 802.11g, 6 Mbps — 21.0 — 802.11g, 54 Mbps — 19.0 — 802.11n, HT20, MCS0 — 20.0 — 802.11n, HT20, MCS7 — 18.5 — 802.11n, HT40, MCS0 — 20.0 — 802.11n, HT40, MCS7 — 18.5 — Table 5-3. TX EVM Test Min Typ SL1 Rate (dB) (dB) (dB) 802.11b, 1 Mbps, @21 dBm — ⚶24.5 ⚶10 802.11b, 11 Mbps, @21 dBm — ⚶24.5 ⚶10 802.11g, 6 Mbps, @21 dBm — ⚶21.0 ⚶5 802.11g, 54 Mbps, @19 dBm — ⚶27 .0 ⚶25 802.11n, HT20, MCS0, @20 dBm — ⚶22.5 ⚶5 Cont’d on next page Espressif Systems 48 Submit Documentation Feedback ESP8685 Series Datasheet v1.4

Table 5-3 – cont’d from previous page Min Typ SL1 Rate (dB) (dB) (dB) 802.11n, HT20, MCS7 , @18.5 dBm — ⚶28.5 ⚶27 802.11n, HT40, MCS0, @20 dBm — ⚶22.5 ⚶5 802.11n, HT40, MCS7 , @18.5 dBm — ⚶28.5 ⚶27 1 SL stands for standard limit value.

5.1.2 Wi-Fi RF Receiver (RX) Characteristics

Table 5-4. RX Sensitivity Min Typ Max Rate (dBm) (dBm) (dBm) 802.11b, 1 Mbps — ⚶98.4 — 802.11b, 2 Mbps — ⚶96.0 — 802.11b, 11 Mbps — ⚶88.6 — 802.11g, 6 Mbps — ⚶93.8 — 802.11g, 9 Mbps — ⚶92.2 — 802.11g, 12 Mbps — ⚶91.0 — 802.11g, 18 Mbps — ⚶88.4 — 802.11g, 24 Mbps — ⚶85.8 — 802.11g, 36 Mbps — ⚶82.0 — 802.11g, 48 Mbps — ⚶78.0 — 802.11g, 54 Mbps — ⚶76.6 — 802.11n, HT20, MCS0 — ⚶93.6 — 802.11n, HT20, MCS1 — ⚶90.8 — 802.11n, HT20, MCS2 — ⚶88.4 — 802.11n, HT20, MCS3 — ⚶85.0 — 802.11n, HT20, MCS4 — ⚶81.8 — 802.11n, HT20, MCS5 — ⚶77 .8 — 802.11n, HT20, MCS6 — ⚶76.0 — 802.11n, HT20, MCS7 — ⚶74.8 — 802.11n, HT40, MCS0 — ⚶90.0 — 802.11n, HT40, MCS1 — ⚶88.0 — 802.11n, HT40, MCS2 — ⚶85.2 — 802.11n, HT40, MCS3 — ⚶82.0 — 802.11n, HT40, MCS4 — ⚶78.8 — 802.11n, HT40, MCS5 — ⚶74.6 — 802.11n, HT40, MCS6 — ⚶73.0 — 802.11n, HT40, MCS7 — ⚶71.4 — Espressif Systems 49 Submit Documentation Feedback ESP8685 Series Datasheet v1.4

Table 5-5. Maximum RX Level Min Typ Max Rate (dBm) (dBm) (dBm) 802.11b, 1 Mbps — 5 — 802.11b, 11 Mbps — 5 — 802.11g, 6 Mbps — 5 — 802.11g, 54 Mbps — 0 — 802.11n, HT20, MCS0 — 5 — 802.11n, HT20, MCS7 — 0 — 802.11n, HT40, MCS0 — 5 — 802.11n, HT40, MCS7 — 0 — Table 5-6. RX Adjacent Channel Rejection Min Typ Max Rate (dB) (dB) (dB) 802.11b, 1 Mbps — 35 — 802.11b, 11 Mbps — 35 — 802.11g, 6 Mbps — 31 — 802.11g, 54 Mbps — 20 — 802.11n, HT20, MCS0 — 31 — 802.11n, HT20, MCS7 — 16 — 802.11n, HT40, MCS0 — 25 — 802.11n, HT40, MCS7 — 11 — Espressif Systems 50 Submit Documentation Feedback ESP8685 Series Datasheet v1.4

5.2 Bluetooth 5 (LE) Radio

Table 5-7. Bluetooth LE Frequency Min Typ MaxParameter (MHz) (MHz) (MHz) Center frequency of operating channel 2402 — 2480

5.2.1 Bluetooth LE RF Transmitter (TX) Characteristics

Table 5-8. Transmitter Characteristics - Bluetooth LE 1 Mbps Parameter Description Min Typ Max Unit RF transmit power RF power control range ⚶24.00 0 20.00 dBm Gain control step — 3.00 — dB Carrier frequency offset and drift Max |fn|n=0, 1, 2, ..k — 17 .00 — kHz Max |f0 − fn| — 1.75 — kHz Modulation characteristics ∆ f1avg — 250.00 — kHz Min ∆ f2max (for at least 99.9% of all∆ f2max) — 190.00 — kHz ∆ f2avg/∆ f1avg — 0.83 — — In-band spurious emissions ± 2 MHz offset — ⚶37 .62 — dBm ± 3 MHz offset — ⚶41.95 — dBm > ± 3 MHz offset — ⚶44.48 — dBm Table 5-9. Transmitter Characteristics - Bluetooth LE 2 Mbps Parameter Description Min Typ Max Unit RF transmit power RF power control range ⚶24.00 0 20.00 dBm Gain control step — 3.00 — dB Carrier frequency offset and drift Max |fn|n=0, 1, 2, ..k — 20.80 — kHz Max |f0 − fn| — 1.30 — kHz Modulation characteristics ∆ f1avg — 498.00 — kHz Min ∆ f2max (for at least 99.9% of all∆ f2max) — 430.00 — kHz ∆ f2avg/∆ f1avg — 0.93 — — In-band spurious emissions ± 4 MHz offset — ⚶43.55 — dBm ± 5 MHz offset — ⚶45.26 — dBm > ± 5 MHz offset — ⚶45.26 — dBm Espressif Systems 51 Submit Documentation Feedback ESP8685 Series Datasheet v1.4

Table 5-10. Transmitter Characteristics - Bluetooth LE 125 Kbps Parameter Description Min Typ Max Unit RF transmit power RF power control range ⚶24.00 0 20.00 dBm Gain control step — 3.00 — dB Carrier frequency offset and drift Max |fn|n=0, 1, 2, ..k — 17 .50 — kHz Max |f0 − fn| — 0.45 — kHz Modulation characteristics ∆ f1avg — 250.00 — kHz Min ∆ f1max (for at least 99.9% of all∆ f2max) — 235.00 — kHz In-band spurious emissions ± 2 MHz offset — ⚶37 .90 — dBm ± 3 MHz offset — ⚶41.00 — dBm > ± 3 MHz offset — ⚶42.50 — dBm Table 5-11. Transmitter Characteristics - Bluetooth LE 500 Kbps Parameter Description Min Typ Max Unit RF transmit power RF power control range ⚶24.00 0 20.00 dBm Gain control step — 3.00 — dB Carrier frequency offset and drift Max |fn|n=0, 1, 2, ..k — 17 .00 — kHz Max |f0 − fn| — 0.88 — kHz Modulation characteristics ∆ f2avg — 208.00 — kHz Min ∆ f2max (for at least 99.9% of all∆ f2max) — 190.00 — kHz In-band spurious emissions ± 2 MHz offset — ⚶37 .90 — dBm ± 3 MHz offset — ⚶41.30 — dBm > ± 3 MHz offset — ⚶42.80 — dBm

5.2.2 Bluetooth LE RF Receiver (RX) Characteristics

Table 5-12. Receiver Characteristics - Bluetooth LE 1 Mbps Parameter Description Min Typ Max Unit Sensitivity @30.8% PER — — ⚶97 — dBm Maximum received signal @30.8% PER— — 5 — dBm Co-channel C/I — — 8 — dB Adjacent channel selectivity C/I F = F0 + 1 MHz — ⚶3 — dB F = F0 – 1 MHz — ⚶4 — dB F = F0 + 2 MHz — ⚶29 — dB F = F0 – 2 MHz — ⚶31 — dB Cont’d on next page Espressif Systems 52 Submit Documentation Feedback ESP8685 Series Datasheet v1.4

Table 5-12 – cont’d from previous page Parameter Description Min Typ Max Unit F = F0 + 3 MHz — ⚶33 — dB F = F0 – 3 MHz — ⚶27 — dB F ≥ F0 + 4 MHz — ⚶29 — dB F ≤ F0 – 4 MHz — ⚶38 — dB Image frequency — — ⚶29 — dB Adjacent channel to image frequency F = Fimage + 1 MHz — ⚶41 — dB F = Fimage – 1 MHz — ⚶33 — dB Out-of-band blocking performance

30 MHz~ 2000 MHz — ⚶5 — dBm

2003 MHz~ 2399 MHz — ⚶18 — dBm

2484 MHz~ 2997 MHz — ⚶15 — dBm

3000 MHz~ 12.75 GHz — ⚶5 — dBm Intermodulation — — ⚶30 — dBm Table 5-13. Receiver Characteristics - Bluetooth LE 2 Mbps Parameter Description Min Typ Max Unit Sensitivity @30.8% PER — — ⚶93 — dBm Maximum received signal @30.8% PER— — 3 — dBm Co-channel C/I — — 10 — dB Adjacent channel selectivity C/I F = F0 + 2 MHz — ⚶7 — dB F = F0 – 2 MHz — ⚶7 — dB F = F0 + 4 MHz — ⚶28 — dB F = F0 – 4 MHz — ⚶26 — dB F = F0 + 6 MHz — ⚶26 — dB F = F0 – 6 MHz — ⚶27 — dB F ≥ F0 + 8 MHz — ⚶29 — dB F ≤ F0 – 8 MHz — ⚶28 — dB Image frequency — — ⚶28 — dB Adjacent channel to image frequency F = Fimage + 2 MHz — ⚶26 — dB F = Fimage – 2 MHz — ⚶7 — dB Out-of-band blocking performance

2003 MHz~ 2399 MHz — ⚶19 — dBm

2484 MHz~ 2997 MHz — ⚶16 — dBm

3000 MHz~ 12.75 GHz — ⚶5 — dBm Intermodulation — — ⚶29 — dBm Table 5-14. Receiver Characteristics - Bluetooth LE 125 Kbps Parameter Description Min Typ Max Unit Sensitivity @30.8% PER — — ⚶105 — dBm Maximum received signal @30.8% PER— — 5 — dBm Co-channel C/I — — 3 — dB Cont’d on next page Espressif Systems 53 Submit Documentation Feedback ESP8685 Series Datasheet v1.4

Table 5-14 – cont’d from previous page Parameter Description Min Typ Max Unit Adjacent channel selectivity C/I F = F0 + 1 MHz — ⚶6 — dB F = F0 – 1 MHz — ⚶6 — dB F = F0 + 2 MHz — ⚶33 — dB F = F0 – 2 MHz — ⚶43 — dB F = F0 + 3 MHz — ⚶37 — dB F = F0 – 3 MHz — ⚶47 — dB F ≥ F0 + 4 MHz — ⚶40 — dB F ≤ F0 – 4 MHz — ⚶50 — dB Image frequency — — ⚶40 — dB Adjacent channel to image frequency F = Fimage + 1 MHz — ⚶50 — dB F = Fimage – 1 MHz — ⚶37 — dB Table 5-15. Receiver Characteristics - Bluetooth LE 500 Kbps Parameter Description Min Typ Max Unit Sensitivity @30.8% PER — — ⚶100 — dBm Maximum received signal @30.8% PER— — 5 — dBm Co-channel C/I — — 3 — dB Adjacent channel selectivity C/I F = F0 + 1 MHz — ⚶2 — dB F = F0 – 1 MHz — ⚶3 — dB F = F0 + 2 MHz — ⚶32 — dB F = F0 – 2 MHz — ⚶33 — dB F = F0 + 3 MHz — ⚶23 — dB F = F0 – 3 MHz — ⚶40 — dB F ≥ F0 + 4 MHz — ⚶34 — dB F ≤ F0 – 4 MHz — ⚶44 — dB Image frequency — — ⚶34 — dB Adjacent channel to image frequency F = Fimage + 1 MHz — ⚶46 — dB F = Fimage – 1 MHz — ⚶23 — dB Espressif Systems 54 Submit Documentation Feedback ESP8685 Series Datasheet v1.4

6 Packaging

  • For information about tape, reel, and chip marking, please refer toEspressif Chip Packaging Information.
  • The pins of the chip are numbered in anti-clockwise order starting from Pin 1 in the top view. For pin numbers and pin names, see also Figure1-1 ESP8685 Pin Layout (Top View).
  • The recommended land patternsource file (asc) is available for download. You can import the file with software such as PADS and Altium Designer.
  • For reference PCB layout, please refer toESP32-C3 Hardware Design Guidelines. )250$7&2'( Figure 6-1. QFN28 (4×4 mm) Package Espressif Systems 55 Submit Documentation Feedback ESP8685 Series Datasheet v1.4

ESP32-C3 Chip Series Group Overview ESP32-C3 Chip Series Group Overview The ESP32-C3chip series groupis a low-power solution that provides 2.4 GHz Wi-Fi (802.11b/g/n) and Bluetooth 5.0 connectivity, dedicated to smart home applications. This chip series group consists of the following chip series:

  • ESP32-C3 series
  • ESP8685 series, a cost-down version of ESP32-C3 series All members within the ESP32-C3 chip series group use a common set of software and reference materials, including the technical reference manual and hardware design guidelines – SeeRelated Documentation and Resources. ESP32-C3 ESP8685 Chip revision v0.4/v1.1 v0.4 In-package flash No/4 MB 4 MB Flash extensibility Y — GPIO count 16 or 22 15 Espressif Systems 56 Submit Documentation Feedback ESP8685 Series Datasheet v1.4

A subset of chips within a chip series group with similar core features and specifications2, 56 chip series group A broad group of related chip products that use the same die. For example, ESP32-C3 chip series group consists of ESP32-C3 chip series and ESP8685 chip series2, 56 in-package flash Flash integrated directly into the chip’s package, and external to the chip die4, 20 strapping pin A type of GPIO pin used to configure certain operational settings during the chip’s power-up, and can be reconfigured as normal GPIO after the chip’s reset15 eFuse parameter A parameter stored in an electrically programmable fuse (eFuse) memory within a chip. The parameter can be set by programming EFUSE_PGM_DATAn_REG registers, and read by reading a register field named after the parameter15 SPI boot mode A boot mode in which users load and execute the existing code from SPI flash16 joint download boot mode A boot mode in which users can download code into flash via the UART or other interfaces (see T able2-3 Chip Boot Mode Control> Note), and load and execute the downloaded code from the flash or SRAM16 eFuse A one-time programmable (OTP) memory which stores system and user parameters, such as MAC address, chip revision number, flash encryption key, etc. Value 0 indicates the default state, and value 1 indicates the eFuse has been programmed20 Espressif Systems 57 Submit Documentation Feedback ESP8685 Series Datasheet v1.4

Related Documentation and Resources Related Documentation and Resources Related Documentation

  • ESP32-C3 TechnicalReferenceManual – Detailed information on how to use the ESP32-C3 memory and periph- erals.
  • ESP32-C3 Hardware Design Guidelines – Guidelines on how to integrate the ESP32-C3 into your hardware prod- uct.
  • ESP32-C3 Series SoC Errata – Descriptions of known errors in ESP32-C3 series of SoCs.
  • Certificates https:/ /espressif.com/en/support/documents/certificates
  • ESP32-C3 Product/Process Change Notifications (PCN) https:/ /espressif.com/en/support/documents/pcns?keys=ESP32-C3
  • ESP32-C3 Advisories– Information on security, bugs, compatibility, component reliability. https:/ /espressif.com/en/support/documents/advisories?keys=ESP32-C3
  • Documentation Updates and Update Notification Subscription https:/ /espressif.com/en/support/download/documents Developer Zone
  • ESP-IDF Programming Guide for ESP32-C3 – Extensive documentation for the ESP-IDF development framework.
  • ESP-IDF and other development frameworks on GitHub. https:/ /github.com/espressif
  • ESP32 BBS Forum– Engineer-to-Engineer (E2E) Community for Espressif products where you can post questions, share knowledge, explore ideas, and help solve problems with fellow engineers. https:/ /esp32.com/
  • The ESP Journal– Best Practices, Articles, and Notes from Espressif folks. https:/ /blog.espressif.com/
  • See the tabsSDKs and Demos, Apps, Tools, AT Firmware. https:/ /espressif.com/en/support/download/sdks-demos Products
  • ESP32-C3 Series SoCs– Browse through all ESP32-C3 SoCs. https:/ /espressif.com/en/products/socs?id=ESP32-C3
  • ESP32-C3 Series Modules– Browse through all ESP32-C3-based modules. https:/ /espressif.com/en/products/modules?id=ESP32-C3
  • ESP32-C3 Series DevKits– Browse through all ESP32-C3-based devkits. https:/ /espressif.com/en/products/devkits?id=ESP32-C3
  • ESP Product Selector– Find an Espressif hardware product suitable for your needs by comparing or applying filters. https:/ /products.espressif.com/#/product-selector?language=en Contact Us
  • See the tabsSales Questions, Technical Enquiries, Circuit Schematic & PCB Design Review, Get Samples (Online stores),Become Our Supplier, Comments & Suggestions. https:/ /espressif.com/en/contact-us/sales-questions Espressif Systems 58 Submit Documentation Feedback ESP8685 Series Datasheet v1.4

Revision History

Date Version Release notes 2025-04-21 v1.4 Updated CPU CoreMark® scode in SectionProduct Overview 2024-11-14 v1.3

  • Added flash erase cycles, retention time, maximum clock frequency in Section 3.1.2.1Internal Memory
  • Added ESP32-C3 Chip Series Group Overview
  • Added Glossary
  • Improved the formatting, structure, and wording in the following sections: – Section 2 Boot Configurations(used to be named as ”Strapping Pins”) – Section 3 Functional Description
  • Other minor updates 2024-02-06 v1.2
  • Removed the end-of-life ESP8685H2 variant
  • Corrected the PWM duty resolution to 14 bits in Section3.2.1.7LED PWM Controller
  • Updated the maximum value of ”RF power control range” to 20 dBm in Section 5.2 Bluetooth 5 (LE) Radio
  • Other updates to wording 2022-12-15 v1.1
  • Deleted feature ”Antenna diversity” from Section3.3.3.1Bluetooth LE PHY
  • Deleted feature ”Supports external power amplifier”
  • Added a note about ADC2 error in Section3.2.2.1 SAR ADC
  • Updated notes for T ablePower-Up Glitches on Pins, and updated the glitch type of GPIO18 to high-level glitch
  • Added T ableADC Calibration Results
  • Updated Section4.5.2 Current Consumption in Other Modes
  • Updated RF transmit power in Section5.2 Bluetooth 5 (LE) Radio
  • Updated ChapterRelated Documentation and Resources 2022-04-08 v1.0
  • Added a new variant ESP8685H4;
  • Updated Figure ESP8685 Functional Block Diagramto show power modes
  • Added CoreMark score in Features
  • Updated FigureESP8685 Power Schemeand related descriptions
  • Updated T able Peripheral Pin Configurations
  • Added note 2 to T ableRecommended Operating Conditions
  • Other updates to wording 2021-07-30 v0.5 Preliminary release Espressif Systems 59 Submit Documentation Feedback ESP8685 Series Datasheet v1.4

Disclaimer and Copyright Notice Information in this document, including URL references, is subject to change without notice. ALL THIRD PARTY’S INFORMATION IN THIS DOCUMENT IS PROVIDED AS IS WITH NO WARRANTIES TO ITS AUTHENTICITY AND ACCURACY . NO WARRANTY IS PROVIDED TO THIS DOCUMENT FOR ITS MERCHANTABILITY , NON-INFRINGEMENT , FITNESS FOR ANY PARTICULAR PURPOSE, NOR DOES ANY WARRANTY OTHERWISE ARISING OUT OF ANY PROPOSAL, SPECIFICATION OR SAMPLE. All liability, including liability for infringement of any proprietary rights, relating to use of information in this document is disclaimed. No licenses express or implied, by estoppel or otherwise, to any intellectual property rights are granted herein. The Wi-Fi Alliance Member logo is a trademark of the Wi-Fi Alliance. The Bluetooth logo is a registered trademark of Bluetooth SIG. All trade names, trademarks and registered trademarks mentioned in this document are property of their respective owners, and are hereby acknowledged. Copyright © 2025 Espressif Systems (Shanghai) Co., Ltd. All rights reserved. www.espressif.com