Files
esp32-dev/drivers/esp32_peripherals.md

43 lines
1.2 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# ESP32 外设清单
> **芯片:esp32** | **类别:peripherals** | **信源:** [Espressif 官方文档](https://docs.espressif.com)
## 通信接口
- SPI ×4 — SPI0/1 FlashSPI2(HSPI)+SPI3(VSPI) 用户可用
- I2C ×2 — 标准/快速模式 (100/400 Kbps),默认 SDA=GPIO21, SCL=GPIO22
- UART ×3 — UART0(默认 GPIO1/3 烧录用)/ UART1 / UART2
- I2S ×2 — 全双工音频
- CAN (TWAI) ×1 — CAN 2.0,任意 GPIO 通过矩阵
- SD/MMC ×1 — Slot0 8-bit (GPIO6-11/16-17/5/18), Slot1 4-bit (GPIO14-15/2/4/12-13)
- EMAC ×1 — 以太网 MAC(需外部 PHY,如 LAN8720),专用引脚
## PWM & 电机
- LEDC ×16 ch — 高速×8 + 低速×8
- MCPWM ×2 — BLDC/步进电机
- RMT ×8 ch — 红外/WS2812
## 模拟
- SAR ADC ×2 (18 ch) — 12-bit
- DAC ×2 ch — 8-bit (GPIO25/26)
- 触摸 ×10 ch — 电容式
- 霍尔传感器 ×1 — 仅 ESP32
- 温度传感器 ×1
## 定时器
- **通用定时器**: 4 (2组 64-bit)
- **系统定时器**: 1 (52-bit)
- **看门狗**: 3
## DMA
- **DMA**: 13 ch
- **SD/MMC**: 1
## 安全
- AES-128/256, SHA, RSA-4096, ECC
- Flash Encryption (XTS-AES-128)
- Secure Boot (RSA/ECDSA), TRNG
## 其他
- 脉冲计数器 (PCNT): 8 ch
- 以太网 MAC: 1(需外部 PHY