name: ESP32-S2
alias: ESP32-S2FH2, ESP32-S2FH4, ESP32-S2FN4R2, ESP32-S2R2
description: Wi-Fi System-on-Chip
keywords: IC, MCU, Micro-Controller, ESP32, ESP32-S2
datasheet: https://www.espressif.com/sites/default/files/documentation/esp32-s2_datasheet_en.pdf

pinout:
  GPIO:
    GPIO0-14: 5-19
    GPIO19-20: 25-26
    GPIO21: 28
    GPIO33-38: 37-42
    GPIO45: 50
    GPIO46: 55
  VDD:
    VDDA: 1, 51, 54
    VDD3P3: 3, 4
    VDD3P3_RTC: 20
    VDD3P3_RTC_IO: 27
    VDD_SPI: 30
    VDD3P3_CPU: 45
  SPI:
    SPICS0: 33
    SPICS1: 29
    SPIHD: 31
    SPIWP: 32
    SPICLK: 34
    SPIQ: 35
    SPID: 36
  LNA_IN: 2
  XTAL:
    XTAL_N: 52
    XTAL_P: 53
  XTAL_32K:
    XTAL_32K_P: 21
    XTAL_32K_N: 22
  DAC:
    DAC_1: 23
    DAC_2: 24
  JTAG:
    MTCK: 43
    MTDO: 44
    MTDI: 46
    MTMS: 47
  UART:
    U0TXD: 48
    U0RXD: 49
  CHIP_PU: 56
  GND: 57

properties:
  in: GPIO46, CHIP_PU
  bidir: LNA_IN, GPIO0-45, XTAL_32K, SPI, DAC, JTAG, UART
  passive: XTAL
  power: VDD
  ground: GND

schematic:
  symbol: IC
  left: CHIP_PU, UART, SPI, JTAG, DAC, LNA_IN, XTAL, XTAL_32K
  right: GPIO
  top: VDD
  bottom: GND

housing:
  pattern: QFN # JEDEC MO-220 VKKE, but with smaller tab (not defined in QEDA)
  bodyWidth: 6.95-7.05 # D
  bodyLength: 6.95-7.05 # E
  height: 0.8-0.9 # A
  leadWidth: 0.15-0.25 # b
  leadLength: 0.35-0.45 # L
  pitch: 0.4 # e
  pullback: 0
  leadCount: 56
  rowCount: 14
  columnCount: 14
  tabWidth: 3.95-4.05 # D2
  tabLength: 3.95-4.05 # E2
  tabPosition: 0.0, 0.0
