main
Ray Brief states the pinout check that actually ran (was an unconditional "Datasheet-verified pinout") 1b714c7 11d ago
{
  "schema_version": 1,
  "type": "component",
  "slug": "ht7038",
  "title": "HT7038",
  "brief": "HiTrend Tech Shanghai Energy Metering, LQFP-32(7x7). Pinout extracted from the datasheet, KiCad symbol/footprint/3D.",
  "version": "0.1.0",
  "license": "CC-BY-SA-4.0",
  "tags": [
    "component",
    "data acquisition",
    "ht7038"
  ],
  "component": {
    "mpn": "HT7038",
    "manufacturer": "HiTrend Tech Shanghai",
    "package": "LQFP-32(7x7)",
    "pin_count": 32,
    "category": "Data Acquisition",
    "subcategory": "Energy Metering",
    "datasheet": "https://jlcpcb.com/api/file/downloadByFileSystemAccessId/8586176553692090368",
    "parts": {
      "symbol": "ht7038.kicad_sym",
      "footprint": "ht7038.kicad_mod",
      "model_3d": "ht7038-etched.glb",
      "model_3d_plain": "ht7038.glb",
      "model_3d_step": "ht7038-etched.step",
      "model_3d_step_plain": "ht7038.step",
      "lbr": "ht7038.lbr"
    },
    "distributor_links": {},
    "pins": [
      {
        "number": "1",
        "name": "V1P",
        "type": "input",
        "description": "Channel 1 (current channel) positive analog input. Fully differential, normal max signal ±0.7Vp. Channel 1 has an internal PGA; ESD protection integrated."
      },
      {
        "number": "2",
        "name": "V1N",
        "type": "input",
        "description": "Channel 1 (current channel) negative analog input. Fully differential with V1P, ±0.7Vp full-scale, internal PGA and ESD protection."
      },
      {
        "number": "3",
        "name": "REFCAP",
        "type": "output",
        "description": "Internal 1.2V voltage reference output; may be driven by an external reference. Decouple with 10µF in parallel with 0.1µF ceramic to AGND."
      },
      {
        "number": "4",
        "name": "V3P",
        "type": "input",
        "description": "Channel 3 (current channel) positive analog input. Fully differential, ±0.7Vp full-scale, integrated PGA and ESD protection."
      },
      {
        "number": "5",
        "name": "V3N",
        "type": "input",
        "description": "Channel 3 (current channel) negative analog input; pairs with V3P as differential input."
      },
      {
        "number": "6",
        "name": "AGND",
        "type": "power_in",
        "description": "Analog ground reference for the ADC and voltage reference. Tie to the analog ground plane on the PCB."
      },
      {
        "number": "7",
        "name": "V5P",
        "type": "input",
        "description": "Channel 5 (current channel) positive analog input. Fully differential, ±0.7Vp full-scale, PGA and ESD protection."
      },
      {
        "number": "8",
        "name": "V5N",
        "type": "input",
        "description": "Channel 5 (current channel) negative analog input; pairs with V5P differentially."
      },
      {
        "number": "9",
        "name": "AGND",
        "type": "power_in",
        "description": "Analog ground reference (shared with pins 6/13)."
      },
      {
        "number": "10",
        "name": "AVCC",
        "type": "power_in",
        "description": "Analog 3.3V ±10% supply. Decouple with 10µF in parallel with 0.1µF ceramic close to the pin."
      },
      {
        "number": "11",
        "name": "V2P",
        "type": "input",
        "description": "Channel 2 (voltage channel) positive analog input. Max input ~0.7Vp differential; ESD protection on both pins."
      },
      {
        "number": "12",
        "name": "V2N",
        "type": "input",
        "description": "Channel 2 (voltage channel) negative analog input."
      },
      {
        "number": "13",
        "name": "AGND",
        "type": "power_in",
        "description": "Analog ground reference (shared with pins 6/9)."
      },
      {
        "number": "14",
        "name": "V4P",
        "type": "input",
        "description": "Channel 4 (voltage channel) positive analog input. Differential ±0.7Vp, ESD protected."
      },
      {
        "number": "15",
        "name": "V4N",
        "type": "input",
        "description": "Channel 4 (voltage channel) negative analog input."
      },
      {
        "number": "16",
        "name": "AVCC",
        "type": "power_in",
        "description": "Analog 3.3V ±10% supply (shared with pin 10). Decouple with 10µF || 0.1µF ceramic."
      },
      {
        "number": "17",
        "name": "V6P",
        "type": "input",
        "description": "Channel 6 (voltage channel) positive analog input. Differential ±0.7Vp, ESD protected."
      },
      {
        "number": "18",
        "name": "V6N",
        "type": "input",
        "description": "Channel 6 (voltage channel) negative analog input."
      },
      {
        "number": "19",
        "name": "GND",
        "type": "power_in",
        "description": "Digital ground reference. Tie to the digital ground plane."
      },
      {
        "number": "20",
        "name": "CF1",
        "type": "output",
        "description": "Frequency calibration output (high-level pulse) used for active-power calibration; can also drive an active-energy pulse counter."
      },
      {
        "number": "21",
        "name": "CF2",
        "type": "output",
        "description": "Frequency calibration output (high-level pulse) used for reactive-power calibration; can also drive a reactive-energy pulse counter."
      },
      {
        "number": "22",
        "name": "SLEEP",
        "type": "input",
        "description": "Sleep-mode control pin, active high. Drive high to enter sleep (≈1µA). Drive low to resume normal operation."
      },
      {
        "number": "23",
        "name": "GND",
        "type": "power_in",
        "description": "Digital ground reference (shared with pin 19)."
      },
      {
        "number": "24",
        "name": "VCC",
        "type": "power_in",
        "description": "Digital supply, 3.3V ±5%. Decouple with 10µF in parallel with 100nF ceramic close to the pin."
      },
      {
        "number": "25",
        "name": "CS",
        "type": "input",
        "description": "SPI chip select from host MCU, active low. When CS is high, DOUT is high-impedance. Schmitt-trigger input with internally programmable 300kΩ pull-up (or floating)."
      },
      {
        "number": "26",
        "name": "SCLK",
        "type": "input",
        "description": "SPI serial clock from the host MCU. Schmitt-trigger input for opto-isolator compatibility; internally programmable 300kΩ pull-up or floating."
      },
      {
        "number": "27",
        "name": "DIN",
        "type": "input",
        "description": "SPI serial data input (MOSI) from host MCU. Data is latched on the SCLK falling edge. Schmitt-trigger input with programmable 300kΩ pull-up or floating."
      },
      {
        "number": "28",
        "name": "DOUT",
        "type": "tri_state",
        "description": "SPI serial data output (MISO). Data changes on SCLK rising edge, valid on falling edge. High-Z when CS is high."
      },
      {
        "number": "29",
        "name": "VDD",
        "type": "power_out",
        "description": "Internal 1.8V digital core LDO output. Decouple externally with 10µF in parallel with 100nF ceramic; do not use as an external supply rail."
      },
      {
        "number": "30",
        "name": "OSCI",
        "type": "input",
        "description": "Crystal oscillator input or external clock input (recommended 5.5296 MHz). Internal 10MΩ feedback resistor for crystal biasing."
      },
      {
        "number": "31",
        "name": "OSCO",
        "type": "output",
        "description": "Crystal oscillator output. Connects to the second terminal of the 5.5296 MHz crystal."
      },
      {
        "number": "32",
        "name": "RESET",
        "type": "input",
        "description": "External reset input, active low. Schmitt-trigger with internal 47kΩ pull-up. A low pulse >20µs triggers a hardware reset."
      }
    ],
    "provenance": {
      "extractor": "ds2sf",
      "datasheet": {
        "url": "https://jlcpcb.com/api/file/downloadByFileSystemAccessId/8586176553692090368",
        "pages": 53,
        "sha256": "514b488db76cb685",
        "source_tier": "lcsc"
      },
      "cad": "KiCad official (CC-BY-SA 4.0)",
      "pins": {
        "total": 32,
        "described": 32,
        "cites_pages": true,
        "refuses_to_fabricate": true
      }
    },
    "viewers": {
      "symbol": "viewers/symbol.html",
      "footprint": "viewers/footprint.html"
    }
  },
  "metadata": {
    "specs": {
      "Manufacturer": "HiTrend Tech Shanghai",
      "Package": "LQFP-32(7x7)",
      "Category": "Data Acquisition",
      "Pins": "32"
    }
  },
  "variants": [],
  "sections": [
    "hero",
    "viewers",
    "readme",
    "breadcrumbs",
    "info"
  ],
  "discovery_triggers": [
    "ht7038"
  ],
  "discovery_pitch": "HT7038 (HiTrend Tech Shanghai) component page with datasheet-verified CAD.",
  "author": {
    "name": "Ray",
    "email": "[email protected]"
  },
  "dependencies": {},
  "hero": {
    "type": "image",
    "path": "docs/hero.png"
  },
  "files": [
    "page.json",
    "README.md",
    "ht7038.kicad_sym",
    "ht7038.kicad_mod",
    "ht7038.glb",
    "ht7038.step",
    "ht7038.lbr",
    "docs/hero.png",
    "docs/ht7038-datasheet.pdf",
    "viewers/symbol.html",
    "viewers/footprint.html"
  ],
  "visibility": {
    "public": true
  },
  "updated_at": "2026-09-24T22:05:38.014Z"
}