aj0070/logic-analyzer
A 16-channel USB logic analyzer PCB built around an RP2040, USB-C input/ESD protection, 3.3V regulation, QSPI flash, crystal clock, dual 8-channel level shifters, and probe headers.
- Version
- 1.0.0
- License
- unset
- Stars
- 0
Use with the tscircuit CLI
tsci is the tscircuit CLI. Install it with npm install -g tscircuit.
tsci clone aj0070/logic-analyzer # download the package files into ./logic-analyzer
tsci add aj0070/logic-analyzer # add it to your project as @tsci/aj0070.logic-analyzerIn 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.
dist/index.js
import { jsx, jsxs } from 'react/jsx-runtime';
import { Fragment } from 'react';
const pinLabels$2 = {
pin1: ["VIN"],
pin2: ["GND"],
pin3: ["EN"],
pin4: ["NC"],
pin5: ["VOUT"]
};
const pinAttributes$1 = {
pin1: { isInput: true, requiresPower: true, mustBeConnected: true, shouldHaveDecouplingCapacitor: true, recommendedDecouplingCapacitorCapacitance: "1uF" },
pin2: { requiresGround: true, mustBeConnected: true },
pin4: { doNotConnect: true },
pin5: { isOutput: true, providesPower: true, providesVoltage: "3.3V", shouldHaveDecouplingCapacitor: true, recommendedDecouplingCapacitorCapacitance: "1uF" },
pin3: { isInput: true }
};
const AP2112K_3_3TRG1 = (props) => {
return (jsx("chip", { pinLabels: pinLabels$2, pinAttributes: pinAttributes$1, supplierPartNumbers: {
"jlcpcb": [
"C51118"
]
}, manufacturerPartNumber: "AP2112K-3.3TRG1", footprint: "dfn6_missing(5)_p0.95mm_w3.7mm_pw0.62mm_pl1.1mm_pin1location(leftside,bottom)", cadModel: {
objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C51118.obj?uuid=6d166d1d6c064b99aa79465714e989c1",
stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C51118.step?uuid=6d166d1d6c064b99aa79465714e989c1",
pcbRotationOffset: 0,
modelOriginPosition: { x: -12700000070253736e-21, y: 0, z: -0.15 },
}, ...props }));
};
const pinLabels$1 = {
pin1: ["pin1"],
pin2: ["pin2"],
pin3: ["pin3"]
};
const PESD5V2S2UT_215 = (props) => {
return (jsx("chip", { pinLabels: pinLabels$1, symbol: jsxs("symbol", { children: [jsx("schematicpath", { points: [{ "x": -0.8, "y": 0.42 }, { "x": 0.82, "y": 0.42 }, { "x": 0.82, "y": -0.4 }, { "x": -0.8, "y": -0.4 }, { "x": -0.8, "y": 0.42 }], strokeWidth: 0.02, strokeColor: "#880000", isFilled: true, fillColor: "#FFFFFF" }), jsx("port", { name: "pin1", pinNumber: 1, aliases: ["1"], direction: "down", schX: -0.4, schY: -0.8, schStemLength: 0.4 }), jsx("port", { name: "pin2", pinNumber: 2, aliases: ["2"], direction: "down", schX: 0.4, schY: -0.8, schStemLength: 0.4 }), jsx("port", { name: "pin3", pinNumber: 3, aliases: ["3"], direction: "up", schX: 0, schY: 0.8, schStemLength: 0.4 }), jsx("schematicpath", { points: [{ "x": 0.2, "y": 0.02 }, { "x": 0.4, "y": -0.18 }, { "x": 0.6, "y": 0.02 }, { "x": 0.2, "y": 0.02 }], strokeColor: "#880000", isFilled: true, fillColor: "#880000" }), jsx("schematicpath", { points: [{ "x": 0.6, "y": -0.18 }, { "x": 0.2, "y": -0.18 }], strokeColor: "#880000" }), jsx("schematicpath", { points: [{ "x": -0.6, "y": 0.02 }, { "x": -0.4, "y": -0.18 }, { "x": -0.2, "y": 0.02 }, { "x": -0.6, "y": 0.02 }], strokeColor: "#880000", isFilled: true, fillColor: "#880000" }), jsx("schematicpath", { points: [{ "x": -0.2, "y": -0.18 }, { "x": -0.6, "y": -0.18 }], strokeColor: "#880000" }), jsx("schematicpath", { points: [{ "x": -0.6, "y": -0.18 }, { "x": -0.6, "y": -0.12 }], strokeColor: "#880000" }), jsx("schematicpath", { points: [{ "x": -0.4, "y": -0.4 }, { "x": -0.4, "y": 0.24 }, { "x": 0.4, "y": 0.24 }], strokeColor: "#880000" }), jsx("schematicpath", { points: [{ "x": 0.4, "y": 0.24 }, { "x": 0.4, "y": -0.4 }], strokeColor: "#880000" }), jsx("schematicpath", { points: [{ "x": 0, "y": 0.42 }, { "x": 0, "y": 0.24 }], strokeColor: "#880000" }), jsx("schematictext", { schX: 0.01, schY: 1.02, text: "{NAME}", fontSize: 0.2, anchor: "bottom_center" })] }), supplierPartNumbers: {
"jlcpcb": [
"C18441"
]
}, manufacturerPartNumber: "PESD5V2S2UT,215", footprint: "sot23w_p1.15mm_pw0.6mm_pin1location(rightside,bottom)", cadModel: {
objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C18441.obj?uuid=d777607a152f4f3aac9bb0d0c14ed6fd",
stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C18441.step?uuid=d777607a152f4f3aac9bb0d0c14ed6fd",
pcbRotationOffset: 180,
modelOriginPosition: { x: 0.00003809999999759839, y: -3810000001180924e-20, z: 0.050795 },
}, ...props }));
};
const pinLabels = {
pin1: ["A1"],
pin2: ["VCCA"],
pin3: ["A2"],
pin4: ["A3"],
pin5: ["A4"],
pin6: ["A5"],
pin7: ["A6"],
pin8: ["A7"],
pin9: ["A8"],
pin10: ["OE"],
pin11: ["GND"],
pin12: ["B8"],
pin13: ["B7"],
pin14: ["B6"],
pin15: ["B5"],
pin16: ["B4"],
pin17: ["B3"],
pin18: ["B2"],
pin19: ["VCCB"],
pin20: ["B1"]
};
const pinAttributes = {
pin11: { requiresGround: true },
pin1: { isBidirectional: true, canUseTriState: true, canUseInternalPullup: true, canUseOpenDrain: true, canUsePushPull: true },
pin2: { requiresPower: true, shouldHaveDecouplingCapacitor: true, recommendedDecouplingCapacitorCapacitance: "100nF" },
pin3: { isBidirectional: true, canUseTriState: true, canUseInternalPullup: true, canUseOpenDrain: true, canUsePushPull: true },
pin4: { isBidirectional: true, canUseTriState: true, canUseInternalPullup: true, canUseOpenDrain: true, canUsePushPull: true },
pin5: { isBidirectional: true, canUseTriState: true, canUseInternalPullup: true, canUseOpenDrain: true, canUsePushPull: true },
pin6: { isBidirectional: true, canUseTriState: true, canUseInternalPullup: true, canUseOpenDrain: true, canUsePushPull: true },
pin7: { isBidirectional: true, canUseTriState: true, canUseInternalPullup: true, canUseOpenDrain: true, canUsePushPull: true },
pin8: { isBidirectional: true, canUseTriState: true, canUseInternalPullup: true, canUseOpenDrain: true, canUsePushPull: true },
pin9: { isBidirectional: true, canUseTriState: true, canUseInternalPullup: true, canUseOpenDrain: true, canUsePushPull: true },
pin10: { isInput: true },
pin20: { isBidirectional: true, canUseTriState: true, canUseInternalPullup: true, canUseOpenDrain: true, canUsePushPull: true },
pin19: { requiresPower: true, shouldHaveDecouplingCapacitor: true, recommendedDecouplingCapacitorCapacitance: "100nF" },
pin18: { isBidirectional: true, canUseTriState: true, canUseInternalPullup: true, canUseOpenDrain: true, canUsePushPull: true },
pin17: { isBidirectional: true, canUseTriState: true, canUseInternalPullup: true, canUseOpenDrain: true, canUsePushPull: true },
pin16: { isBidirectional: true, canUseTriState: true, canUseInternalPullup: true, canUseOpenDrain: true, canUsePushPull: true },
pin15: { isBidirectional: true, canUseTriState: true, canUseInternalPullup: true, canUseOpenDrain: true, canUsePushPull: true },
pin14: { isBidirectional: true, canUseTriState: true, canUseInternalPullup: true, canUseOpenDrain: true, canUsePushPull: true },
pin13: { isBidirectional: true, canUseTriState: true, canUseInternalPullup: true, canUseOpenDrain: true, canUsePushPull: true },
pin12: { isBidirectional: true, canUseTriState: true, canUseInternalPullup: true, canUseOpenDrain: true, canUsePushPull: true }
};
const TXS0108EPWR = (props) => {
return (jsx("chip", { pinLabels: pinLabels, pinAttributes: pinAttributes, supplierPartNumbers: {
"jlcpcb": [
"C17206"
]
}, manufacturerPartNumber: "TXS0108EPWR", footprint: "tssop20_p0.65mm_w3.9999mm_pw0.364mm_pl1.742mm_rounded0.182mm_pin1location(leftside,bottom)", cadModel: {
objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C17206.obj?uuid=f8ba5b4174b9490d8c445fbe2ed40b80",
stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C17206.step?uuid=f8ba5b4174b9490d8c445fbe2ed40b80",
pcbRotationOffset: 90,
modelOriginPosition: { x: 0, y: 0.000012700000070253736, z: -0.019205 },
}, ...props }));
};
const rp2040PinLabels = {
pin1: "IOVDD6",
pin2: "GPIO0",
pin3: "GPIO1",
pin4: "GPIO2",
pin5: "GPIO3",
pin6: "GPIO4",
pin7: "GPIO5",
pin8: "GPIO6",
pin9: "GPIO7",
pin10: "IOVDD5",
pin11: "GPIO8",
pin12: "GPIO9",
pin13: "GPIO10",
pin14: "GPIO11",
pin15: "GPIO12",
pin16: "GPIO13",
pin17: "GPIO14",
pin18: "GPIO15",
pin19: "TESTEN",
pin20: "XIN",
pin21: "XOUT",
pin22: "IOVDD4",
pin23: "DVDD2",
pin24: "SWCLK",
pin25: "SWD",
pin26: "RUN",
pin27: "GPIO16",
pin28: "GPIO17",
pin29: "GPIO18",
pin30: "GPIO19",
pin31: "GPIO20",
pin32: "GPIO21",
pin33: "IOVDD3",
pin34: "GPIO22",
pin35: "GPIO23",
pin36: "GPIO24",
pin37: "GPIO25",
pin38: "GPIO26_ADC0",
pin39: "GPIO27_ADC1",
pin40: "GPIO28_ADC2",
pin41: "GPIO29_ADC3",
pin42: "IOVDD2",
pin43: "ADC_AVDD",
pin44: "VREG_IN",
pin45: "VREG_VOUT",
pin46: "USB_DM",
pin47: "USB_DP",
pin48: "USB_VDD",
pin49: "IOVDD1",
pin50: "DVDD1",
pin51: "QSPI_SD3",
pin52: "QSPI_SCLK",
pin53: "QSPI_SD0",
pin54: "QSPI_SD2",
pin55: "QSPI_SD1",
pin56: "QSPI_SS",
pin57: "GND",
};
const RP2040 = (props) => (jsx("chip", { pinLabels: rp2040PinLabels, pinAttributes: {
IOVDD1: { requiresPower: true, mustBeConnected: true },
IOVDD2: { requiresPower: true, mustBeConnected: true },
IOVDD3: { requiresPower: true, mustBeConnected: true },
IOVDD4: { requiresPower: true, mustBeConnected: true },
IOVDD5: { requiresPower: true, mustBeConnected: true },
IOVDD6: { requiresPower: true, mustBeConnected: true },
DVDD1: { requiresPower: true, mustBeConnected: true },
DVDD2: { requiresPower: true, mustBeConnected: true },
VREG_IN: { requiresPower: true, mustBeConnected: true },
VREG_VOUT: { providesPower: true, mustBeConnected: true },
USB_VDD: { requiresPower: true, mustBeConnected: true },
ADC_AVDD: { requiresPower: true, mustBeConnected: true },
GND: { requiresGround: true, mustBeConnected: true },
RUN: { mustBeConnected: true },
XIN: { mustBeConnected: true },
XOUT: { mustBeConnected: true },
QSPI_SS: { mustBeConnected: true },
QSPI_SCLK: { mustBeConnected: true },
QSPI_SD0: { mustBeConnected: true },
QSPI_SD1: { mustBeConnected: true },
QSPI_SD2: { mustBeConnected: true },
QSPI_SD3: { mustBeConnected: true },
}, manufacturerPartNumber: "RP2040", footprint: "qfn56_thermalpad3.1mmx3.1mm_p0.4001mm_w7.8999mm_h7.9001mm_pw0.2mm_pl0.85mm", ...props }));
const channels = Array.from({ length: 16 }, (_, i) => i);
var index_circuit = () => (jsxs("board", { width: "55mm", height: "35mm", layers: 2, title: "16-channel USB logic analyzer", routeRemaining: true, children: [jsx("schematicsheet", { name: "power_usb", displayName: "Power and USB", sheetIndex: 0 }), jsx("schematicsheet", { name: "mcu", displayName: "RP2040 and clock", sheetIndex: 1 }), jsx("schematicsheet", { name: "flash_boot", displayName: "Flash, boot, status", sheetIndex: 2 }), jsx("schematicsheet", { name: "probe", displayName: "Level shifters and probe", sheetIndex: 3 }), jsx("schematicsection", { name: "usbc", displayName: "USB-C and ESD" }), jsx("schematicsection", { name: "ldo", displayName: "3.3V LDO" }), jsx("schematicsection", { name: "vref", displayName: "VREF select" }), jsx("schematicsection", { name: "mcu_power", displayName: "RP2040 supply" }), jsx("schematicsection", { name: "clock", displayName: "12MHz crystal" }), jsx("schematicsection", { name: "qspi", displayName: "QSPI flash" }), jsx("schematicsection", { name: "boot", displayName: "Reset and boot" }), jsx("schematicsection", { name: "led", displayName: "Status LED" }), jsx("schematicsection", { name: "shift", displayName: "Level shifters" }), jsx("schematicsection", { name: "probe_hdr", displayName: "Probe header" }), jsx("net", { name: "VBUS", isPowerNet: true, nominalTraceWidth: 0.5 }), jsx("net", { name: "V3_3", isPowerNet: true, nominalTraceWidth: 0.5 }), jsx("net", { name: "V1_1", isPowerNet: true, nominalTraceWidth: 0.4 }), jsx("net", { name: "GND", isGroundNet: true, nominalTraceWidth: 0.4 }), jsx("net", { name: "VREF", isPowerNet: true, nominalTraceWidth: 0.4 }), jsx("net", { name: "VREF_EXT" }), jsx("net", { name: "USB_DP" }), jsx("net", { name: "USB_DM" }), jsx("net", { name: "USB_DP_C" }), jsx("net", { name: "USB_DM_C" }), jsx("net", { name: "XIN" }), jsx("net", { name: "XOUT" }), jsx("net", { name: "XOUT_XTAL" }), jsx("net", { name: "QSPI_SS" }), jsx("net", { name: "QSPI_SCLK" }), jsx("net", { name: "QSPI_SD0" }), jsx("net", { name: "QSPI_SD1" }), jsx("net", { name: "QSPI_SD2" }), jsx("net", { name: "QSPI_SD3" }), jsx("net", { name: "RUN" }), jsx("net", { name: "LED_A" }), jsx("connector", { name: "J1", standard: "usb_c", supplierPartNumbers: { jlcpcb: ["C2765186"] }, allowOffBoard: true, pcbX: -25.5, pcbY: 6.0, pcbRotation: 270, schSheetName: "power_usb", schSectionName: "usbc", schX: -12, schY: 4, noConnect: ["SBU1", "SBU2"], schWidth: 1.575 }), jsx(PESD5V2S2UT_215, { name: "D2", pcbX: -19, pcbY: 2.0, pcbRotation: 0, schSheetName: "power_usb", schSectionName: "usbc", schX: -8, schY: 4 }), jsx("resistor", { name: "R1", resistance: "5.1k", footprint: "0402", pcbX: -19.8, pcbY: 10.0, pcbRotation: 90, schSheetName: "power_usb", schSectionName: "usbc", schX: -9.5, schY: 7, schRotation: 270 }), jsx("resistor", { name: "R2", resistance: "5.1k", footprint: "0402", pcbX: -19.8, pcbY: 12.0, pcbRotation: 90, schSheetName: "power_usb", schSectionName: "usbc", schX: -8.3, schY: 7, schRotation: 270 }), jsx("resistor", { name: "R3", resistance: "27", footprint: "0402", pcbX: -21.9, pcbY: 1.0, pcbRotation: 90, schSheetName: "power_usb", schSectionName: "usbc", schX: -6, schY: 2 }), jsx("resistor", { name: "R4", resistance: "27", footprint: "0402", pcbX: -21.9, pcbY: -1, pcbRotation: 90, schSheetName: "power_usb", schSectionName: "usbc", schX: -6, schY: 0.5 }), jsx(AP2112K_3_3TRG1, { name: "U5", pcbX: -21.3, pcbY: -13.6, pcbRotation: 0, schSheetName: "power_usb", schSectionName: "ldo", schX: -1, schY: 7, schWidth: 1.865, schHeight: 0.8 }), jsx("capacitor", { name: "C1", capacitance: "10uF", footprint: "0603", pcbX: -25.3, pcbY: -12.6, pcbRotation: 0, schSheetName: "power_usb", schSectionName: "ldo", schX: 2.2, schY: 7, schRotation: 270 }), jsx("capacitor", { name: "C2", capacitance: "100nF", footprint: "0402", pcbX: -25.3, pcbY: -14.4, pcbRotation: 0, schSheetName: "power_usb", schSectionName: "ldo", schX: 3.2, schY: 7, schRotation: 270 }), jsx("capacitor", { name: "C3", capacitance: "10uF", footprint: "0603", pcbX: -17.6, pcbY: -12.6, pcbRotation: 0, schSheetName: "power_usb", schSectionName: "ldo", schX: 5.2, schY: 7, schRotation: 270 }), jsx("capacitor", { name: "C4", capacitance: "100nF", footprint: "0402", pcbX: -17.6, pcbY: -14.4, pcbRotation: 0, schSheetName: "power_usb", schSectionName: "ldo", schX: 6.2, schY: 7, schRotation: 270 }), jsx("pinheader", { name: "J3", pinCount: 4, pitch: "2.54mm", gender: "male", footprint: "pinrow4_p2.54mm", pinLabels: ["V3_3", "VREF", "VREF_EXT", "GND"], schWidth: 0.96, schFacingDirection: "right", pcbX: -25.7, pcbY: -6, pcbRotation: 90, schSheetName: "power_usb", schSectionName: "vref", schX: 10, schY: 5, schRotation: 90 }), jsx("capacitor", { name: "C5", capacitance: "100nF", footprint: "0402", pcbX: -22.5, pcbY: -6, pcbRotation: 90, schSheetName: "power_usb", schSectionName: "vref", schX: 12.5, schY: 5, schRotation: 270 }), jsx("capacitor", { name: "C25", capacitance: "100nF", footprint: "0402", pcbX: -23, pcbY: -8.2, pcbRotation: 90, schSheetName: "power_usb", schSectionName: "vref", schX: 14.5, schY: 5, schRotation: 270 }), jsx(RP2040, { name: "U1", pcbX: 0, pcbY: 5.5, pcbRotation: 90, schSheetName: "mcu", schSectionName: "mcu_power", schX: -8, schY: 0, schWidth: 2.815, schHeight: 6 }), jsx("crystal", { name: "X1", frequency: "12MHz", loadCapacitance: "15pF", pinVariant: "two_pin", footprint: "kicad:Crystal/Crystal_SMD_3215-2Pin_3.2x1.5mm", pcbX: 6.0, pcbY: 4.7, pcbRotation: 90, schSheetName: "mcu", schSectionName: "clock", schX: 0, schY: -5 }), jsx("capacitor", { name: "C19", capacitance: "15pF", footprint: "0402", pcbX: 8.6, pcbY: 4.9, pcbRotation: 0, schSheetName: "mcu", schSectionName: "clock", schX: -2.5, schY: -7.6, schRotation: 270 }), jsx("capacitor", { name: "C20", capacitance: "15pF", footprint: "0402", pcbX: 8.6, pcbY: 2.0, pcbRotation: 0, schSheetName: "mcu", schSectionName: "clock", schX: 2.5, schY: -7.6, schRotation: 270 }), jsx("resistor", { name: "R21", resistance: "1k", footprint: "0402", pcbX: 6.0, pcbY: 1.6, pcbRotation: 90, schSheetName: "mcu", schSectionName: "clock", schX: 2.5, schY: -5, schRotation: 180 }), jsx("capacitor", { name: "C6", capacitance: "100nF", footprint: "0402", pcbX: -5.9, pcbY: 4.4, pcbRotation: 0, schSheetName: "mcu", schSectionName: "mcu_power", schX: 4, schY: 6, schRotation: 270 }), jsx("capacitor", { name: "C7", capacitance: "100nF", footprint: "0402", pcbX: -5.9, pcbY: 5.5, pcbRotation: 0, schSheetName: "mcu", schSectionName: "mcu_power", schX: 5, schY: 6, schRotation: 270 }), jsx("capacitor", { name: "C8", capacitance: "100nF", footprint: "0402", pcbX: -5.9, pcbY: 6.6, pcbRotation: 0, schSheetName: "mcu", schSectionName: "mcu_power", schX: 6, schY: 6, schRotation: 270 }), jsx("capacitor", { name: "C9", capacitance: "100nF", footprint: "0402", pcbX: -5.9, pcbY: 7.7, pcbRotation: 0, schSheetName: "mcu", schSectionName: "mcu_power", schX: 7, schY: 6, schRotation: 270 }), jsx("capacitor", { name: "C10", capacitance: "100nF", footprint: "0402", pcbX: 4.4, pcbY: 11.0, pcbRotation: 90, schSheetName: "mcu", schSectionName: "mcu_power", schX: 8, schY: 6, schRotation: 270 }), jsx("capacitor", { name: "C11", capacitance: "100nF", footprint: "0402", pcbX: 6.6, pcbY: 11.0, pcbRotation: 90, schSheetName: "mcu", schSectionName: "mcu_power", schX: 9, schY: 6, schRotation: 270 }), jsx("capacitor", { name: "C12", capacitance: "100nF", footprint: "0402", pcbX: -4.6, pcbY: 11.0, pcbRotation: 90, schSheetName: "mcu", schSectionName: "mcu_power", schX: 10, schY: 6, schRotation: 270 }), jsx("capacitor", { name: "C13", capacitance: "100nF", footprint: "0402", pcbX: -2.4, pcbY: 11.0, pcbRotation: 90, schSheetName: "mcu", schSectionName: "mcu_power", schX: 11, schY: 6, schRotation: 270 }), jsx("capacitor", { name: "C14", capacitance: "100nF", footprint: "0402", pcbX: -0.2, pcbY: 11.0, pcbRotation: 90, schSheetName: "mcu", schSectionName: "mcu_power", schX: 12, schY: 6, schRotation: 270 }), jsx("capacitor", { name: "C15", capacitance: "100nF", footprint: "0402", pcbX: 2.0, pcbY: 11.0, pcbRotation: 90, schSheetName: "mcu", schSectionName: "mcu_power", schX: 13, schY: 6, schRotation: 270 }), jsx("capacitor", { name: "C16", capacitance: "1uF", footprint: "0603", pcbX: -9, pcbY: 11.0, pcbRotation: 90, schSheetName: "mcu", schSectionName: "mcu_power", schX: 14, schY: 6, schRotation: 270 }), jsx("capacitor", { name: "C17", capacitance: "1uF", footprint: "0603", pcbX: -12.6, pcbY: 11.0, pcbRotation: 90, schSheetName: "mcu", schSectionName: "mcu_power", schX: 15.2, schY: 6, schRotation: 270 }), jsx("chip", { name: "U2", manufacturerPartNumber: "W25Q16JVSSIQ", footprint: "soic8_p1.27mm", pinLabels: { pin1: "CS", pin2: "DO", pin3: "WP", pin4: "GND", pin5: "DI", pin6: "CLK", pin7: "HOLD", pin8: "VCC" }, pinAttributes: { VCC: { requiresPower: true }, GND: { requiresGround: true } }, pcbX: -10, pcbY: 2.6, pcbRotation: 0, schSheetName: "flash_boot", schSectionName: "qspi", schX: -9, schY: 3, schWidth: 1.8, schHeight: 1 }), jsx("capacitor", { name: "C18", capacitance: "100nF", footprint: "0402", pcbX: -14.2, pcbY: 3.6, pcbRotation: 90, schSheetName: "flash_boot", schSectionName: "qspi", schX: -5.5, schY: 3, schRotation: 270 }), jsx("resistor", { name: "R23", resistance: "10k", footprint: "0402", pcbX: 5.7, pcbY: 8.0, pcbRotation: 90, schSheetName: "flash_boot", schSectionName: "boot", schX: -11, schY: -2, schRotation: 270 }), jsx("pushbutton", { name: "SW2", footprint: "smdpushbutton", pcbX: 17.0, pcbY: 7.0, pcbRotation: 0, schSheetName: "flash_boot", schSectionName: "boot", schX: -8, schY: -5 }), jsx("pushbutton", { name: "SW1", footprint: "smdpushbutton", pcbX: 17.0, pcbY: 0.0, pcbRotation: 0, schSheetName: "flash_boot", schSectionName: "boot", schX: -3, schY: -5 }), jsx("resistor", { name: "R22", resistance: "330", footprint: "0402", pcbX: 10.4, pcbY: 11.0, pcbRotation: 0, schSheetName: "flash_boot", schSectionName: "led", schX: 6.2, schY: 4.4, schRotation: 270 }), jsx("led", { name: "D1", color: "green", footprint: "led0603", pcbX: 13.8, pcbY: 11.0, pcbRotation: 0, schSheetName: "flash_boot", schSectionName: "led", schX: 6.2, schY: 3.0, schRotation: 270 }), jsx(TXS0108EPWR, { name: "U3", pcbX: -7.6, pcbY: -4.5, pcbRotation: 0, schSheetName: "probe", schSectionName: "shift", schX: -6, schY: 2, schWidth: 1.96, schHeight: 2.2 }), jsx(TXS0108EPWR, { name: "U4", pcbX: 7.6, pcbY: -4.5, pcbRotation: 0, schSheetName: "probe", schSectionName: "shift", schX: 4, schY: 2, schWidth: 1.96, schHeight: 2.2 }), jsx("capacitor", { name: "C21", capacitance: "100nF", footprint: "0402", pcbX: -12.5, pcbY: -7.4, pcbRotation: 90, schSheetName: "probe", schSectionName: "shift", schX: -1, schY: 6.6, schRotation: 270 }), jsx("capacitor", { name: "C23", capacitance: "100nF", footprint: "0402", pcbX: 12.5, pcbY: -7.4, pcbRotation: 90, schSheetName: "probe", schSectionName: "shift", schX: 0.0, schY: 6.6, schRotation: 270 }), jsx("capacitor", { name: "C22", capacitance: "100nF", footprint: "0402", pcbX: -12.5, pcbY: -1.6, pcbRotation: 90, schSheetName: "probe", schSectionName: "shift", schX: -1, schY: 5.6, schRotation: 270 }), jsx("capacitor", { name: "C24", capacitance: "100nF", footprint: "0402", pcbX: 12.5, pcbY: -1.6, pcbRotation: 90, schSheetName: "probe", schSectionName: "shift", schX: 0.0, schY: 5.6, schRotation: 270 }), channels.map((i) => {
const r = `R${5 + i}`;
const x = -14.25 + i * 1.9;
const shifter = i < 8 ? "U3" : "U4";
const a = `A${(i % 8) + 1}`;
const b = `B${(i % 8) + 1}`;
return (jsxs(Fragment, { children: [jsx("resistor", { name: r, resistance: "33", footprint: "0402", pcbX: x, pcbY: -9.9, pcbRotation: 90, schSheetName: "probe", schSectionName: "probe_hdr", schX: -10, schY: 8 - i * 1.05, schRotation: 0 }), jsx("trace", { from: `J2.CH${i}`, to: `${r}.pin1` }), jsx("trace", { from: `${r}.pin2`, to: `${shifter}.${a}` }), jsx("trace", { from: `${shifter}.${b}`, to: `U1.GPIO${i}` })] }, r));
}), jsx("pinheader", { name: "J2", pinCount: 20, pitch: "2.54mm", gender: "male", doubleRow: true, footprint: "pinrow20_rows2", pinLabels: [
"CH0", "CH1", "CH2", "CH3", "CH4", "CH5", "CH6", "CH7",
"CH8", "CH9", "CH10", "CH11", "CH12", "CH13", "CH14", "CH15",
"GND1", "GND2", "GND3", "GND4",
], schWidth: 0.58, schHeight: 4.2, schFacingDirection: "right", pcbX: 0, pcbY: -14.4, pcbRotation: 0, schSheetName: "probe", schSectionName: "probe_hdr", schX: -11, schY: 0 }), jsx("trace", { from: "J1.VBUS1", to: "net.VBUS" }), jsx("trace", { from: "J1.VBUS2", to: "net.VBUS" }), jsx("trace", { from: "J1.GND1", to: "net.GND" }), jsx("trace", { from: "J1.GND2", to: "net.GND" }), jsx("trace", { from: "J1.SHELL1", to: "net.GND" }), jsx("trace", { from: "J1.SHELL2", to: "net.GND" }), jsx("trace", { from: "J1.CC1", to: "R1.pin1" }), jsx("trace", { from: "R1.pin2", to: "net.GND" }), jsx("trace", { from: "J1.CC2", to: "R2.pin1" }), jsx("trace", { from: "R2.pin2", to: "net.GND" }), jsx("trace", { from: "J1.DP1", to: "net.USB_DP_C" }), jsx("trace", { from: "J1.DP2", to: "net.USB_DP_C" }), jsx("trace", { from: "J1.DM1", to: "net.USB_DM_C" }), jsx("trace", { from: "J1.DM2", to: "net.USB_DM_C" }), jsx("trace", { from: "net.USB_DP_C", to: "D2.pin1" }), jsx("trace", { from: "net.USB_DM_C", to: "D2.pin2" }), jsx("trace", { from: "D2.pin3", to: "net.GND" }), jsx("trace", { from: "net.USB_DP_C", to: "R3.pin1" }), jsx("trace", { from: "R3.pin2", to: "net.USB_DP" }), jsx("trace", { from: "net.USB_DM_C", to: "R4.pin1" }), jsx("trace", { from: "R4.pin2", to: "net.USB_DM" }), jsx("trace", { from: "net.USB_DP", to: "U1.USB_DP" }), jsx("trace", { from: "net.USB_DM", to: "U1.USB_DM" }), jsx("trace", { from: "net.VBUS", to: "C1.pin1" }), jsx("trace", { from: "C1.pin2", to: "net.GND" }), jsx("trace", { from: "net.VBUS", to: "C2.pin1" }), jsx("trace", { from: "C2.pin2", to: "net.GND" }), jsx("trace", { from: "net.VBUS", to: "U5.VIN" }), jsx("trace", { from: "U5.EN", to: "net.VBUS" }), jsx("trace", { from: "U5.GND", to: "net.GND" }), jsx("trace", { from: "U5.VOUT", to: "net.V3_3" }), jsx("trace", { from: "net.V3_3", to: "C3.pin1" }), jsx("trace", { from: "C3.pin2", to: "net.GND" }), jsx("trace", { from: "net.V3_3", to: "C4.pin1" }), jsx("trace", { from: "C4.pin2", to: "net.GND" }), jsx("trace", { from: "J3.V3_3", to: "net.V3_3" }), jsx("trace", { from: "J3.VREF", to: "net.VREF" }), jsx("trace", { from: "J3.VREF_EXT", to: "net.VREF_EXT" }), jsx("trace", { from: "J3.GND", to: "net.GND" }), jsx("trace", { from: "net.VREF", to: "C5.pin1" }), jsx("trace", { from: "C5.pin2", to: "net.GND" }), jsx("trace", { from: "net.VREF_EXT", to: "C25.pin1" }), jsx("trace", { from: "C25.pin2", to: "net.GND" }), jsx("trace", { from: "U1.IOVDD1", to: "net.V3_3" }), jsx("trace", { from: "U1.IOVDD2", to: "net.V3_3" }), jsx("trace", { from: "U1.IOVDD3", to: "net.V3_3" }), jsx("trace", { from: "U1.IOVDD4", to: "net.V3_3" }), jsx("trace", { from: "U1.IOVDD5", to: "net.V3_3" }), jsx("trace", { from: "U1.IOVDD6", to: "net.V3_3" }), jsx("trace", { from: "U1.VREG_IN", to: "net.V3_3" }), jsx("trace", { from: "U1.USB_VDD", to: "net.V3_3" }), jsx("trace", { from: "U1.ADC_AVDD", to: "net.V3_3" }), jsx("trace", { from: "U1.GND", to: "net.GND" }), jsx("trace", { from: "U1.TESTEN", to: "net.GND" }), jsx("trace", { from: "U1.VREG_VOUT", to: "net.V1_1" }), jsx("trace", { from: "U1.DVDD1", to: "net.V1_1" }), jsx("trace", { from: "U1.DVDD2", to: "net.V1_1" }), jsx("trace", { from: "net.V3_3", to: "C6.pin1" }), jsx("trace", { from: "C6.pin2", to: "net.GND" }), jsx("trace", { from: "net.V3_3", to: "C7.pin1" }), jsx("trace", { from: "C7.pin2", to: "net.GND" }), jsx("trace", { from: "net.V3_3", to: "C8.pin1" }), jsx("trace", { from: "C8.pin2", to: "net.GND" }), jsx("trace", { from: "net.V3_3", to: "C9.pin1" }), jsx("trace", { from: "C9.pin2", to: "net.GND" }), jsx("trace", { from: "net.V3_3", to: "C10.pin1" }), jsx("trace", { from: "C10.pin2", to: "net.GND" }), jsx("trace", { from: "net.V3_3", to: "C11.pin1" }), jsx("trace", { from: "C11.pin2", to: "net.GND" }), jsx("trace", { from: "net.V3_3", to: "C12.pin1" }), jsx("trace", { from: "C12.pin2", to: "net.GND" }), jsx("trace", { from: "net.V3_3", to: "C13.pin1" }), jsx("trace", { from: "C13.pin2", to: "net.GND" }), jsx("trace", { from: "net.V3_3", to: "C14.pin1" }), jsx("trace", { from: "C14.pin2", to: "net.GND" }), jsx("trace", { from: "net.V3_3", to: "C15.pin1" }), jsx("trace", { from: "C15.pin2", to: "net.GND" }), jsx("trace", { from: "net.V3_3", to: "C16.pin1" }), jsx("trace", { from: "C16.pin2", to: "net.GND" }), jsx("trace", { from: "net.V1_1", to: "C17.pin1" }), jsx("trace", { from: "C17.pin2", to: "net.GND" }), jsx("trace", { from: "U1.XIN", to: "net.XIN" }), jsx("trace", { from: "net.XIN", to: "X1.pin1" }), jsx("trace", { from: "U1.XOUT", to: "net.XOUT" }), jsx("trace", { from: "net.XOUT", to: "R21.pin1" }), jsx("trace", { from: "R21.pin2", to: "net.XOUT_XTAL" }), jsx("trace", { from: "net.XOUT_XTAL", to: "X1.pin2" }), jsx("trace", { from: "net.XIN", to: "C19.pin1" }), jsx("trace", { from: "C19.pin2", to: "net.GND" }), jsx("trace", { from: "net.XOUT_XTAL", to: "C20.pin1" }), jsx("trace", { from: "C20.pin2", to: "net.GND" }), jsx("trace", { from: "U1.QSPI_SS", to: "net.QSPI_SS" }), jsx("trace", { from: "U1.QSPI_SCLK", to: "net.QSPI_SCLK" }), jsx("trace", { from: "U1.QSPI_SD0", to: "net.QSPI_SD0" }), jsx("trace", { from: "U1.QSPI_SD1", to: "net.QSPI_SD1" }), jsx("trace", { from: "U1.QSPI_SD2", to: "net.QSPI_SD2" }), jsx("trace", { from: "U1.QSPI_SD3", to: "net.QSPI_SD3" }), jsx("trace", { from: "net.QSPI_SS", to: "U2.CS" }), jsx("trace", { from: "net.QSPI_SCLK", to: "U2.CLK" }), jsx("trace", { from: "net.QSPI_SD0", to: "U2.DI" }), jsx("trace", { from: "net.QSPI_SD1", to: "U2.DO" }), jsx("trace", { from: "net.QSPI_SD2", to: "U2.WP" }), jsx("trace", { from: "net.QSPI_SD3", to: "U2.HOLD" }), jsx("trace", { from: "net.V3_3", to: "U2.VCC" }), jsx("trace", { from: "U2.GND", to: "net.GND" }), jsx("trace", { from: "net.V3_3", to: "C18.pin1" }), jsx("trace", { from: "C18.pin2", to: "net.GND" }), jsx("trace", { from: "net.V3_3", to: "R23.pin1" }), jsx("trace", { from: "R23.pin2", to: "net.RUN" }), jsx("trace", { from: "net.RUN", to: "U1.RUN" }), jsx("trace", { from: "net.RUN", to: "SW2.pin1" }), jsx("trace", { from: "SW2.pin2", to: "net.GND" }), jsx("trace", { from: "SW2.pin3", to: "net.RUN" }), jsx("trace", { from: "SW2.pin4", to: "net.GND" }), jsx("trace", { from: "net.QSPI_SS", to: "SW1.pin1" }), jsx("trace", { from: "SW1.pin2", to: "net.GND" }), jsx("trace", { from: "SW1.pin3", to: "net.QSPI_SS" }), jsx("trace", { from: "SW1.pin4", to: "net.GND" }), jsx("trace", { from: "U1.GPIO25", to: "R22.pin1" }), jsx("trace", { from: "R22.pin2", to: "net.LED_A" }), jsx("trace", { from: "net.LED_A", to: "D1.left" }), jsx("trace", { from: "D1.right", to: "net.GND" }), jsx("trace", { from: "U3.VCCA", to: "net.VREF" }), jsx("trace", { from: "U3.VCCB", to: "net.V3_3" }), jsx("trace", { from: "U3.OE", to: "net.VREF" }), jsx("trace", { from: "U3.GND", to: "net.GND" }), jsx("trace", { from: "U4.VCCA", to: "net.VREF" }), jsx("trace", { from: "U4.VCCB", to: "net.V3_3" }), jsx("trace", { from: "U4.OE", to: "net.VREF" }), jsx("trace", { from: "U4.GND", to: "net.GND" }), jsx("trace", { from: "net.VREF", to: "C21.pin1" }), jsx("trace", { from: "C21.pin2", to: "net.GND" }), jsx("trace", { from: "net.V3_3", to: "C22.pin1" }), jsx("trace", { from: "C22.pin2", to: "net.GND" }), jsx("trace", { from: "net.VREF", to: "C23.pin1" }), jsx("trace", { from: "C23.pin2", to: "net.GND" }), jsx("trace", { from: "net.V3_3", to: "C24.pin1" }), jsx("trace", { from: "C24.pin2", to: "net.GND" }), jsx("trace", { from: "J2.GND1", to: "net.GND" }), jsx("trace", { from: "J2.GND2", to: "net.GND" }), jsx("trace", { from: "J2.GND3", to: "net.GND" }), jsx("trace", { from: "J2.GND4", to: "net.GND" })] }));
export { index_circuit as default };