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).
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.
| Pin | Name | Functions | Use |
|---|---|---|---|
| GND | GNDGround pin | Ground | |
| VCC | VCCSupply pin | Supply 5 V (regulated): powers the board, or 5 V output when powered over USB | |
| D1 | TX/D1I/O pin | USART1_TXDINT3 | Serial data out: to the RX pin of the other device (console, GPS, modules) |
| D0 | RX/D0I/O pin | USART1_RXDINT2 | Serial data in: from the TX pin of the other device |
| D2 | D2/SDAI/O pin | TWI_SDAINT1 | I²C data: pull-up (about 4.7 kΩ) to the supply |
| D3 | ~D3/SCLI/O pin | TWI_SCLOC0BINT0 | I²C clock: sensors, displays; pull-up (about 4.7 kΩ) to the supply |
| D4 | D4I/O pin | ADC8ICP1 | Analog input: potentiometer, sensor voltage (0 V … supply) |
| D5 | ~D5I/O pin | OC3A!OC4A | PWM output: LED dimming, servos, motor drivers |
| D6 | ~D6I/O pin | ADC10OC4D | Analog input: potentiometer, sensor voltage (0 V … supply) |
| D7 | D7I/O pin | INT6AIN0 | Analog input: potentiometer, sensor voltage (0 V … supply) |
| D8 | D8I/O pin | ADC11PCINT4 | Analog input: potentiometer, sensor voltage (0 V … supply) |
| D9 | ~D9I/O pin | ADC12OC1APCINT5!OC4B | Analog input: potentiometer, sensor voltage (0 V … supply) |
| RAW | RAWSupply pin · pulled down on the board | Unregulated input up to 12 V for the on-board regulator | |
| RESET | RSTInput pin · pulled up on the board | RESET | Reset, active low: pull to GND to restart the sketch |
| A3 | A3I/O pin | ADC4 | Analog input: potentiometer, sensor voltage (0 V … supply) |
| A2 | A2I/O pin | ADC5 | Analog input: potentiometer, sensor voltage (0 V … supply) |
| A1 | A1I/O pin | ADC6 | Analog input: potentiometer, sensor voltage (0 V … supply) |
| A0 | A0I/O pin | ADC7 | Analog input: potentiometer, sensor voltage (0 V … supply) |
| D15 | D15/SCKI/O pin | SPI_SCKPCINT1 | SPI clock: displays, flash, SD cards |
| D14 | D14/MISOI/O pin | SPI_MISOPCINT3 | SPI data in (MISO): from DOUT / SDO of the device |
| D16 | D16/MOSII/O pin | SPI_MOSIPCINT2 | SPI data out (MOSI): to DIN / SDA / SDI of the device |
| D10 | ~D10I/O pin | ADC13OC1BPCINT6OC4B | Analog input: potentiometer, sensor voltage (0 V … supply) |
Parameters 1
supplyusb: 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
SparkFun_Pro_Micro_2x12_P2.54mm_W15.24mmPro 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