From 9928476ff97188d410ef613c82359467109c224d Mon Sep 17 00:00:00 2001 From: techmannih Date: Wed, 5 Aug 2026 13:04:35 +0530 Subject: [PATCH] Add MSPTS430D8 target socket subcircuit --- README.md | 2 + index.ts | 5 + lib/chips/MSP430G2230ID.circuit.tsx | 65 +++++ lib/chips/index.tsx | 1 + .../TargetSocket_MSPTS430D8.circuit.tsx | 258 ++++++++++++++++++ ...cket_MSPTS430D8.circuit-schematic.snap.svg | 12 + 6 files changed, 343 insertions(+) create mode 100644 lib/chips/MSP430G2230ID.circuit.tsx create mode 100644 lib/subcircuits/TargetSocket_MSPTS430D8.circuit.tsx create mode 100644 lib/subcircuits/__snapshots__/TargetSocket_MSPTS430D8.circuit-schematic.snap.svg diff --git a/README.md b/README.md index 6ddeaac..04384f5 100644 --- a/README.md +++ b/README.md @@ -106,6 +106,7 @@ The package currently exports these subcircuit components: - `EnvironmentalSensor_HDC3022` - `PowerMonitor_INA237` - `AudioAmplifier_TAS2505` +- `TargetSocket_MSPTS430D8` - `Microcontroller_MSPM0G3507` - `Microcontroller_MSPM33C3x` - `LEDDriver_TLC59116` @@ -142,6 +143,7 @@ chip is listed individually below, including whether it supports a | `HDC3020` | `wson_8_ep_2p5x2p5` | `HDC3020DEFR` | | `HDC3022` | `wson_8_ep_2p5x2p5` | `HDC3022DEJR` | | `INA237` | `vssop_10` | `INA237AQDGSRQ1` | +| `MSP430G2230ID` | `-` | `MSP430G2230ID` | | `MSPM0G3507` | `lqfp_64` | `MSPM0G3507SPMR` | | `TAS2505` | `-` | `TAS2505` | | `TMP1827` | `-` | `TMP1827` | diff --git a/index.ts b/index.ts index ac4f986..a5aa82a 100644 --- a/index.ts +++ b/index.ts @@ -14,6 +14,7 @@ import { HDC3020, HDC3022, INA237, + MSP430G2230ID, MSPM33C3x, MSPM0G3507, TAS2505, @@ -49,6 +50,7 @@ import { EnvironmentalSensor_HDC3020 } from "./lib/subcircuits/EnvironmentalSens import { EnvironmentalSensor_HDC3022 } from "./lib/subcircuits/EnvironmentalSensor_HDC3022.circuit"; import { PowerMonitor_INA237 } from "./lib/subcircuits/PowerMonitor_INA237.circuit"; import { AudioAmplifier_TAS2505 } from "./lib/subcircuits/AudioAmplifier_TAS2505.circuit"; +import { TargetSocket_MSPTS430D8 } from "./lib/subcircuits/TargetSocket_MSPTS430D8.circuit"; import { Microcontroller_MSPM0G3507 } from "./lib/subcircuits/Microcontroller_MSPM0G3507.circuit"; import { Microcontroller_MSPM33C3x } from "./lib/subcircuits/Microcontroller_MSPM33C3x.circuit"; import { LEDDriver_TLC59116 } from "./lib/subcircuits/LEDDriver_TLC59116.circuit"; @@ -88,6 +90,7 @@ export { EnvironmentalSensor_HDC3022, PowerMonitor_INA237, AudioAmplifier_TAS2505, + TargetSocket_MSPTS430D8, Microcontroller_MSPM0G3507, Microcontroller_MSPM33C3x, LEDDriver_TLC59116, @@ -123,6 +126,7 @@ export const TiChipComponents = { HDC3020, HDC3022, INA237, + MSP430G2230ID, MSPM33C3x, MSPM0G3507, TAS2505, @@ -160,6 +164,7 @@ export const TiSubcircuitComponents = { EnvironmentalSensor_HDC3022, PowerMonitor_INA237, AudioAmplifier_TAS2505, + TargetSocket_MSPTS430D8, Microcontroller_MSPM0G3507, Microcontroller_MSPM33C3x, LEDDriver_TLC59116, diff --git a/lib/chips/MSP430G2230ID.circuit.tsx b/lib/chips/MSP430G2230ID.circuit.tsx new file mode 100644 index 0000000..352b720 --- /dev/null +++ b/lib/chips/MSP430G2230ID.circuit.tsx @@ -0,0 +1,65 @@ +import type { ChipProps } from "@tscircuit/props"; +import "tscircuit"; + +const pinLabels = { + pin1: ["DVCC", "POWER_DVCC"], + pin2: ["P1_2_TA1_A2", "GPIO_P1_2", "P1_2", "TA1", "ADC_A2"], + pin3: ["P1_5_TA0_A5_SCLK", "GPIO_P1_5", "P1_5", "TA0", "ADC_A5", "SPI_SCLK"], + pin4: [ + "P1_6_TA1_A6_SDO_SCL", + "GPIO_P1_6", + "P1_6", + "TA1", + "ADC_A6", + "SPI_SDO", + "I2C_SCL", + ], + pin5: [ + "P1_7_A7_SDI_SDA", + "GPIO_P1_7", + "P1_7", + "ADC_A7", + "SPI_SDI", + "I2C_SDA", + ], + pin6: ["RST_SBWTDIO", "N_RESET", "RST", "SBWTDIO"], + pin7: ["TST_SBWTCK", "TEST", "SBWTCK"], + pin8: ["DVSS", "POWER_DVSS", "GND"], +} as const; + +/** + * MSP430G2230 in the 8-pin D (SOIC) package. + * + * This pinout is also the one exposed by the MSP-TS430D8 socket board for the + * supported MSP430G2210/MSP430G2230 devices. + */ +export const MSP430G2230ID = (props: ChipProps) => ( + +); + +export default MSP430G2230ID; diff --git a/lib/chips/index.tsx b/lib/chips/index.tsx index 1ef7bd2..f4d09e8 100644 --- a/lib/chips/index.tsx +++ b/lib/chips/index.tsx @@ -13,6 +13,7 @@ export { HDC2080 } from "./HDC2080.circuit.tsx"; export { HDC3020 } from "./HDC3020.circuit.tsx"; export { HDC3022 } from "./HDC3022.circuit.tsx"; export { INA237 } from "./INA237.circuit.tsx"; +export { MSP430G2230ID } from "./MSP430G2230ID.circuit.tsx"; export { MSPM33C3x } from "./MSPM33C3x.circuit.tsx"; export { MSPM0G3507 } from "./MSPM0G3507.circuit.tsx"; export { TAS2505 } from "./TAS2505.circuit.tsx"; diff --git a/lib/subcircuits/TargetSocket_MSPTS430D8.circuit.tsx b/lib/subcircuits/TargetSocket_MSPTS430D8.circuit.tsx new file mode 100644 index 0000000..3e2529a --- /dev/null +++ b/lib/subcircuits/TargetSocket_MSPTS430D8.circuit.tsx @@ -0,0 +1,258 @@ +import type { SubcircuitProps } from "@tscircuit/props"; +import "tscircuit"; +import { MSP430G2230ID } from "../chips/MSP430G2230ID.circuit.tsx"; + +/** + * TI MSP-TS430D8 8-pin target socket board reference circuit. + * + * J5 power selection: + * - short pins 2-3 for power from the MSP debug tool + * - short pins 1-2 for an externally powered target / VCC sensing + * + * J6 is normally shorted and can be opened to measure target supply current. + * J4 is normally shorted and can be opened to disconnect the P1.2 LED. + */ +export const TargetSocket_MSPTS430D8 = (props: SubcircuitProps) => ( + + + + {/* 14-pin MSP Spy-Bi-Wire debug connector */} + + + {/* Internal/external supply-selection header */} + + + {/* External power connector */} + + + {/* SBWTCK series resistor */} + + + {/* Reset pull-up and optional reset capacitor */} + + + + + {/* Removable jumper for target-current measurement */} + + + {/* Target supply decoupling */} + + + + + {/* Low-side device breakout */} + + + {/* High-side device breakout */} + + + {/* P1.2 indicator LED and disconnect jumper */} + + + + + + +); + +export default TargetSocket_MSPTS430D8; diff --git a/lib/subcircuits/__snapshots__/TargetSocket_MSPTS430D8.circuit-schematic.snap.svg b/lib/subcircuits/__snapshots__/TargetSocket_MSPTS430D8.circuit-schematic.snap.svg new file mode 100644 index 0000000..b4d81b2 --- /dev/null +++ b/lib/subcircuits/__snapshots__/TargetSocket_MSPTS430D8.circuit-schematic.snap.svg @@ -0,0 +1,12 @@ +MSP-TS430D8U11DVCC2P1_2_TA1_A23P1_5_TA0_A5_SCLK4P1_6_TA1_A6_SDO_SCL5P1_7_A7_SDI_SDA6RST_SBWTDIO7TST_SBWTCK8DVSSSBW1412108642131197531J51EXT2VCC3INTJ31VCC2GND3GNDR2330ΩR547kΩC82.2nFJ61VCC4302VCCC710uFC5100nFFE4L1VCC4302P1_23P1_54P1_6FE4H1DVSS_82TST_73RST_64P1_7_5J421R3330ΩgreenD1GND