Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ The package currently exports these subcircuit components:
- `BluetoothAudioHost_MSP430F5229`
- `Microcontroller_MSPM0G3507`
- `Microcontroller_MSPM33C3x`
- `Microcontroller_MSP430G2553_TIDA01539` ([TIDA-01539 design guide, Figure 12](https://www.ti.com/lit/pdf/TIDUDR8) and [MSP430G2553 LaunchPad target schematic, Figure 19](https://www.ti.com/lit/pdf/SLAU772))
- `LEDDriver_TLC59116`
- `TemperatureSensor_TMP1075`
- `TemperatureSensor_TMP1827`
Expand Down Expand Up @@ -214,6 +215,7 @@ chip is listed individually below, including whether it supports a
| `LMK1C1104` | `tssop_8` | `LMK1C1104PWR` |
| `MSP430G2230ID` | `-` | `MSP430G2230ID` |
| `MSP430F5229` | `-` | `MSP430F5229IRGCR` |
| `MSP430G2553Q1` | `-` | `MSP430G2553IPW0RQ1` |
| `MSPM0G3507` | `lqfp_64` | `MSPM0G3507SPMR` |
| `OPT3001` | `-` | `OPT3001IDNPRQ1` |
| `SN65HVD1473` | `vssop_10` | `SN65HVD1473DGSR` |
Expand Down
2 changes: 2 additions & 0 deletions examples/RearviewMirrorModule.circuit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import {
ElectrochromicMirrorDriver_TIDA01539,
LampDriver_TPS92638_TIDA00356,
LightSensor_OPT3001_TIDA01539,
Microcontroller_MSP430G2553_TIDA01539,
PowerSupply_LM74202_TPS7E81_Q1,
TemperatureSensor_LM50HV_Q1,
} from "@tsci/tscircuit.ti";
Expand All @@ -14,6 +15,7 @@ export default () => (
<CommunicationInterface_TCAN1042_TIDA01428 name="communication_interface" />
<ElectrochromicMirrorDriver_TIDA01539 name="mirror_driver" />
<LightSensor_OPT3001_TIDA01539 name="light_sensor" />
<Microcontroller_MSP430G2553_TIDA01539 name="mcu" />
<LampDriver_TPS92638_TIDA00356 name="lamp_driver" />
<TemperatureSensor_LM50HV_Q1 name="temperature_sensor" />
</board>
Expand Down
5 changes: 5 additions & 0 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import {
LMK1C1104,
MSP430G2230ID,
MSP430G2332IPW20,
MSP430G2553Q1,
MSP430F5229,
MSPM0L1306,
MSPM33C3x,
Expand Down Expand Up @@ -110,6 +111,7 @@ import { FlashMemory_W25Q128JVSIQ } from "./lib/subcircuits/FlashMemory_W25Q128J
import { BatteryCharging_2to5CellNVDCBuckBoost_BQ25731 } from "./lib/subcircuits/BatteryCharging_2to5CellNVDCBuckBoost_BQ25731.circuit.tsx";
import { BoostConverter_TPS61236 } from "./lib/subcircuits/BoostConverter_TPS61236.circuit.tsx";
import { Microcontroller_MSP430G2332 } from "./lib/subcircuits/Microcontroller_MSP430G2332.circuit.tsx";
import { Microcontroller_MSP430G2553_TIDA01539 } from "./lib/subcircuits/Microcontroller_MSP430G2553_TIDA01539.circuit.tsx";
import { USBC_PowerDeliveryProgrammablePowerSupply_TPS61288 } from "./lib/subcircuits/USBC_PowerDeliveryProgrammablePowerSupply_TPS61288.circuit.tsx";
import { CommunicationInterface_TCAN1042_TIDA01428 } from "./lib/subcircuits/CommunicationInterface_TCAN1042_TIDA01428.circuit.tsx";
import { ElectrochromicMirrorDriver_TIDA01539 } from "./lib/subcircuits/ElectrochromicMirrorDriver_TIDA01539.circuit.tsx";
Expand Down Expand Up @@ -169,6 +171,7 @@ export {
BatteryCharging_2to5CellNVDCBuckBoost_BQ25731,
BoostConverter_TPS61236,
Microcontroller_MSP430G2332,
Microcontroller_MSP430G2553_TIDA01539,
USBC_PowerDeliveryProgrammablePowerSupply_TPS61288,
CommunicationInterface_TCAN1042_TIDA01428,
ElectrochromicMirrorDriver_TIDA01539,
Expand Down Expand Up @@ -207,6 +210,7 @@ export const TiChipComponents = {
LMK1C1104,
MSP430G2230ID,
MSP430G2332IPW20,
MSP430G2553Q1,
MSP430F5229,
MSPM0L1306,
MSPM33C3x,
Expand Down Expand Up @@ -289,6 +293,7 @@ export const TiSubcircuitComponents = {
BatteryCharging_2to5CellNVDCBuckBoost_BQ25731,
BoostConverter_TPS61236,
Microcontroller_MSP430G2332,
Microcontroller_MSP430G2553_TIDA01539,
USBC_PowerDeliveryProgrammablePowerSupply_TPS61288,
CommunicationInterface_TCAN1042_TIDA01428,
ElectrochromicMirrorDriver_TIDA01539,
Expand Down
96 changes: 96 additions & 0 deletions lib/chips/MSP430G2553IPW0RQ1.circuit.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
import type { ChipProps } from "@tscircuit/props";
import "tscircuit";

export const MSP430G2553IPW0RQ1_PIN_LABELS = {
pin1: "DVCC",
pin2: ["P1_0", "TA0CLK", "ACLK", "A0", "CA0"],
pin3: ["P1_1", "TA0_0", "UCA0RXD", "UCA0SOMI", "A1", "CA1"],
pin4: ["P1_2", "TA0_1", "UCA0TXD", "UCA0SIMO", "A2", "CA2"],
pin5: ["P1_3", "ADC10CLK", "CAOUT", "VREF_N", "VEREF_N", "A3", "CA3"],
pin6: [
"P1_4",
"SMCLK",
"UCB0STE",
"UCA0CLK",
"VREF_P",
"VEREF_P",
"A4",
"CA4",
"TCK",
],
pin7: ["P1_5", "TA0_0", "UCB0CLK", "UCA0STE", "A5", "CA5", "TMS"],
pin8: ["P2_0", "TA1_0"],
pin9: ["P2_1", "TA1_1"],
pin10: ["P2_2", "TA1_1"],
pin11: ["P2_3", "TA1_0"],
pin12: ["P2_4", "TA1_2"],
pin13: ["P2_5", "TA1_2"],
pin14: ["P1_6", "TA0_1", "UCB0SOMI", "UCB0SCL", "A6", "CA6", "TDI", "TCLK"],
pin15: ["P1_7", "CAOUT", "UCB0SIMO", "UCB0SDA", "A7", "CA7", "TDO", "TDI"],
pin16: ["RST_NMI_SBWTDIO", "RESET", "SBWTDIO"],
pin17: ["TEST_SBWTCK", "TEST", "SBWTCK"],
pin18: ["P2_7", "XOUT"],
pin19: ["P2_6", "XIN", "TA0_1"],
pin20: "DVSS",
} as const;

const bidirectionalPin = {
requiresPower: true,
providesPower: true,
} as const;

/** Automotive MSP430G2553-Q1 in the 20-pin PW TSSOP package. */
export const MSP430G2553IPW0RQ1 = (
props: ChipProps<typeof MSP430G2553IPW0RQ1_PIN_LABELS>,
) => (
<chip
manufacturerPartNumber="MSP430G2553IPW0RQ1"
datasheetUrl="https://www.ti.com/lit/ds/symlink/msp430g2553-q1.pdf"
footprint="tssop20"
pinLabels={MSP430G2553IPW0RQ1_PIN_LABELS}
pinAttributes={{
DVCC: {
mustBeConnected: true,
requiresPower: true,
shouldHaveDecouplingCapacitor: true,
recommendedDecouplingCapacitorCapacitance: "0.1uF",
},
P1_0: bidirectionalPin,
P1_1: bidirectionalPin,
P1_2: bidirectionalPin,
P1_3: bidirectionalPin,
P1_4: bidirectionalPin,
P1_5: bidirectionalPin,
P2_0: bidirectionalPin,
P2_1: bidirectionalPin,
P2_2: bidirectionalPin,
P2_3: bidirectionalPin,
P2_4: bidirectionalPin,
P2_5: bidirectionalPin,
P1_6: bidirectionalPin,
P1_7: bidirectionalPin,
RST_NMI_SBWTDIO: { requiresPower: true },
TEST_SBWTCK: { requiresPower: true },
P2_7: bidirectionalPin,
P2_6: bidirectionalPin,
DVSS: { requiresGround: true },
}}
schWidth="5mm"
schHeight="7mm"
schPinArrangement={{
leftSide: {
direction: "top-to-bottom",
pins: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10],
},
rightSide: {
direction: "top-to-bottom",
pins: [20, 19, 18, 17, 16, 15, 14, 13, 12, 11],
},
}}
{...props}
/>
);

export const MSP430G2553Q1 = MSP430G2553IPW0RQ1;

export default MSP430G2553IPW0RQ1;
5 changes: 5 additions & 0 deletions lib/chips/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ export {
export { LMK1C1104 } from "./LMK1C1104.circuit.tsx";
export { MSP430G2230ID } from "./MSP430G2230ID.circuit.tsx";
export { MSP430F5229 } from "./MSP430F5229.circuit.tsx";
export {
MSP430G2553IPW0RQ1,
MSP430G2553IPW0RQ1_PIN_LABELS,
MSP430G2553Q1,
} from "./MSP430G2553IPW0RQ1.circuit.tsx";
export { MSPM0L1306 } from "./MSPM0L1306.circuit.tsx";
export { MSPM33C3x } from "./MSPM33C3x.circuit.tsx";
export { MSPM0G3507 } from "./MSPM0G3507.circuit.tsx";
Expand Down
149 changes: 149 additions & 0 deletions lib/subcircuits/Microcontroller_MSP430G2553_TIDA01539.circuit.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,149 @@
import type { SubcircuitProps } from "@tscircuit/props";
import "tscircuit";
import { MSP430G2553IPW0RQ1 } from "../chips/MSP430G2553IPW0RQ1.circuit.tsx";

/**
* MSP430G2553-Q1 controller for the TIDA-01539 rearview-mirror application.
*
* The power and reset support follows the MSP-EXP430G2 target schematic. The
* application nets follow TIDA-01539 Figure 12, which connects the LaunchPad
* to the light sensors, DAC and electrochromic-mirror discharge control.
*/
export const Microcontroller_MSP430G2553_TIDA01539 = (
props: SubcircuitProps,
) => (
<subcircuit
routingDisabled
schMaxTraceDistance="3mm"
schTraceAutoLabelEnabled={false}
{...props}
>
<net name="V3P3" isPowerNet />
<net name="GND" isGroundNet />
<net name="RST_SBWTDIO" />

<MSP430G2553IPW0RQ1
name="MSP1"
schX={0}
schY={0}
noConnect={[
"pin2",
"pin3",
"pin4",
"pin6",
"pin7",
"pin8",
"pin11",
"pin14",
"pin15",
"pin17",
"pin18",
"pin19",
]}
connections={{
DVCC: "net.V3P3",
DVSS: "net.GND",
P1_3: "net.OPT_F",
P2_1: "net.SCL",
P2_2: "net.SDA",
P2_4: "net.OPT_B",
P2_5: "net.DISC",
RST_NMI_SBWTDIO: "net.RST_SBWTDIO",
}}
/>

<capacitor
name="C2"
capacitance="10uF"
footprint="0805"
schX={-6.2}
schY={2.6}
schOrientation="vertical"
connections={{ pin1: "net.V3P3", pin2: "net.GND" }}
/>
<capacitor
name="C3"
capacitance="1uF"
footprint="0603"
schX={-4.9}
schY={2.6}
schOrientation="vertical"
connections={{ pin1: "net.V3P3", pin2: "net.GND" }}
/>
<capacitor
name="C4"
capacitance="0.1uF"
footprint="0402"
schX={-3.6}
schY={2.6}
schOrientation="vertical"
connections={{ pin1: "net.V3P3", pin2: "net.GND" }}
/>

<resistor
name="R7"
resistance="10kohm"
footprint="0402"
schX={-5.6}
schY={-1.4}
schOrientation="vertical"
connections={{ pin1: "net.V3P3", pin2: "net.OPT_F" }}
/>
<resistor
name="R5"
resistance="10kohm"
footprint="0402"
schX={-5.6}
schY={-3.3}
schOrientation="vertical"
connections={{ pin1: "net.V3P3", pin2: "net.SCL" }}
/>
<resistor
name="R4"
resistance="10kohm"
footprint="0402"
schX={-4.1}
schY={-3.3}
schOrientation="vertical"
connections={{ pin1: "net.V3P3", pin2: "net.SDA" }}
/>
<resistor
name="R6"
resistance="10kohm"
footprint="0402"
schX={4}
schY={-3.3}
schOrientation="vertical"
connections={{ pin1: "net.V3P3", pin2: "net.OPT_B" }}
/>

<resistor
name="R10"
resistance="47kohm"
footprint="0402"
schX={5}
schY={1.6}
schOrientation="vertical"
connections={{ pin1: "net.V3P3", pin2: "net.RST_SBWTDIO" }}
/>
<capacitor
name="C13"
capacitance="1000pF"
footprint="0402"
schX={6.2}
schY={-0.7}
schOrientation="vertical"
connections={{ pin1: "net.RST_SBWTDIO", pin2: "net.GND" }}
/>
<pushbutton
name="S2"
displayName="RESET"
footprint="smdpushbutton"
schX={5}
schY={-1.3}
connections={{ pin1: "net.RST_SBWTDIO", pin2: "net.GND" }}
/>
</subcircuit>
);

export default Microcontroller_MSP430G2553_TIDA01539;
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading