ESP32-C3 Family Datasheet
Total Page:16
File Type:pdf, Size:1020Kb
ESP32-C3 Family Datasheet Ultra-Low-Power SoC with RISC-V Single-Core CPU Supporting 2.4 GHz Wi-Fi and Bluetooth LE Including: ESP32-C3 ESP32-C3FN4 ESP32-C3FH4 PRELIMINARY Prerelease version 0.4 Espressif System Copyright © 2020 www.espressif.com Product Overview ESP32-C3 family is an ultra-low-power MCU-based SoC solution that supports 2.4 GHz Wi-Fi and Bluetooth® Low Energy (Bluetooth LE). It has: • A complete Wi-Fi subsystem that complies with • Reliable security features ensured by IEEE 802.11b/g/n protocol and supports – Cryptographic hardware accelerators that Station, SoftAP, and SoftAP + Station modes support AES-128/256, Hash, RSA, HMAC, • A Bluetooth LE subsystem that supports digital signature and secure boot features of Bluetooth 5 and Bluetooth mesh – Random number generator • State-of-the-art power and RF performance – Permission control on accessing internal • 32-bit RISC-V single-core processor with a memory, external memory, and peripherals four-stage pipeline that operates at up to 160 – External memory encryption and decryption MHz • Rich set of peripheral interfaces and GPIOs, • 400 KB of SRAM and 384 KB of ROM on the ideal for various scenarios and complex chip, and SPI, Dual SPI, Quad SPI, and QPI applications interfaces that allow connection to flash Block Diagram Espressif’s ESP32-C3 Wi-Fi + BLE SoC Main CPU JTAG WLAN RF BLE 5.0 ROM Wi-Fi MAC link RF receiver RISC-V controller 32-bit Clock Microprocessor Cache Wi-Fi BLE 5.0 generator baseband baseband SRAM RF transmitter Peripherals and Sensors RTC Switch GPIO I2C PMU RTC memory Balun SPI I2S LED PWM UART Cryptographic Hardware Acceleration TWAI ADC SHA RSA RMT Timers PRELIMINARYAES RNG GDMA HMAC Digital signature Temperature sensor XTS-AES-128 flash encryption Figure 1: Block Diagram of ESP32-C3 Espressif Systems 2 ESP32-C3 Family Datasheet V0.4 Submit Documentation Feedback Features Wi-Fi allow connection to multiple external flash • IEEE 802.11 b/g/n-compliant Advanced Peripheral Interfaces • Supports 20 MHz, 40 MHz bandwidth in 2.4 GHz band • 22 × programmable GPIOs • 1T1R mode with data rate up to 150 Mbps • 2 × 12-bit SAR ADCs, up to 6 channels • Wi-Fi Multimedia (WMM) • 1 × temperature sensor • TX/RX A-MPDU, RX A-MSDU • 3 × SPI • Immediate Block ACK • 2 × UART • Fragmentation and defragmentation • 1 × I2C • Automatic Beacon monitoring (hardware TSF) • 1 × I2S • 4 × virtual Wi-Fi interfaces • Remote control peripheral, with 2 transmit channels and 2 receive channels • Simultaneous support for Infrastructure BSS in Station, SoftAP, or Station + SoftAP modes • LED PWM controller, up to 6 channels Note that when ESP32-C3 family scans in • General DMA controller, with 3 transmit Station mode, the SoftAP channel will change channels and 3 receive channels along with the Station channel • 1 × TWAITM controller (compatible with ISO • Antenna diversity 11898-1) • 802.11mc FTM Low Power Management Bluetooth • Power Management Unit with five power modes • Bluetooth LE: Bluetooth 5, Bluetooth mesh Security • Speed: 125 Kbps, 500 Kbps, 1 Mbps, 2 Mbps • Secure boot • Advertising extensions • Flash encryption • Multiple advertisement sets • 4096-bit OTP, up to 1792 bits for users • Channel selection algorithm #2 • Cryptographic hardware acceleration: CPU and Memory – AES-128/256 (FIPS PUB 197) • 32-bit RISC-V single-core processor, up to 160 • Permission Control MHz • SHA Accelerator (FIPS PUB 180-4) • 384 KBPRELIMINARY ROM • RSA Accelerator • 400 KB SRAM • Random Number Generator (RNG) • 8 KB SRAM in RTC • HMAC • SPI, Dual SPI, Quad SPI, and QPI interfaces that • Digital signature Espressif Systems 3 ESP32-C3 Family Datasheet V0.4 Submit Documentation Feedback Applications (A Non-exhaustive List) With ultra-low power consumption, ESP32-C3 family is an ideal choice for IoT devices in the following areas: • Smart Home – Wi-Fi and Bluetooth speaker – Light control – Logger toys and proximity sensing toys – Smart button • Smart Agriculture – Smart plug – Smart greenhouse – Indoor positioning – Smart irrigation • Industrial Automation – Agriculture robot – Industrial robot • Retail and Catering – Mesh network – POS machines – Human machine interface (HMI) – Service robot – Industrial field bus • Audio Device • Health Care – Internet music players – Health monitor – Live streaming devices – Baby monitor – Internet radio players • Consumer Electronics • Generic Low-power IoT Sensor Hubs – Smart watch and bracelet • Generic Low-power IoT Data Loggers – Over-the-top (OTT) devices PRELIMINARY 4 Contents Product Overview 2 Block Diagram 2 Features 3 Applications 4 1 Family Member Comparison 9 1.1 Family Nomenclature 9 1.2 Comparison 9 2 Pin Definition 10 2.1 Pin Layout 10 2.2 Pin Description 10 2.3 Power Scheme 12 2.4 Strapping Pins 12 3 Functional Description 14 3.1 CPU and Memory 14 3.1.1 CPU 14 3.1.2 Internal Memory 14 3.1.3 External Flash 14 3.1.4 Address Mapping Structure 15 3.1.5 Cache 15 3.2 System Clocks 16 3.2.1 CPU Clock 16 3.2.2 RTC Clock 16 3.3 Analog Peripherals 16 3.3.1 Analog-to-Digital Converter (ADC) 16 3.3.2 Temperature Sensor 16 3.4 Digital Peripherals 16 3.4.1 General Purpose Input / Output Interface (GPIO) 16 3.4.2 Serial Peripheral Interface (SPI) 17 3.4.3 Universal Asynchronous Receiver Transmitter (UART) 17 3.4.4 I2C Interface 17 3.4.5 I2S Interface 18 3.4.6 Remote Control Peripheral 18 3.4.7 LED PWM Controller 18 3.4.8PRELIMINARY General DMA Controller 18 3.4.9 TWAITM Controller 18 3.5 Radio and Wi-Fi 19 3.5.1 2.4 GHz Receiver 19 3.5.2 2.4 GHz Transmitter 19 3.5.3 Clock Generator 19 3.5.4 Wi-Fi Radio and Baseband 20 5 3.5.5 Wi-Fi MAC 20 3.5.6 Networking Features 20 3.6 Bluetooth LE 21 3.6.1 Bluetooth LE Radio and PHY 21 3.6.2 Bluetooth LE Link Layer Controller 21 3.7 Low Power Management 21 3.8 Timers 22 3.8.1 General Purpose Timers 22 3.8.2 System Timer 22 3.8.3 Watchdog Timers 22 3.9 Cryptographic Hardware Accelerators 23 3.10 Physical Security Features 23 3.11 Peripheral Pin Configurations 23 Revision History 26 Solutions, Documentation and Legal Information 27 PRELIMINARY 6 List of Tables 1 ESP32-C3 Family Member Comparison 9 2 Pin Description 10 3 Strapping Pins 13 4 Connection Between ESP32-C3 Family and External Flash 17 5 Peripheral Pin Configurations 23 PRELIMINARY 7 List of Figures 1 Block Diagram of ESP32-C3 2 2 ESP32-C3 Family Nomenclature 9 3 ESP32-C3 Pin Layout (Top View) 10 4 ESP32-C3 Family Power Scheme 12 5 Address Mapping Structure 15 PRELIMINARY 8 1. 1. Family Member Comparison 1.1 Family Nomenclature ESP32-C3 F H x Flash Flash Figure 2: ESP32-C3 Family Nomenclature 1.2 Comparison Table 1: ESP32-C3 Family Member Comparison Ordering Code Embedded Flash Ambient Temperature (°C) Package (mm) ESP32-C3 No –40 ∼ 105 QFN32 (5*5) ESP32-C3FN4 4 MB –40 ∼ 85 QFN32 (5*5) ESP32-C3FH4 4 MB –40 ∼ 105 QFN32 (5*5) PRELIMINARY Espressif Systems 9 ESP32-C3 Family Datasheet V0.4 Submit Documentation Feedback 2. 2. Pin Definition 2.1 Pin Layout VDDA VDDA XTAL_P XTAL_N U0TXD U0RXD GPIO19 GPIO18 31 32 30 29 28 27 26 25 LNA_IN 1 24 SPIQ VDD3P3 2 23 SPID VDD3P3 3 22 SPICLK XTAL_32K_P 4 21 SPICS0 XTAL_32K_N 5 20 SPIWP ESP32-C3 Family GPIO2 6 19 SPIHD CHIP_EN 7 18 VDD_SPI GPIO3 8 33 GND 17 VDD3P3_CPU 9 10 11 12 13 14 16 15 MTDI MTCK MTMS MTDO GPIO8 GPIO9 GPIO10 VDD3P3_RTC Figure 3: ESP32-C3 Pin Layout (Top View) 2.2 PinPRELIMINARY Description Table 2: Pin Description Name No. Type Power domain Function LNA_IN 1 I/O — RF input and output VDD3P3 2 PA — Analog power supply VDD3P3 3 PA — Analog power supply Espressif Systems 10 ESP32-C3 Family Datasheet V0.4 Submit Documentation Feedback 2. Name No. Type Power domain Function 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 High: on, enables the chip. CHIP_EN 7 I VDD3P3_RTC Low: off, the chip powers off. Note: Do not leave the CHIP_PU 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 — 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 — Input power supply for CPU IO VDD_SPI 18 I/O/T/PD VDD3P3_CPU GPIO11, output power supply for flash SPIHD 19 I/O/T VDD3P3_CPU GPIO12, SPIHD SPIWP 20 I/O/T VDD3P3_CPU GPIO13, SPIWP SPICS0 21 I/O/T VDD3P3_CPU GPIO14, SPICS0 SPICLK 22 I/O/T VDD3P3_CPU GPIO15, SPICLK SPID 23 I/O/T VDD3P3_CPU GPIO16, SPID SPIQ 24 I/O/T VDD3P3_CPU GPIO17, SPIQ GPIO18 25 I/O/T VDD3P3_CPU GPIO18 GPIO19 26 I/O/T VDD3P3_CPU GPIO19 U0RXD 27 I/O/T VDD3P3_CPU GPIO20, U0RXD U0TXD 28 I/O/T VDD3P3_CPU GPIO21, U0TXD XTAL_N 29 — — External crystal output XTAL_P 30 — — External crystal input VDDA 31 PA — Analog power supply VDDA 32 PA — Analog power supply GND 33 G — Ground Note: 1. P: power pin; I: input; O: output; T: high impedance. 2. VDD_SPI, SPIHD, SPIWP, SPICS0, SPICLK, SPIQ, and SPID pins of ESP32-C3FN4 and ESP32-C3FH4 are used for connecting the embedded flash, and are not recommended for other uses.