# ESP8266 vs. ESP32
###### tags: `Espressif` `ESP32` `ESP8266`
皆為Espressif的芯片, ESP32可視為ESP8266的新版芯片 (可參考 https://www.espressif.com/), ESP32增加了ROM, 也支援外部的RAM與ROM的連接介面
### ESP8266 Series - [ESP8266EX](https://www.espressif.com/sites/default/files/documentation/0a-esp8266ex_datasheet_en.pdf) & ESP8285
* 目前市面上普遍應用ESP8266EX
* Tensilica L106 32-bit RISC MCU (80MHz) & 2.4 GHz Wi-Fi (802.11 b/g/n)
* High-performance 160 MHz single-core CPU
* 160KB RAM
* Support iBus, dBus, AHB interfaces
* Support UART, 17 x GPIO, I2C, I2S, SDIO, 4 x PWM, ADC and SPI interfaces
* 未支援 Bluetooth功能

### ESP32 Series
* ESP32種類很多, 目前共有三個Series
1. ESP32-S series
* ESP32-S3 series (最新的)
* 32-bit MCU & 2.4 GHz Wi-Fi & Bluetooth 5 (LE)
* Xtensa® 32-bit LX7 dual-core processor (240 MHz)
* 512KB SRAM, 384KB ROM on the chip
* Support SPI, Dual SPI, Quad SPI, Octal SPI, QPI and OPI interfaces to connect to flash and external RAM
* Support vector instructions provides acceleration for neural network computing and signal processing workloads
* Support 44 X GPIOs, SPI, I2S, I2C, PWM, RMT, ADC, DAC and UART, SD/MMC host and TWAITM
* Reliable security features ensured by RSA-based secure boot, AES-XTS-based flash encryption, the innovative digital signature and the HMAC peripheral, “World Controller”
* ESP32-S2 series ([ESP32-S2](https://www.espressif.com/sites/default/files/documentation/esp32-s2_datasheet_en.pdf))
* 32-bit MCU & 2.4 GHz Wi-Fi
* High-performance 240 MHz single-core CPU
* Ultra-low-power performance: fine-grained clock gating, dynamic voltage and frequency scaling
* Security features: eFuse、flash encryption, secure boot, signature verification, integrated AES, SHA and RSA algorithms
* Support 43 X GPIOs, 1 full-speed USB OTG interface, SPI, I2S, UART, I2C, LED PWM, LCD interface, camera interface, ADC, DAC, touch sensor, temperature sensor
* Availability of common cloud connectivity agents and common product features shortens the time to market

3. ESP32-C3 series
* 32-bit RISC-V MCU & 2.4 GHz Wi-Fi & Bluetooth 5 (LE)
* 32-bit RISC-V single-core processor with a four-stage pipeline that operates at up to 160 MHz
* State-of-the-art power and RF performance
* 400KB SRAM, 384KB ROM on the chip
* Support SPI, Dual SPI, Quad SPI, and QPI interfaces that allow connection to flash
* Reliable security features ensured by RSA-3072-based secure boot, AES-128-XTS-based flash encryption, the innovative digital signature and the HMAC peripheral, hardware acceleration support for cryptographic algorithms
* Rich set of peripheral interfaces and GPIOs, ideal for various scenarios and complex applications
5. ESP32-series ([ESP32-D0WDQ6](http://espressif.com/sites/default/files/documentation/esp32_datasheet_en.pdf))
* 32-bit MCU & 2.4 GHz Wi-Fi & Bluetooth/Bluetooth LE
* Two or one CPU core(s) with adjustable clock frequency, ranging from 80 MHz to 240 MHz
* +19.5 dBm output power ensures a good physical range
* Classic Bluetooth for legacy connections, also supporting L2CAP, SDP, GAP, SMP, AVDTP, AVCTP, A2DP (SNK) and AVRCP (CT)
* Support for Bluetooth Low Energy (Bluetooth LE) profiles including L2CAP, GAP, GATT, SMP, and GATT-based profiles like BluFi, SPP-like, etc
* Bluetooth Low Energy (Bluetooth LE) connects to smart phones, broadcasting low-energy beacons for easy detection
* Sleep current is less than 5 μA, making it suitable for battery-powered and wearable-electronics applications
* Peripherals include capacitive touch sensors, Hall sensor, SD card interface, Ethernet, high-speed SPI, UART, I2S and I2C
