Skip to main content

Deterministic pin matching

Simultaneous Peripheral & Pin-Mux Conflict Solver.

An MCU datasheet may list 3 I2C buses, 4-bit SDIO, and 14 ADC channels on page 1, yet not allow all of them at the same time on your chosen package. This solver checks whether your selection fits on the pins your pinout lists, and names the signals and pins that run out when it does not.

Signal-group completeness

Peripherals are signal groups, not single pins.

The solver never treats a peripheral as a single label. Every bus requires its full set of physical signal roles on distinct, unreserved pins for the selected package.

  • SDIO / SDMMC / MMCCK, CMD, D0, D1, D2, D3 (4-bit) or CK, CMD, D0 (1-bit)Both widths are offered. The 1-bit option leaves D1-D3 free for other buses.
  • I2CSDA, SCLEach line needs its own free pin on the package.
  • SPISCK, MOSI, MISOChip select is not required. Other positions are tried, for example SPI2_SCK on PB13 when I2C2 takes PB10.
  • UART / USARTTX, RXRTS and CTS are not required.
  • CAN / FDCAN & USBRX, TX (CAN) or DM, DP (USB)A pin both can use, such as PA11 or PA12, goes to only one of them.
  • ADC channelsN single-ended channelsEach channel needs its own pin. Buses take pins without ADC first where they can.

Say what the board needs

Ask for 1 CAN, 1 SDIO and 3 ADC inputs.

Give a number of SDIO, I2C, SPI, UART, CAN and USB buses and a number of ADC inputs. The solver tries the controllers the chip has, lists the choices that fit, and shows the pin for every signal. Name a controller to force it. If no choice works, it says what is missing or which part of the request has to go.

On packages whose pin positions follow from the pin numbers or ball names, the answer is also drawn on a top view of the chip. Zoom in and drag to move around, point at a pin to read what it can carry, and click a free pin to keep it for your board.

It works on any pin list that names each pin's alternate functions: an example package, a datasheet you upload, pins you send over MCP, or a pin table you paste or open under Your MCU (.csv, .txt or .json, read in your browser and not uploaded). Names are read in the spellings of several makers, for example SDMMC1_CMD, MMC0_CLK, HS2_DATA0, TXCAN0, ADC0_AIN3 or UCA0RXD. A pin list without alternate functions gets Can't tell.

Exact matching

Every signal gets its own physical pin.

1. Pins, not rows

Rows that share a pin number are one physical pin, so two GPIOs bonded to the same pin or ball are used only once.

2. A complete search

Bus signals and ADC channels are matched to free pins. If a placement exists for the pins as listed, it is found, with the same result whatever order the rows or your choices arrive in.

3. Reasons you can check

A controller that cannot be added is struck through; click it to read why, for example: I2C3_SDA and SDIO_D1 can only use PC9: 2 signals, 1 pin.

Never a bare yes or no

The four answers.

  • FitsfitsEvery signal has its own free physical pin.
  • Pins free, check remapfits_unverifiedThe pins are free, but the pin list does not show that the chosen positions can be combined. Check the multiplexer or remap table.
  • Doesn't fitdoes_not_fitNo placement exists for the pins as listed. The signals and pins that run out are named.
  • Can't tellcannot_tellThe pinout or the request is not complete enough to answer: for example, under 70% of I/O pins list functions, a needed name was not understood, a supply pin is listed with a signal, or a peripheral id is unknown.

Not checked: which alternate positions a chip's multiplexer can combine (remap groups, IO sets), peripherals that share silicon, ADC converters sampling at the same instant, DMA channels, timers, voltage levels or any other electrical limit. Chips that route a signal to almost any pin through a switch matrix are only solved for the positions the pin list names. A package label you send with your own pins is repeated back, not checked against them.

Board pins

Keep debug, crystal, and boot pins out of the answer.

Two-wire debug (SWD or the vendor's equivalent), crystal pins and boot/reset pins are reserved by default. Serial wire output and full JTAG are separate options, off until you ask. Power, ground, not-connected and reserved pins are never assigned, and you can lock any pin your board already uses.

Shown with the answer

Coverage and package warnings.

  • PIN_LIST_SHIFTEDA supply pin is listed with a bus or analog signal, so the rows are shifted. No layout is given.
  • PACKAGE_UNCONFIRMEDThe package was not confirmed from the ordering code. Check the pins against your exact package.
  • PARTIAL_AF_COVERAGEFewer than 70% of I/O pins list functions the solver reads, so the datasheet may offer more positions.
  • NO_MUX_DATAThe pinout lists no alternate functions, so there is nothing to solve.
  • FUNCTIONS_UNREADPins list functions, but none was recognised as a bus or ADC signal.
  • UNREAD_FUNCTION_NAMESSome names look like bus or ADC signals but were not understood. They are listed, not guessed.
  • SHARED_PHYSICAL_PINSA physical pin carries more than one GPIO. It is used once.
  • ROWS_WITHOUT_PIN_NUMBERRows without a pin number are treated as separate pins.
  • ALTERNATES_UNVERIFIEDThe answer depends on positions the pin list cannot show to be combinable.
  • INVALID_SELECTIONThe request names an unknown peripheral or pin, or the same bus twice.
  • SELECTION_UNSATISFIABLEThe current combination of peripherals, ADC channels and reserved pins was not placed.

Agent access

Free MCP tool: datasheetvend_solve_pin_mux

Available at https://datasheetvend.com/api/mcp in FREE_MCP_TOOLS (read-only, idempotent, no API key required, no model call). Send requested_buses (with sdio_bits) or selected_peripheral_ids. Returns the verdict, the pin assignments, the controller choices that fit in layouts, which other buses can still be added, the most ADC channels that fit, warnings and the reason, in structuredContent. Reservation inputs: reserve_debug_pins, reserve_swo_pin, reserve_jtag_pins, reserve_clock_pins, reserve_boot_reset_pins and locked_pins.

{
  "tool": "datasheetvend_solve_pin_mux",
  "arguments": {
    "sample_part_id": "stm32f405rg_lqfp64",
    "requested_buses": { "CAN": 1, "SDIO": 1 },
    "requested_adc_channels": 3,
    "reserve_debug_pins": true,
    "reserve_clock_pins": true,
    "reserve_boot_reset_pins": true
  }
}

Cookies. Necessary ones keep you signed in and save this choice. Optional analytics (Google, Microsoft, PostHog) show how the site is used; Microsoft may also use what it records for advertising. Cookie details