ESP32
目录 |
1 Overview
- CP2102 USB to UART Chip
- ESP32 Bluetooth and WiFi SoC
- Winbond 16MB SPI Flash
- 5V - 12V Power Supply
2 Pin Map
3 Quick Start
3.1 USB2UART driver
Quantum use the CP2102 USB to UART chip, you need to install the driver firstly. Accessing following url to get your driver:
3.2 Linux
Please refer to: https://github.com/espressif/esp-idf/blob/master/docs/linux-setup.rst
3.3 MAC OS
Please refer to: https://github.com/espressif/esp-idf/blob/master/docs/macos-setup.rst
3.4 Windows
Please refer to: https://github.com/espressif/esp-idf/blob/master/docs/windows-setup.rst
4 体系结构
ESP32 内部框图:
- Xtensa Instruction Set Architecture: http://0x04.net/~mwk/doc/xtensa.pdf
- http://ip.cadence.com/uploads/533/Cadence_Tensillica_Xtensa_LX6_ds-pdf
5 Xtensa ISA
The Xtensa instruction set is designed to meet the diverse requirements of dataplane processing.
This 32-bit architecture features a compact 16- and 24-bit instruction set with modeless switching for maximum power efficiency and performance.
The base instruction set has 80 RISC instructions and includes a 32-bit ALU, up to 64 general-purpose 32-bit registers, and six special-purpose registers.
Using this instruction set, you can expect significant code size reductions that result in higher code density and better power dissipation.
6 片内外设
- 12-bit SAR ADC,18 个通道
- 2 个 8-bit D/A 转换器
- 超低功耗前置模拟放大器
- 1 个 Host SD / eMMC / SDIO
- 1 个 Slave SDIO / SPI
- 带有专用 DMA 的以太网 MAC 接口,支持 IEEE 1588
- CAN 2.0
- 2 个 I2C
- 4 个 SPI
- 3 个 UART
- IR(TX / RX)
- 2 个 I2S
- 电机 PWM (3 路 16-bit 定时器产生 PWM 波形,每路 包含一对输出信号。3 个故障检测信号。3 个 even capture 信号。3 个同步信号)
- LED PWM,16 个通道(16 个独立的通道运行在 80MHz 的时钟或 RTC 时钟上。占空比精确度:16-bit)
- 10 个电容式触摸传感器
- 温度传感器
- 霍尔传感器
- ESP32 RTC ULP Co-processor
7 First Glance
ets Jun 8 2016 00:22:57 rst:0x10 (RTCWDT_RTC_RESET),boot:0x33 (SPI_FAST_FLASH_BOOT) flash read err, 1000 Falling back to built-in command interpreter. OK >ets Jun 8 2016 00:22:57 rst:0x10 (RTCWDT_RTC_RESET),boot:0x33 (SPI_FAST_FLASH_BOOT) flash read err, 1000 Falling back to built-in command interpreter. OK >stop OK >about ESP32 ROM Basic (c) 2016 Espressif Shanghai Derived from TinyBasic Plus by Mike Field and Scott Lawrence >help A very Basic ROM console. Available commands/functions: LIST NEW RUN NEXT LET IF GOTO ...... ...... >
IO12(MTDI) Pull-up:
ets Jun 8 2016 00:22:57 rst:0x10 (RTCWDT_RTC_RESET),boot:0x33 (SPI_FAST_FLASH_BOOT) flash read err, 1000 Falling back to built-in command interpreter.
IO2 Pull-up:
ets Jun 8 2016 00:22:57 rst:0x10 (RTCWDT_RTC_RESET),boot:0x3b (SPI_FAST_FLASH_BOOT) flash read err, 1000 Falling back to built-in command interpreter.
IO12(MTDI) Pull-down:
ets Jun 8 2016 00:22:57 rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) flash read err, 1000 Falling back to built-in command interpreter.
IO2 Pull-up, IO0 Pull-down:
ets Jun 8 2016 00:22:57 rst:0x10 (RTCWDT_RTC_RESET),boot:0x2b (HSPI_FLASH_BOOT) flash read err, 1000 Falling back to built-in command interpreter.
IO0 Pull-down:
>ets Jun 8 2016 00:22:57 rst:0x10 (RTCWDT_RTC_RESET),boot:0x23 (DOWNLOAD_BOOT(UART0/UART1/SDIO_REI_REO_V2)) waiting for download
IO0 and IO12(MTDI) Pull-down:
ets Jun 8 2016 00:22:57 rst:0x1 (POWERON_RESET),boot:0x3 (DOWNLOAD_BOOT(UART0/UART1/SDIO_REI_REO_V2)) waiting for download