MustafaMulla29/MSPM0G3507-tsx

The code defines a 64-pin QFP package of the Texas Instruments MSPM0G3507 ARM Cortex-M0+ microcontroller, detailing its pinout, electrical connections, and external support components such as decoupling capacitors, resistors, and headers for power management, debugging, and I/O functions.

Version
0.0.1
License
unset
Stars
0

MSPM0G3507.tsx

import type { ChipProps } from "tscircuit"

const pinLabels = {
  pin1: "PB13",
  pin2: "PB14",
  pin3: "PB15",
  pin4: "PB16",
  pin5: "PA12",
  pin6: ["PA13", "COMP0_IN2_N"],
  pin7: ["PA14", "A0_12", "COMP0_IN2_P"],
  pin8: ["PA15", "A1_0", "DAC_OUT", "OPA0_IN2_P", "OPA1_IN2_P", "COMP0_IN3_P", "COMP1_IN3_P"],
  pin9: ["PA16", "A1_1", "OPA1_OUT"],
  pin10: ["PA17", "A1_2", "OPA1_IN1_N", "COMP0_IN1_N"],
  pin11: ["PA18", "A1_3", "OPA1_IN1_P", "COMP0_IN1_P", "GPAMP_IN_N"],
  pin12: ["PA19", "SWDIO"],
  pin13: ["PA20", "SWCLK"],
  pin14: ["PB17", "A1_4", "COMP1_IN2_N"],
  pin15: ["PB18", "A1_5", "COMP1_IN2_P"],
  pin16: ["PB19", "A1_6", "COMP2_IN1_P", "OPA1_IN0_P"],
  pin17: ["PA21", "A1_7", "COMP2_IN1_N", "VREF_N"],
  pin18: ["PA22", "A0_7", "GPAMP_OUT", "OPA0_OUT"],
  pin19: ["PB20", "A0_6", "OPA1_IN0_N"],
  pin20: ["PB21", "COMP2_IN0_P"],
  pin21: ["PB22", "COMP2_IN0_N"],
  pin22: "PB23",
  pin23: ["PB24", "A0_5", "COMP1_IN1_P"],
  pin24: ["PA23", "COMP1_IN1_N", "VREF_P"],
  pin25: ["PA24", "A0_3", "OPA0_IN1_N"],
  pin26: ["PA25", "A0_2", "OPA0_IN1_P"],
  pin27: ["PB25", "A0_4"],
  pin28: ["PB26", "COMP1_IN0_P"],
  pin29: ["PB27", "COMP1_IN0_N"],
  pin30: ["PA26", "A0_1", "COMP0_IN0_P", "OPA0_IN0_P", "GPAMP_IN_P"],
  pin31: ["PA27", "A0_0", "COMP0_IN0_N", "OPA0_IN0_N"],
  pin32: "VCORE",
  pin33: "PA0",
  pin34: "PA1",
  pin35: "PA28",
  pin36: "PA29",
  pin37: "PA30",
  pin38: "NRST",
  pin39: "PA31",
  pin40: "VDD",
  pin41: "VSS",
  pin42: ["PA2", "ROSC"],
  pin43: ["PA3", "LFXIN"],
  pin44: ["PA4", "LFXOUT"],
  pin45: ["PA5", "HFXIN"],
  pin46: ["PA6", "HFXOUT"],
  pin47: "PB0",
  pin48: "PB1",
  pin49: "PA7",
  pin50: "PB2",
  pin51: "PB3",
  pin52: "PB4",
  pin53: "PB5",
  pin54: "PA8",
  pin55: "PA9",
  pin56: "PA10",
  pin57: "PA11",
  pin58: "PB6",
  pin59: "PB7",
  pin60: "PB8",
  pin61: "PB9",
  pin62: "PB10",
  pin63: "PB11",
  pin64: "PB12",
} as const

export const MSPM0G3507 = (props: ChipProps<typeof pinLabels>) => (
  <chip
    {...props}
    footprint="lqfp64"
    manufacturerPartNumber="MSPM0G3507SPMR"
    pinLabels={pinLabels}
    pinAttributes={{
      VDD: { requiresPower: true },
      VSS: { requiresGround: true },
      VCORE: { mustBeConnected: true },
      NRST: { mustBeConnected: true },
    }}
    schPinArrangement={{
      leftSide: {
        direction: "top-to-bottom",
        pins: ["VDD", "VSS", "VCORE", "NRST"],
      },
      rightSide: {
        direction: "top-to-bottom",
        pins: ["PA2", "PA0", "PA1", "PA19", "PA20"],
      },
    }}
    schPinStyle={{
      VDD:{
        marginTop: -0.4
      },
      VSS:{
        marginTop: 0.5
      },
      VCORE: {
        marginTop: 0.05
      },
      NRST:{
        marginTop: 0.4
      },
      PA2:{
        marginTop: 0.1
      },
      PA0: {
        marginTop: 0.6
      },
      PA1: {
        marginTop: 0.05
      },
      PA19:{
        marginTop: 0.3
      },
      PA20: {
        marginTop: 0.05
      }
    }}
    schHeight={2.7}
  />
)

export default MSPM0G3507