krishnax12/tlv3601-evm-recreation

Complete TI TLV3601EVM reference circuit with TLV3601/TLV3603 assembly options, Matchpack schematic, and a new autorouted four-layer PCB. Not TI's original artwork or hardware validated. Preview builds from the verified local native export; regenerating TSX requires local outline-keepout support. See reference.json.

Version
0.0.5
License
unset
Stars
0

Use with the tscircuit CLI

tsci is the tscircuit CLI. Install it with npm install -g tscircuit.

tsci clone krishnax12/tlv3601-evm-recreation  # download the package files into ./tlv3601-evm-recreation
tsci add krishnax12/tlv3601-evm-recreation    # add it to your project as @tsci/krishnax12.tlv3601-evm-recreation

In a cloned or new (tsci init) project: tsci dev starts a local preview, tsci build outputs Circuit JSON, and tsci push publishes to tscircuit.com.

components/comparator.tsx

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

export type ComparatorDevice = "tlv3601" | "tlv3603"

export const sc70FivePinFootprintRef =
  "kicad:Package_TO_SOT_SMD/SOT-353_SC-70-5"
export const sc70SixPinFootprintRef = "kicad:Package_TO_SOT_SMD/SOT-363_SC-70-6"

const commonPinLabels = {
  pin1: "OUT",
  pin2: "VEE",
  pin3: "IN_P",
  pin4: "IN_N",
} as const

export function Comparator({
  device,
  ...props
}: ChipProps & { device: ComparatorDevice }) {
  const hasHysteresisPin = device === "tlv3603"
  return (
    <chip
      {...props}
      manufacturerPartNumber={hasHysteresisPin ? "TLV3603DCKR" : "TLV3601DCKR"}
      footprint={
        hasHysteresisPin ? sc70SixPinFootprintRef : sc70FivePinFootprintRef
      }
      pinLabels={
        hasHysteresisPin
          ? { ...commonPinLabels, pin5: "LE_HYST", pin6: "VCC" }
          : { ...commonPinLabels, pin5: "VCC" }
      }
      schHeight={hasHysteresisPin ? 1.6 : undefined}
      schMarginY={0.6}
      schPinArrangement={{
        leftSide: ["IN_P", "IN_N"],
        rightSide: hasHysteresisPin ? ["OUT", "LE_HYST"] : ["OUT"],
        topSide: ["VCC"],
        bottomSide: ["VEE"],
      }}
      pinAttributes={{
        IN_P: { isInput: true },
        IN_N: { isInput: true },
        OUT: { isOutput: true, canUsePushPull: true },
        VCC: { requiresPower: true },
        VEE: { requiresPower: true },
      }}
      connections={{
        VCC: "net.VCC",
        VEE: "net.VEE",
        IN_P: "net.IN_P",
        IN_N: "net.IN_N",
        OUT: "net.OUT",
        ...(hasHysteresisPin ? { LE_HYST: "net.LE_HYST" } : {}),
      }}
    />
  )
}