main
Ray Publish 0.1.0 5ede88f 7h ago
{
  "slug": "lh32m0s32blmg",
  "version": "0.1.0",
  "type": "component",
  "description": "Legendsemi(领慧立芯) Microcontrollers (MCU/MPU/SOC), LQFP-48(7x7). Pinout cross-checked by two models against the datasheet, KiCad symbol/footprint/3D.",
  "tags": [
    "component",
    "embedded processors & controllers",
    "lh32m0s32blmg",
    "factory-2.0.0",
    "extractor-text"
  ],
  "dependencies": {},
  "hero": {
    "type": "image",
    "path": "docs/hero.png"
  },
  "files": [
    "page.json",
    "README.md",
    "lh32m0s32blmg.kicad_sym",
    "lh32m0s32blmg.kicad_mod",
    "lh32m0s32blmg.glb",
    "lh32m0s32blmg.step",
    "lh32m0s32blmg.lbr",
    "docs/hero.png",
    "docs/lh32m0s32blmg-datasheet.pdf",
    "viewers/symbol.html",
    "viewers/footprint.html",
    "lh32m0s32blmg-hero.glb",
    "lh32m0s32blmg-hero.overlay.json",
    "lh32m0s32blmg-etched.glb"
  ],
  "component": {
    "mpn": "LH32M0S32BLMG",
    "manufacturer": "Legendsemi(领慧立芯)",
    "package": "LQFP-48(7x7)",
    "pin_count": 48,
    "category": "Embedded Processors & Controllers",
    "subcategory": "Microcontrollers (MCU/MPU/SOC)",
    "datasheet": "https://jlcpcb.com/api/file/downloadByFileSystemAccessId/8608766011164274688",
    "parts": {
      "symbol": "lh32m0s32blmg.kicad_sym",
      "footprint": "lh32m0s32blmg.kicad_mod",
      "model_3d": "lh32m0s32blmg-hero.glb",
      "model_3d_plain": "lh32m0s32blmg-etched.glb",
      "model_3d_step": "lh32m0s32blmg-etched.step",
      "model_3d_step_plain": "lh32m0s32blmg.step",
      "lbr": "lh32m0s32blmg.lbr"
    },
    "distributor_links": {
      "lcsc": "C19273136"
    },
    "distributor_check": {
      "checked_at": "2026-11-07T04:28:12Z",
      "source": "Component Ocean /api/assign-pns",
      "digikey": {
        "pn": null,
        "status": "no match"
      },
      "mouser": {
        "pn": null,
        "status": "no match"
      }
    },
    "pins": [
      {
        "number": "1",
        "name": "CAP2",
        "type": "passive",
        "description": "LCD charge-pump flying (charge-exchange) capacitor connection that the internal charge pump needs to generate VLCD."
      },
      {
        "number": "2",
        "name": "CAP1",
        "type": "passive",
        "description": "LCD charge-pump flying (charge-exchange) capacitor connection that the internal charge pump needs to generate VLCD."
      },
      {
        "number": "3",
        "name": "NRST",
        "type": "input",
        "description": "External reset input, active low; a low level on this pin produces a system reset (pulse width at least 1.5 µs per the electrical table)."
      },
      {
        "number": "4",
        "name": "P0.2/AIN2/I2C_SDA/UART_TX/SPI_NSS/SWDIO",
        "type": "bidirectional",
        "description": "GPIO P0.2 with ADC input AIN2 and alternate functions I2C_SDA, UART_TX, SPI_NSS and the SWD data line SWDIO; after reset it defaults to SWDIO with a pull-up."
      },
      {
        "number": "5",
        "name": "P0.3/AIN3/COMPN/I2C_SCL/UART_RX/SPI_SCLK/SWCLK",
        "type": "bidirectional",
        "description": "GPIO P0.3 with ADC input AIN3, analog comparator negative input COMPN and alternate functions I2C_SCL, UART_RX, SPI_SCLK and the SWD clock SWCLK; after reset it defaults to SWCLK with a pull-down."
      },
      {
        "number": "6",
        "name": "VSSA",
        "type": "power_in",
        "description": "Analog ground for the ADC, reference and analog blocks."
      },
      {
        "number": "7",
        "name": "VDDA",
        "type": "power_in",
        "description": "Analog supply; operating range 2.2 V to 3.6 V."
      },
      {
        "number": "8",
        "name": "VREFN",
        "type": "passive",
        "description": "ADC reference ground, to be connected to analog ground."
      },
      {
        "number": "9",
        "name": "VS/REFP",
        "type": "power_in",
        "description": "ADC regulator output that can also serve as the external reference input REFP; it can supply up to 8 mA to ground."
      },
      {
        "number": "10",
        "name": "AIN0",
        "type": "passive",
        "description": "ADC analog input channel AIN0."
      },
      {
        "number": "11",
        "name": "AIN1",
        "type": "passive",
        "description": "ADC analog input channel AIN1."
      },
      {
        "number": "12",
        "name": "ACM/LVD/AIN4",
        "type": "passive",
        "description": "1.2 V reference (ACM) regulated output, shared with the low-voltage detect and analog comparator positive input and ADC input AIN4."
      },
      {
        "number": "13",
        "name": "P0.4/AIN5/I2C_SDA",
        "type": "bidirectional",
        "description": "GPIO P0.4 with ADC input AIN5 and I2C_SDA alternate function."
      },
      {
        "number": "14",
        "name": "P0.5/AIN6/PWM2/I2C_SCL",
        "type": "bidirectional",
        "description": "GPIO P0.5 with ADC input AIN6, PWM2 output and I2C_SCL alternate function."
      },
      {
        "number": "15",
        "name": "P0.6/AIN7/UART_TX/LVD",
        "type": "bidirectional",
        "description": "GPIO P0.6 with ADC input AIN7, UART_TX and low-voltage detect input LVD."
      },
      {
        "number": "16",
        "name": "P0.7/UART_RX/COMPOUT",
        "type": "bidirectional",
        "description": "GPIO P0.7 with UART_RX and analog comparator output COMPOUT."
      },
      {
        "number": "17",
        "name": "P0.0/BZ/QSPI_CLK",
        "type": "bidirectional",
        "description": "GPIO P0.0 with beeper output BZ and QSPI clock QSPI_CLK; input enable cannot be turned off on P0.0-P0.7 and P1.0-P1.2, so pull or fixed level is advised during sleep."
      },
      {
        "number": "18",
        "name": "P0.1/SPI_MOSI/PWM6/QSPI_NSS",
        "type": "bidirectional",
        "description": "GPIO P0.1 with SPI_MOSI, PWM6 output and QSPI chip select QSPI_NSS."
      },
      {
        "number": "19",
        "name": "P1.0/SPI_MISO/PWM5/QSPI_IO0",
        "type": "bidirectional",
        "description": "GPIO P1.0 with SPI_MISO, PWM5 output and QSPI data line QSPI_IO0."
      },
      {
        "number": "20",
        "name": "P1.1/SPI_SCLK/PWM4/QSPI_IO1",
        "type": "bidirectional",
        "description": "GPIO P1.1 with SPI_SCLK, PWM4 output and QSPI data line QSPI_IO1."
      },
      {
        "number": "21",
        "name": "P1.2/SPI_NSS/PWM3/QSPI_IO2",
        "type": "bidirectional",
        "description": "GPIO P1.2 with SPI_NSS, PWM3 output and QSPI data line QSPI_IO2."
      },
      {
        "number": "22",
        "name": "P1.3/SEG20/PWM1/QSPI_IO3",
        "type": "bidirectional",
        "description": "GPIO P1.3 with LCD segment SEG20, PWM1 output and QSPI data line QSPI_IO3."
      },
      {
        "number": "23",
        "name": "P1.4/SEG19/SCLK_SPI",
        "type": "bidirectional",
        "description": "GPIO P1.4 with LCD segment SEG19 and SPI clock SCLK_SPI."
      },
      {
        "number": "24",
        "name": "P1.5/SEG18/SPI_NSS/XIN",
        "type": "bidirectional",
        "description": "GPIO P1.5 with LCD segment SEG18, SPI chip select and the 32.768 kHz crystal input XIN."
      },
      {
        "number": "25",
        "name": "P1.6/SEG17/I2C_SCL/GPIO_CLK/BZ/COMPOUT/XOUT",
        "type": "bidirectional",
        "description": "GPIO P1.6 with LCD segment SEG17, I2C_SCL, GPIO clock, beeper output BZ, comparator output COMPOUT and the 32.768 kHz crystal output XOUT."
      },
      {
        "number": "26",
        "name": "P1.7/SEG16/I2C_SDA/SPI_MISO/BZn",
        "type": "bidirectional",
        "description": "GPIO P1.7 with LCD segment SEG16, I2C_SDA, SPI_MISO and the complementary beeper output BZn."
      },
      {
        "number": "27",
        "name": "P2.0/SEG15/UART_TX/SPI_MOSI/PWM7/BZ",
        "type": "bidirectional",
        "description": "GPIO P2.0 with LCD segment SEG15, UART_TX, SPI_MOSI, PWM7 output and beeper output BZ."
      },
      {
        "number": "28",
        "name": "P2.1/SEG14/UART_RX/PWM2/SPI_MISO",
        "type": "bidirectional",
        "description": "GPIO P2.1 with LCD segment SEG14, UART_RX, PWM2 output and SPI_MISO."
      },
      {
        "number": "29",
        "name": "P2.2/SEG13/LED8/BZ/PWM1/SPI_SCLK",
        "type": "bidirectional",
        "description": "GPIO P2.2 with LCD segment SEG13, LED driver output LED8, beeper output BZ, PWM1 output and SPI_SCLK."
      },
      {
        "number": "30",
        "name": "P2.3/SEG12/LED7/SPI_MOSI/PWM6",
        "type": "bidirectional",
        "description": "GPIO P2.3 with LCD segment SEG12, LED driver output LED7, SPI_MOSI and PWM6 output."
      },
      {
        "number": "31",
        "name": "P2.4/SEG11/LED6/SPI_MISO/PWM5",
        "type": "bidirectional",
        "description": "GPIO P2.4 with LCD segment SEG11, LED driver output LED6, SPI_MISO and PWM5 output."
      },
      {
        "number": "32",
        "name": "P2.5/SEG10/LED5/SPI_SCLK/PWM4",
        "type": "bidirectional",
        "description": "GPIO P2.5 with LCD segment SEG10, LED driver output LED5, SPI_SCLK and PWM4 output."
      },
      {
        "number": "33",
        "name": "P2.6/SEG9/LED4/SPI_NSS/PWM3",
        "type": "bidirectional",
        "description": "GPIO P2.6 with LCD segment SEG9, LED driver output LED4, SPI_NSS and PWM3 output."
      },
      {
        "number": "34",
        "name": "P2.7/SEG8/LED3/GPIO_CLK/TM1_BKIN",
        "type": "bidirectional",
        "description": "GPIO P2.7 with LCD segment SEG8, LED driver output LED3, GPIO clock input and Timer1 break input TM1_BKIN; it is also an HSE external clock input option (AF3)."
      },
      {
        "number": "35",
        "name": "P3.0/SEG7/LED2/PWM1",
        "type": "bidirectional",
        "description": "GPIO P3.0 with LCD segment SEG7, LED driver output LED2 and PWM1 output."
      },
      {
        "number": "36",
        "name": "P3.1/SEG6/LED1/PWM2",
        "type": "bidirectional",
        "description": "GPIO P3.1 with LCD segment SEG6, LED driver output LED1 and PWM2 output."
      },
      {
        "number": "37",
        "name": "P3.2/SEG5",
        "type": "bidirectional",
        "description": "GPIO P3.2 with LCD segment SEG5."
      },
      {
        "number": "38",
        "name": "P3.3/SEG4/UART_CTS",
        "type": "bidirectional",
        "description": "GPIO P3.3 with LCD segment SEG4 and UART_CTS."
      },
      {
        "number": "39",
        "name": "P3.4/SEG3/UART_RTS",
        "type": "bidirectional",
        "description": "GPIO P3.4 with LCD segment SEG3 and UART_RTS."
      },
      {
        "number": "40",
        "name": "P3.5/SEG2/QSP_NSS/UART_RX/PWM7",
        "type": "bidirectional",
        "description": "GPIO P3.5 with LCD segment SEG2, QSPI chip select, UART_RX and PWM7 output."
      },
      {
        "number": "41",
        "name": "P3.6/SEG1/QSPI_SCLK/UART_TX/TM1_BKIN",
        "type": "bidirectional",
        "description": "GPIO P3.6 with LCD segment SEG1, QSPI clock, UART_TX and Timer1 break input TM1_BKIN."
      },
      {
        "number": "42",
        "name": "P3.7/COM4/QSPI_IO0/BZ",
        "type": "bidirectional",
        "description": "GPIO P3.7 with LCD common output COM4, QSPI data line QSPI_IO0 and beeper output BZ."
      },
      {
        "number": "43",
        "name": "P4.0/COM3/QSPI_IO1/BZn",
        "type": "bidirectional",
        "description": "GPIO P4.0 with LCD common output COM3, QSPI data line QSPI_IO1 and complementary beeper output BZn."
      },
      {
        "number": "44",
        "name": "P4.1/COM2/QSPI_IO2",
        "type": "bidirectional",
        "description": "GPIO P4.1 with LCD common output COM2 and QSPI data line QSPI_IO2."
      },
      {
        "number": "45",
        "name": "P4.2/COM1/QSPI_IO3/COMPOUT",
        "type": "bidirectional",
        "description": "GPIO P4.2 with LCD common output COM1, QSPI data line QSPI_IO3 and analog comparator output COMPOUT."
      },
      {
        "number": "46",
        "name": "VSS",
        "type": "power_in",
        "description": "Digital ground."
      },
      {
        "number": "47",
        "name": "VDD",
        "type": "power_in",
        "description": "Digital supply; operating range 2.2 V to 3.6 V."
      },
      {
        "number": "48",
        "name": "VLCD",
        "type": "power_in",
        "description": "LCD drive supply: with the internal charge pump enabled an external capacitor is connected on VLCD_LED; with the charge pump off, VLCD is internally shorted to VDD."
      }
    ],
    "provenance": {
      "extractor": "extract_pins 0.3",
      "factory_chain": {
        "factory": "2.0.0",
        "extractor": "extract_pins 0.3",
        "primary_model": "claude-haiku-5-5",
        "primary_mode": "text",
        "consensus_model": "claude-sonnet-5-5",
        "consensus": "agreed",
        "guards": "pin_guards 0.1: passed",
        "guard_notes": [
          "extractor flagged: The datasheet's LQFP48 pin table (Table 1, pages 7-8) is the source for pins 1-48 and matches the pa; Alternate-function names disagree between the LQFP48 pin table (Table 1) and the pin-mux table (Tabl; Pin 36 (P3.1) description in Table 1 lists 'LED8' in the pin description but 'LED1' in the name; thi"
        ],
        "pages_sent": 110,
        "cost_usd": 0.7295,
        "at": "2026-11-07T04:27:55"
      },
      "datasheet": {
        "url": "https://jlcpcb.com/api/file/downloadByFileSystemAccessId/8608766011164274688",
        "pages": 237,
        "sha256": "68e4fc70a88a0840",
        "source_tier": "lcsc"
      },
      "cad": "KiCad official (CC-BY-SA 4.0)",
      "pins": {
        "total": 48,
        "described": 48,
        "cites_pages": true,
        "refuses_to_fabricate": true
      }
    },
    "viewers": {
      "symbol": "viewers/symbol.html",
      "footprint": "viewers/footprint.html"
    },
    "models_3d": [
      {
        "file": "lh32m0s32blmg.step",
        "role": "plain",
        "up": "Z",
        "units": "mm",
        "origin": "footprint origin = pad-pattern centre",
        "seat": "z = 0",
        "extents_mm": [
          9.0,
          9.0,
          1.5
        ],
        "zmin_mm": -0.0,
        "centre_offset_mm": 0.0,
        "footprint_binding": "identity",
        "sha256": "9dea352d93177c2904afd7d7b68ea8855ce1ab691f69f8b3e13655600514b6bf",
        "checked": "2026-11-07",
        "checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"
      },
      {
        "file": "lh32m0s32blmg-etched.step",
        "role": "eda",
        "up": "Z",
        "units": "mm",
        "origin": "footprint origin = pad-pattern centre",
        "seat": "z = 0",
        "extents_mm": [
          9.0,
          9.0,
          1.5
        ],
        "zmin_mm": -0.0,
        "centre_offset_mm": 0.0,
        "footprint_binding": "identity",
        "sha256": "7d176fd3f2c3b37358da34b4031e49a09ba7c4dced244cfee994e1ecacef14ad",
        "checked": "2026-11-07",
        "checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"
      }
    ]
  }
}