Skip to content
Merged
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: 1 addition & 1 deletion lib/chips/CC2745R10E0WRHARQ1.circuit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const pinLabels = {
pin38: ["VDDS", "VDDS4"],
pin39: ["RF_ANT", "ANT"],
pin40: ["NC"],
pin41: ["EP_GND", "EGP"],
pin41: ["EP_GND", "EGP", "thermalpad"],
} as const;

export const CC2745R10E0WRHARQ1 = (props: ChipProps<typeof pinLabels>) => (
Expand Down
25 changes: 13 additions & 12 deletions lib/chips/MSPM33C3x.circuit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,32 +4,33 @@ import "tscircuit";
export const MSPM33C3x = (props: ChipProps) => (
<chip
manufacturerPartNumber="MSPM33C3x_MCU"
footprint="qfn48_thermalpad4.1mmx4.1mm_p0.4999mm_h7.9998mm_pw0.28mm_pl0.785mm"
schWidth="3mm"
schHeight="4mm"
pinLabels={{
pin1: "VDD",
pin2: "VSS",
pin3: "VCORE",
pin4: "NRST",
pin5: "SWDIO",
pin6: "SWCLK",
pin6: "VDD",
pin34: "SWDIO",
pin35: "SWCLK",
pin48: "VCORE",
pin49: ["VSS", "thermalpad"],
}}
schPinArrangement={{
leftSide: {
direction: "top-to-bottom",
pins: [1, 2, 3, 4],
pins: [6, 49, 48, 4],
},
rightSide: {
direction: "top-to-bottom",
pins: [5, 6],
pins: [34, 35],
},
}}
schPinStyle={{
pin1: { marginBottom: 0.4 },
pin2: { marginBottom: 0.4 },
pin3: { marginBottom: 1.3 },
pin5: { marginBottom: 0.4 },
pin6: { marginBottom: -2 },
pin6: { marginBottom: 0.4 },
pin49: { marginBottom: 0.4 },
pin48: { marginBottom: 1.3 },
pin34: { marginBottom: 0.4 },
pin35: { marginBottom: -2 },
}}
{...props}
/>
Expand Down
24 changes: 16 additions & 8 deletions lib/chips/TMP1827.circuit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,30 +7,38 @@ import "tscircuit";
*/
export const TMP1827 = (props: ChipProps) => (
<chip
manufacturerPartNumber="TMP1827"
manufacturerPartNumber="TMP1827NGRR"
supplierPartNumbers={{ jlcpcb: ["C22364248"] }}
footprint="dfn8_thermalpad1.1mmx1.8mm_p0.5001mm_w2.9198mm_pw0.28mm_pl0.585mm"
schWidth="2mm"
schHeight="2mm"
pinLabels={{
pin1: ["ONEWIRE_SDQ", "SDQ"],
pin2: "VDD",
pin3: "GND",
pin1: "VDD",
pin2: ["ONEWIRE_SDQ", "SDQ"],
pin3: "ADDR",
pin4: "GND",
pin5: "IO3",
pin6: "IO0",
pin7: "IO1",
pin8: ["IO2_ALERT", "ALERT"],
pin9: ["EP", "thermalpad"],
}}
schPinArrangement={{
topSide: {
direction: "left-to-right",
pins: [1],
pins: [2],
},
rightSide: {
direction: "left-to-right",
pins: [2],
pins: [1],
},
bottomSide: {
direction: "left-to-right",
pins: [3],
pins: [4],
},
}}
schPinStyle={{
pin2: { marginBottom: 1 },
pin1: { marginBottom: 1 },
}}
{...props}
/>
Expand Down
25 changes: 18 additions & 7 deletions lib/subcircuits/Microcontroller_MSPM33C3x.circuit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,24 @@ export const Microcontroller_MSPM33C3x = (props: SubcircuitProps) => (
<subcircuit {...props}>
<MSPM33C3x
name="U1"
pcbX={0}
pcbY={0}
schX={0}
schY={0}
connections={{
pin1: "net.V3_3",
pin2: "net.GND",
pin4: "net.NRST",

pin5: "net.SWDIO",
pin6: "net.SWCLK",
VDD: "net.V3_3",
NRST: "net.NRST",
SWDIO: "net.SWDIO",
SWCLK: "net.SWCLK",
}}
/>

<capacitor
name="C1"
capacitance="10uF"
footprint="0603"
pcbX={-5}
pcbY={1}
schX={-5.5}
schY={1.0}
schOrientation="vertical"
Expand All @@ -35,6 +37,8 @@ export const Microcontroller_MSPM33C3x = (props: SubcircuitProps) => (
name="C2"
capacitance="100nF"
footprint="0402"
pcbX={-5}
pcbY={-1}
schX={-3.9}
schY={1.0}
schOrientation="vertical"
Expand All @@ -48,11 +52,13 @@ export const Microcontroller_MSPM33C3x = (props: SubcircuitProps) => (
name="C3"
capacitance="2.2uF"
footprint="0603"
pcbX={-3}
pcbY={5}
schX={-2.7}
schY={-0.3}
schOrientation="vertical"
connections={{
pin1: "U1.pin3",
pin1: "U1.VCORE",
pin2: "net.GND",
}}
/>
Expand All @@ -61,6 +67,8 @@ export const Microcontroller_MSPM33C3x = (props: SubcircuitProps) => (
name="R1"
resistance="47k"
footprint="0402"
pcbX={-5}
pcbY={3}
schX={-6.3}
schY={0.0}
schOrientation="vertical"
Expand All @@ -74,6 +82,8 @@ export const Microcontroller_MSPM33C3x = (props: SubcircuitProps) => (
name="C4"
capacitance="10nF"
footprint="0402"
pcbX={-7}
pcbY={3}
schX={-6.3}
schY={-3}
schOrientation="vertical"
Expand All @@ -82,6 +92,7 @@ export const Microcontroller_MSPM33C3x = (props: SubcircuitProps) => (
pin2: "net.GND",
}}
/>
<trace name="route_vss_to_ground" from="U1.VSS" to="C2.pin2" />
</subcircuit>
);

Expand Down
42 changes: 28 additions & 14 deletions lib/subcircuits/TemperatureSensor_TMP1827.circuit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,36 +15,50 @@ export const TemperatureSensor_TMP1827 = (props: SubcircuitProps) => (
name="RPU"
resistance="3k"
footprint="0402"
pcbX={-4}
pcbY={0}
schX={-2.5}
schY={3.4}
schOrientation="vertical"
connections={{
pin1: "net.VDD",
pin2: "net.SDQ_BUS",
}}
/>

<TMP1827
name="U2"
pcbX={0}
pcbY={0}
schX={2}
schY={0}
connections={{
pin1: "net.SDQ_BUS",
pin2: "net.VDD",
pin3: "net.GND",
}}
noConnect={["ADDR", "IO3", "IO0", "IO1", "IO2_ALERT", "EP"]}
/>

<TMP1827
name="U3"
pcbX={4}
pcbY={0}
schX={6}
schY={0}
connections={{
pin1: "net.SDQ_BUS",
pin2: "net.VDD",
pin3: "net.GND",
}}
noConnect={["ADDR", "IO3", "IO0", "IO1", "IO2_ALERT", "EP"]}
/>
<trace
name="vdd_pullup_to_u2"
from="RPU.pin1"
to="U2.VDD"
pcbStraightLine
/>
<trace name="vdd_u2_to_u3" from="U2.VDD" to="U3.VDD" pcbStraightLine />
<trace name="vdd_external" from="RPU.pin1" to="net.VDD" />

<trace
name="sdq_pullup_to_u2"
from="RPU.pin2"
to="U2.SDQ"
pcbStraightLine
/>
<trace name="sdq_u2_to_u3" from="U2.SDQ" to="U3.SDQ" pcbStraightLine />
<trace name="sdq_external" from="RPU.pin2" to="net.SDQ_BUS" />

<trace name="ground_u2_to_u3" from="U2.GND" to="U3.GND" pcbStraightLine />
<trace name="ground_external" from="U2.GND" to="net.GND" />
<schematictext schX={2} schY={0} text="TMP1827" fontSize={0.2} />
<schematictext schX={2} schY={-2.2} text="VDD Powered" fontSize={0.2} />
<schematictext schX={6} schY={-2.2} text="BUS Powered" fontSize={0.2} />
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading