Simvik

ESP32-C6 DevKitC-1 pinout

The ESP32-C6 DevKitC-1 (ESP32-C6) pinout: what each pin does, from GPIO, analog inputs and PWM to UART, I2C and SPI, with the notes that catch people out.

The board

  • Processor: 32-bit RISC-V, 160 MHz, plus a 20 MHz low-power core
  • SRAM: 512 KB, plus 16 KB low-power SRAM
  • Flash: 4 MB as simulated (real modules carry 4–32 MB)
  • Logic level: 3.3 V; the pins are not 5 V tolerant
  • Radio: Wi-Fi 6 (2.4 GHz), Bluetooth LE 5, 802.15.4 (Thread, Zigbee)
  • GPIO: 31 (GPIO0–30); GPIO24–30 run the SPI flash
  • Analog inputs: 12-bit, 7 channels: ADC1 on GPIO0–6
  • Serial (UART0): TX GPIO16, RX GPIO17
  • I2C (Wire): SDA GPIO23, SCL GPIO22; low-power I2C (Wire1) SDA GPIO6, SCL GPIO7
  • SPI: SCK GPIO21, MISO GPIO20, MOSI GPIO19, SS GPIO18
  • On-board LED: Addressable RGB LED on GPIO8

Pins

PinFunctionsNotes
IO0GPIO0, A0, ADC1_CH0, XTAL_32K_PAnalog input: analogRead(A0) reads ADC1_CH0. Can take one end of a 32.768 kHz crystal for the low-power clock.
IO1GPIO1, A1, ADC1_CH1, XTAL_32K_NAnalog input: analogRead(A1) reads ADC1_CH1. Can take one end of a 32.768 kHz crystal for the low-power clock.
IO2GPIO2, A2, ADC1_CH2Analog input: analogRead(A2) reads ADC1_CH2.
IO3GPIO3, A3, ADC1_CH3Analog input: analogRead(A3) reads ADC1_CH3.
IO4GPIO4, A4, ADC1_CH4, STRAP, MTMSAnalog input: analogRead(A4) reads ADC1_CH4. Strapping pin: Sampled at reset (MTMS) to set the SDIO timing; avoid driving it at power-up. JTAG MTMS when JTAG is taken from the pins instead of USB.
IO5GPIO5, A5, ADC1_CH5, STRAP, MTDIAnalog input: analogRead(A5) reads ADC1_CH5. Strapping pin: Sampled at reset (MTDI) to set the SDIO timing; avoid driving it at power-up. JTAG MTDI when JTAG is taken from the pins instead of USB.
IO6GPIO6, A6, ADC1_CH6, MTCK, LP_SDAAnalog input: analogRead(A6) reads ADC1_CH6. JTAG MTCK when JTAG is taken from the pins instead of USB. Low-power I2C SDA (Wire1).
IO7GPIO7, MTDO, LP_SCLJTAG MTDO when JTAG is taken from the pins instead of USB. Low-power I2C SCL (Wire1).
IO8GPIO8, RGB LED, STRAPDrives the on-board addressable RGB LED: rgbLedWrite(8, r, g, b). Strapping pin: Must be high at reset for download mode to work.
IO9GPIO9, BOOTStrapping pin (the BOOT button): Selects the boot mode: low at reset enters download mode.
IO10GPIO10
IO11GPIO11
IO12GPIO12, USB D-USB Serial/JTAG D-. Using it as a GPIO turns off the chip's own USB port.
IO13GPIO13, USB D+USB Serial/JTAG D+. Using it as a GPIO turns off the chip's own USB port.
IO15GPIO15, STRAPStrapping pin: Selects where JTAG comes from at boot.
IO16GPIO16, TXUART0 transmit: Serial output and the boot messages.
IO17GPIO17, RXUART0 receive: Serial input.
IO18GPIO18, SSDefault SPI SS for the SPI library.
IO19GPIO19, MOSIDefault SPI MOSI for the SPI library.
IO20GPIO20, MISODefault SPI MISO for the SPI library.
IO21GPIO21, SCKDefault SPI SCK for the SPI library.
IO22GPIO22, SCLDefault I2C SCL for Wire.
IO23GPIO23, SDADefault I2C SDA for Wire.
3V33V33.3 V supply from the on-board regulator. Keep the load small.
5V5V5 V supply: from USB, or from the regulator when the board is powered through VIN.
GNDGNDGround (0 V).
GNDGNDGround (0 V).
GNDGNDGround (0 V).
GNDGNDGround (0 V).

Good to know

  • Pin numbers in code are GPIO numbers: digitalWrite(8, HIGH) drives GPIO8.
  • The pins run at 3.3 V and are not 5 V tolerant. Each drives about 20 mA by default (40 mA at most).
  • Any GPIO can do PWM (analogWrite() or ledcAttach()) and raise an interrupt (attachInterrupt()), and the GPIO matrix can route UART, I2C and SPI to almost any pin. The bus pins shown are the Arduino defaults.
  • Strapping pins are read at reset to choose how the chip boots. The BOOT button pulls GPIO9 low; keep strapping pins free of loads that change their level at power-up.
  • In the simulator, RST and NC connect to nothing.