ShiboSoftwareDev/solar-battery-charger

This code defines various surface-mount and through-hole electronic components (like diodes, voltage regulators, and ICs) with detailed footprints, 3D models, and pin configurations for PCB design.

Version
1.0.2
License
unset
Stars
0

imports/MCP73113_4.tsx

import type { ChipProps } from "@tscircuit/props"

const pinLabels = {
  pin1: ["VDD1"],
  pin2: ["VDD2"],
  pin3: ["VBAT1"],
  pin4: ["VBAT2"],
  pin5: ["NC1"],
  pin6: ["NC2"],
  pin7: ["STAT"],
  pin8: ["VSS1"],
  pin9: ["VSS2"],
  pin10: ["PROG"],
  pin11: ["EP"],
} as const

export const MCP73113_4 = (props: ChipProps<typeof pinLabels>) => {
  return (
    <chip
      pinLabels={pinLabels}
      manufacturerPartNumber="MCP73113_4"
      footprint={
        <footprint>
          <smtpad portHints={["pin1"]} pcbX="-1.5mm" pcbY="1mm" width="0.3mm" height="0.8mm" shape="rect" />
          <smtpad portHints={["pin2"]} pcbX="-1.5mm" pcbY="0.5mm" width="0.3mm" height="0.8mm" shape="rect" />
          <smtpad portHints={["pin3"]} pcbX="-1.5mm" pcbY="0mm" width="0.3mm" height="0.8mm" shape="rect" />
          <smtpad portHints={["pin4"]} pcbX="-1.5mm" pcbY="-0.5mm" width="0.3mm" height="0.8mm" shape="rect" />
          <smtpad portHints={["pin5"]} pcbX="-1.5mm" pcbY="-1mm" width="0.3mm" height="0.8mm" shape="rect" />
          <smtpad portHints={["pin6"]} pcbX="1.5mm" pcbY="-1mm" width="0.3mm" height="0.8mm" shape="rect" />
          <smtpad portHints={["pin7"]} pcbX="1.5mm" pcbY="-0.5mm" width="0.3mm" height="0.8mm" shape="rect" />
          <smtpad portHints={["pin8"]} pcbX="1.5mm" pcbY="0mm" width="0.3mm" height="0.8mm" shape="rect" />
          <smtpad portHints={["pin9"]} pcbX="1.5mm" pcbY="0.5mm" width="0.3mm" height="0.8mm" shape="rect" />
          <smtpad portHints={["pin10"]} pcbX="1.5mm" pcbY="1mm" width="0.3mm" height="0.8mm" shape="rect" />
          <smtpad portHints={["pin11"]} pcbX="0mm" pcbY="0mm" width="1.75mm" height="2.45mm" shape="rect" />
          <silkscreenpath route={[{ x: -1.5, y: -1.5 }, { x: -0.75, y: -1.5 }]} />
          <silkscreenpath route={[{ x: -1.5, y: -1.5 }, { x: -1.5, y: 1.5 }]} />
          <silkscreenpath route={[{ x: -1.5, y: 1.5 }, { x: 1.5, y: 1.5 }]} />
          <silkscreenpath route={[{ x: 1.5, y: 1.5 }, { x: 1.5, y: -1.5 }]} />
          <silkscreenpath route={[{ x: 1.5, y: -1.5 }, { x: 0.75, y: -1.5 }]} />
          <courtyardoutline
            outline={[
              { x: -2.15, y: 1.75 },
              { x: 2.15, y: 1.75 },
              { x: 2.15, y: -1.75 },
              { x: -2.15, y: -1.75 },
              { x: -2.15, y: 1.75 },
            ]}
          />
        </footprint>
      }
      {...props}
    />
  )
}