deckle studio
Open the editor
Microcontroller with real firmwareSparkFun Pro Micro 5V/16MHz (DEV-12640)pro_micro

Pro Micro (ATmega32U4, 5 V / 16 MHz)

SparkFun Pro Micro (5 V / 16 MHz): the Leonardo's ATmega32U4 on a small plug-in board with native USB. Same sketches as the Leonardo (arduino:avr:leonardo): Serial over USB, Keyboard / Mouse (HID), Serial1 on TX/RX. analogWrite on D3, D5, D6, D9, D10; A0–A3; supply over USB, VCC (5 V) or RAW (up to 12 V).

GNDVCCTX/D1RX/D0D2/SDA~D3/SCLD4~D5~D6D7D8~D9RAWRSTA3A2A1A0D15/SCKD14/MISOD16/MOSI~D10SparkFun Pro Micro 5V/16MHz (DEV-12640)
Schematic symbol

Key data

Category
Arduino
Simulation model
Microcontroller with real firmware
Manufacturer part number
SparkFun Pro Micro 5V/16MHz (DEV-12640)
Reference prefix
A
Pins
22
Land pattern
SparkFun_Pro_Micro_2x12_P2.54mm_W15.24mm

Notes

The firmware runs on an emulated CPU core, instruction by instruction. Peripherals that the model implements (GPIO, timers, UART, SPI, I²C, ADC and others, see the description) act on the pins of the circuit, so the analog parts around the chip see the same voltages and timing as on a real board.

  • With supply "usb" the board is connected to the PC: Serial is the USB port (serial monitor), Keyboard / Mouse reach the PC (shown in the console).
  • Supply through USB, VCC (5 V) or RAW (up to 12 V); GND to ground.
  • Right-click the part and choose "Open in code editor" to write and compile its code; "Serial monitor" shows its UART output.
  • In the inspector you can load a demo firmware or your own ELF / Intel HEX / BIN file instead.
  • GPIO pins are real circuit pins: an LED on an output needs a series resistor, an input needs a defined level (pull-up or pull-down).
  • The debugger in the code view stops at breakpoints and shows registers, variables and the call stack.

Simulation model

An emulated CPU core runs the firmware binary instruction by instruction. The GPIO pins are pins of the analog circuit: outputs drive through a driver resistance, inputs read the voltage with thresholds.

Device
atmega32u4
CPU core
AVR 8-bit
Emulator
AVR emulator with USB device controller
Firmware
Arduino sketch compiled in the code view (arduino-cli, arduino:avr), or your own ELF / Intel HEX / BIN file
Flash / RAM for firmware
32 KB / 2.5 KB
Supply pins
VCC / GND
Mapped GPIO pins
19

Pins 22

simulatedreal chip onlyPin functions from the emulator and the datasheet.

PinNameFunctionsUse
GNDGNDGround pinGround
VCCVCCSupply pinSupply 5 V (regulated): powers the board, or 5 V output when powered over USB
D1TX/D1I/O pinUSART1_TXDINT3Serial data out: to the RX pin of the other device (console, GPS, modules)
D0RX/D0I/O pinUSART1_RXDINT2Serial data in: from the TX pin of the other device
D2D2/SDAI/O pinTWI_SDAINT1I²C data: pull-up (about 4.7 kΩ) to the supply
D3~D3/SCLI/O pinTWI_SCLOC0BINT0I²C clock: sensors, displays; pull-up (about 4.7 kΩ) to the supply
D4D4I/O pinADC8ICP1Analog input: potentiometer, sensor voltage (0 V … supply)
D5~D5I/O pinOC3A!OC4APWM output: LED dimming, servos, motor drivers
D6~D6I/O pinADC10OC4DAnalog input: potentiometer, sensor voltage (0 V … supply)
D7D7I/O pinINT6AIN0Analog input: potentiometer, sensor voltage (0 V … supply)
D8D8I/O pinADC11PCINT4Analog input: potentiometer, sensor voltage (0 V … supply)
D9~D9I/O pinADC12OC1APCINT5!OC4BAnalog input: potentiometer, sensor voltage (0 V … supply)
RAWRAWSupply pin · pulled down on the boardUnregulated input up to 12 V for the on-board regulator
RESETRSTInput pin · pulled up on the boardRESETReset, active low: pull to GND to restart the sketch
A3A3I/O pinADC4Analog input: potentiometer, sensor voltage (0 V … supply)
A2A2I/O pinADC5Analog input: potentiometer, sensor voltage (0 V … supply)
A1A1I/O pinADC6Analog input: potentiometer, sensor voltage (0 V … supply)
A0A0I/O pinADC7Analog input: potentiometer, sensor voltage (0 V … supply)
D15D15/SCKI/O pinSPI_SCKPCINT1SPI clock: displays, flash, SD cards
D14D14/MISOI/O pinSPI_MISOPCINT3SPI data in (MISO): from DOUT / SDO of the device
D16D16/MOSII/O pinSPI_MOSIPCINT2SPI data out (MOSI): to DIN / SDA / SDI of the device
D10~D10I/O pinADC13OC1BPCINT6OC4BAnalog input: potentiometer, sensor voltage (0 V … supply)

Parameters 1

Supplysupply
Defaultusb
usbextern

usb: the USB cable to the PC powers the board and carries Serial (USB CDC), keyboard and mouse (HID); extern: no USB, supply through the 5V / VIN pins

PCB

Connector / off-boardSparkFun_Pro_Micro_2x12_P2.54mm_W15.24mm

Pro Micro on two 12-pin headers (left TX, RX, GND, GND, D2–D9; right RAW, GND, RST, VCC, A3–A0, D15, D14, D16, D10) – compare with the silkscreen of your board