Hardware netlist: the whole board, generated and checked

hardware/netlist/build_netlist.py defines every part and connection
(SPEC 0.3) and writes a KiCad netlist, a readable net list and a JLC
parts list with LCSC numbers. It refuses to write if a pin is left
unaccounted for, a net has one pin or two outputs, an RS-232 line lacks
one driver and one receiver, or a power pin is off a supply; with KiCad
library checkouts it also checks pin names/numbers against KiCad's
symbols and pads against the footprints. The two RS-232 chips' pin
tables come from their datasheets (KiCad has no symbols for them).

81 parts (69 fitted, 6 LEDs + resistors DNP), 82 nets. Adds a 10k RUN
pull-up. Not yet imported into KiCad (not available here).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013PRsUCpxazyipPn5UGGkF8
This commit is contained in:
Claude committed 2026-10-17 09:15:47 +00:00
1 parent 4e4b9e865a
commit 60fd087dee
6 files changed
+1380 -2

No files matched your search

+3 -2
View File
@@ -141,7 +141,7 @@ RS-232 charge pumps.
| USB_DP / USB_DM | 27 Ω series each, close to the RP2040 |
| QSPI_SS | to flash CS; to the BOOTSEL button through 1 kΩ (button to GND) |
| QSPI SD0–3, SCLK | straight to flash; 100 nF on flash VCC |
| RUN | RESET button to GND (RUN has an internal pull-up) |
| RUN | RESET button to GND, 10 kΩ pull-up to 3V3 (adds noise margin to the internal one) |
| TESTEN | to GND |
| SWCLK / SWDIO | test pads (plus GND, 3V3) |
| Center pad | GND, paste in a grid, many vias |
@@ -504,7 +504,8 @@ The hood is the MH Connectors **MHDPPK25-K** (LCSC C22372846):
SSOP-28 adapter boards, wired as §4.5. Prove the role detection, the
driver swing with both chips on the bus, and both line mappings with
dmodem-android (DCE) and a real modem (DTE).
3. Schematic and 4-layer layout in KiCad.
3. Netlist: done, `hardware/netlist/` (generated and checked). Next: the
4-layer layout in KiCad, and a schematic if wanted.
4. Firmware v1 (§5).
5. App: read CDC `SERIAL_STATE`; add the pico-serial options.
6. Order 5 boards. Bring-up: 3V3, 1V1, crystal, enumeration, UF2, loopback
+91
View File
@@ -0,0 +1,91 @@
# pico-serial hardware
`netlist/build_netlist.py` defines every part and every connection on the
board. The netlist, the readable net list and the JLC parts list are all
generated from it, so change the script, not the outputs.
| File | What it is |
|---|---|
| `netlist/build_netlist.py` | The circuit: parts, nets, the checks |
| `netlist/pico-serial.net` | KiCad netlist (generated) |
| `netlist/NETLIST.md` | Every net and every part, readable (generated) |
| `netlist/bom-jlc.csv` | JLC assembly parts list with LCSC numbers (generated) |
## Regenerate
```sh
cd hardware/netlist
python3 build_netlist.py # checks + writes the outputs
```
To also check every pin against KiCad's own libraries, point it at
checkouts of the official symbol and footprint libraries:
```sh
git clone --depth 1 https://gitlab.com/kicad/libraries/kicad-symbols.git
git clone --depth 1 https://gitlab.com/kicad/libraries/kicad-footprints.git
python3 build_netlist.py --kicad-sym kicad-symbols --kicad-fp kicad-footprints
```
It stops with an error, and writes nothing, if:
- a pin is neither connected nor listed as deliberately open;
- a net has only one pin;
- a net has two outputs;
- an RS-232 line doesn't have exactly one driver and one receiver;
- a power input isn't on a supply net;
- with the KiCad checkouts: a pin number or name differs from KiCad's
symbol, or a footprint lacks a pad for a pin.
## What's in it
The circuit follows `../SPEC.md` (draft 0.3): §4.2–4.8 for the parts and
§4.6 for the GPIO map.
- **Power and USB:**
- USB-C (HRO TYPE-C-31-M-12) with its own 5.1 kΩ on each CC pin;
- 0.5 A PTC fuse, 5 V TVS diode, USBLC6 ESD protection;
- AP2112K 3.3 V regulator, VBUS ÷2 sense into GP29.
- **RP2040:**
- Raspberry Pi's minimal design: per-pin decoupling, 12 MHz crystal
with 15 pF caps and 1 kΩ on XOUT, 27 Ω USB series resistors;
- W25Q128JV flash;
- BOOTSEL and RESET buttons, 10 kΩ RUN pull-up.
- **RS-232:**
- SP3238E (chip A, DCE) and MAX3243E (chip B, DTE) on the same 8 DB25
pins, so every line has one driver and one receiver;
- each chip has 220 nF + 1 µF charge-pump caps and 1 µF + 100 nF on VCC;
- both chips are held off by 100 kΩ pull-downs until firmware chooses
a role.
- **DB25:** solder-cup female (MH Connectors MHDB25SS). Pin 7 to GND, pin
1 to GND through a 0 Ω link. All other unused pins stay open.
- **Optional:** six status LEDs on GP22–27, not fitted (DNP).
- **Test pads:** VBUS, 3V3, 1V1, GND, SWCLK, SWDIO, RUN, GP28, and the TX/RX
lines of both chips.
The two RS-232 chips have no KiCad symbol. Their pin tables are copied
from the datasheets (MaxLinear SP3238E rev 1.0.1; TI MAX3243E SLLS657E,
Table 6-2) and marked as such in the script. Every other part's pins
match KiCad's library symbols.
## Using it in KiCad
1. Create a project and open the PCB editor.
2. **File → Import → Netlist…**, choose `pico-serial.net`, then **Update
PCB**. The footprints come from KiCad's standard libraries.
3. LCSC numbers are in each footprint's `LCSC` field; the DNP field marks
the LEDs.
The import hasn't been tried in KiCad yet: KiCad couldn't be installed
where this was made. The file follows KiCad's netlist format (version
"E") and parses cleanly, but expect to fix small issues on the first
import.
There is no schematic yet. This netlist goes straight to layout. A
generated KiCad schematic can come next if wanted.
## Before layout
- Lock the board outline from the sample connector and hood (SPEC §7, §9).
- Bench test the SP3238E's leakage while shut down (SPEC §8). If it fails,
the DCE chip changes to the TI TRS3238E (TSSOP-28) and its footprint
changes too.
+200
View File
@@ -0,0 +1,200 @@
# pico-serial netlist
Generated by `build_netlist.py`; edit that script, not this file.
81 parts, 82 nets. DNP = not fitted by default.
## Nets
| Net | Pins |
|---|---|
| `+1V1` | C13.1, C14.1, C15.1, TP3.1 (1), U1.23 (DVDD), U1.45 (VREG_VOUT), U1.50 (DVDD) |
| `+3V3` | C3.1, C4.1, C5.1, C6.1, C7.1, C8.1, C9.1, C10.1, C11.1, C12.1, C18.1, C23.1, C24.1, C29.1, C30.1, R10.1, TP2.1 (1), U1.1 (IOVDD), U1.10 (IOVDD), U1.22 (IOVDD), U1.33 (IOVDD), U1.42 (IOVDD), U1.43 (ADC_AVDD), U1.44 (VREG_VIN), U1.48 (USB_VDD), U1.49 (IOVDD), U2.8 (VCC), U3.5 (VOUT), U5.26 (VCC), U6.26 (VCC) |
| `A_CTS` | U1.4 (GPIO2), U5.20 (R2OUT) |
| `A_DCD` | U1.7 (GPIO5), U5.19 (T4IN) |
| `A_DSR` | U1.6 (GPIO4), U5.22 (T3IN) |
| `A_DTR` | U1.9 (GPIO7), U5.18 (R3OUT) |
| `A_R1OUTB` | U1.30 (GPIO19), U5.16 (R1OUTB) |
| `A_RI` | U1.8 (GPIO6), U5.17 (T5IN) |
| `A_RTS` | U1.5 (GPIO3), U5.23 (T2IN) |
| `A_RX` | TP10.1 (1), U1.3 (GPIO1), U5.21 (R1OUT) |
| `A_SHDN_N` | R12.1, U1.27 (GPIO16), U5.14 (~{SHUTDOWN}) |
| `A_STATUS` | U1.31 (GPIO20), U5.15 (STATUS) |
| `A_TX` | TP9.1 (1), U1.2 (GPIO0), U5.24 (T1IN) |
| `BOOTSEL_SW` | R9.2, SW1.1 (1) |
| `B_CTS` | U1.17 (GPIO14), U6.18 (ROUT2) |
| `B_DCD` | U1.13 (GPIO10), U6.16 (ROUT4) |
| `B_DSR` | U1.12 (GPIO9), U6.17 (ROUT3) |
| `B_DTR` | U1.11 (GPIO8), U6.12 (DIN3) |
| `B_FORCEOFF_N` | R13.1, U1.28 (GPIO17), U6.22 (~{FORCEOFF}) |
| `B_INVALID` | U1.32 (GPIO21), U6.21 (INVALID) |
| `B_RI` | U1.14 (GPIO11), U6.15 (ROUT5) |
| `B_RTS` | U1.18 (GPIO15), U6.13 (DIN2) |
| `B_RX` | TP12.1 (1), U1.16 (GPIO13), U6.19 (ROUT1) |
| `B_TX` | TP11.1 (1), U1.15 (GPIO12), U6.14 (DIN1) |
| `CC1` | J1.A5 (CC1), R1.1 |
| `CC2` | J1.B5 (CC2), R2.1 |
| `CPA_C1M` | C19.2, U5.25 (C1-) |
| `CPA_C1P` | C19.1, U5.28 (C1+) |
| `CPA_C2M` | C20.2, U5.3 (C2-) |
| `CPA_C2P` | C20.1, U5.1 (C2+) |
| `CPA_VM` | C22.1, U5.4 (V-) |
| `CPA_VP` | C21.1, U5.27 (V+) |
| `CPB_C1M` | C25.2, U6.24 (C1-) |
| `CPB_C1P` | C25.1, U6.28 (C1+) |
| `CPB_C2M` | C26.2, U6.2 (C2-) |
| `CPB_C2P` | C26.1, U6.1 (C2+) |
| `CPB_VM` | C28.1, U6.3 (V-) |
| `CPB_VP` | C27.1, U6.27 (V+) |
| `DB25_FG` | J2.1 (1), R11.1 |
| `GND` | C1.2, C2.2, C3.2, C4.2, C5.2, C6.2, C7.2, C8.2, C9.2, C10.2, C11.2, C12.2, C13.2, C14.2, C15.2, C16.2, C17.2, C18.2, C21.2, C22.2, C23.2, C24.2, C27.2, C28.2, C29.2, C30.2, D1.2 (A), D2.1 (K), D3.1 (K), D4.1 (K), D5.1 (K), D6.1 (K), D7.1 (K), J1.A1 (GND), J1.A12 (GND), J1.B1 (GND), J1.B12 (GND), J2.7 (7), R1.2, R2.2, R3.2, R5.2, R11.2, R12.2, R13.2, R14.2, SW1.2 (2), SW2.2 (2), TP4.1 (1), U1.19 (TESTEN), U1.57 (GND), U2.4 (GND), U3.2 (GND), U4.2 (GND), U5.2 (GND), U6.25 (GND), Y1.2 (G), Y1.4 (G) |
| `GP28` | TP8.1 (1), U1.40 (GPIO28/ADC2) |
| `LED_CD` | R17.1, U1.36 (GPIO24) |
| `LED_CD_A` | D4.2 (A), R17.2 |
| `LED_PWR` | R15.1, U1.34 (GPIO22) |
| `LED_PWR_A` | D2.2 (A), R15.2 |
| `LED_RD` | R19.1, U1.38 (GPIO26/ADC0) |
| `LED_RD_A` | D6.2 (A), R19.2 |
| `LED_RI` | R20.1, U1.39 (GPIO27/ADC1) |
| `LED_RI_A` | D7.2 (A), R20.2 |
| `LED_SD` | R18.1, U1.37 (GPIO25) |
| `LED_SD_A` | D5.2 (A), R18.2 |
| `LED_TR` | R16.1, U1.35 (GPIO23) |
| `LED_TR_A` | D3.2 (A), R16.2 |
| `QSPI_SCLK` | U1.52 (QSPI_SCLK), U2.6 (CLK) |
| `QSPI_SD0` | U1.53 (QSPI_SD0), U2.5 (DI/IO_{0}) |
| `QSPI_SD1` | U1.55 (QSPI_SD1), U2.2 (DO/IO_{1}) |
| `QSPI_SD2` | U1.54 (QSPI_SD2), U2.3 (~{WP}/IO_{2}) |
| `QSPI_SD3` | U1.51 (QSPI_SD3), U2.7 (~{HOLD}/~{RESET}/IO_{3}) |
| `QSPI_SS` | R9.1, U1.56 (~{QSPI_SS}), U2.1 (~{CS}) |
| `RS_CTS` | J2.5 (5), U5.6 (T2OUT), U6.5 (RIN2) |
| `RS_DCD` | J2.8 (8), U5.10 (T4OUT), U6.7 (RIN4) |
| `RS_DSR` | J2.6 (6), U5.7 (T3OUT), U6.6 (RIN3) |
| `RS_DTR` | J2.20 (P20), U5.11 (R3IN), U6.11 (DOUT3) |
| `RS_FORCEON` | R14.1, U1.29 (GPIO18), U5.13 (ONLINE), U6.23 (FORCEON) |
| `RS_RI` | J2.22 (P22), U5.12 (T5OUT), U6.8 (RIN5) |
| `RS_RTS` | J2.4 (4), U5.9 (R2IN), U6.10 (DOUT2) |
| `RS_RXD` | J2.3 (3), U5.5 (T1OUT), U6.4 (RIN1) |
| `RS_TXD` | J2.2 (2), U5.8 (R1IN), U6.9 (DOUT1) |
| `RUN` | R10.2, SW2.1 (1), TP7.1 (1), U1.26 (RUN) |
| `SWCLK` | TP5.1 (1), U1.24 (SWCLK) |
| `SWDIO` | TP6.1 (1), U1.25 (SWDIO) |
| `USB_CONN_DM` | J1.A7 (D-), J1.B7 (D-), R7.1, U4.3 (I/O2), U4.4 (I/O2) |
| `USB_CONN_DP` | J1.A6 (D+), J1.B6 (D+), R6.1, U4.1 (I/O1), U4.6 (I/O1) |
| `USB_DM` | R7.2, U1.46 (USB_DM) |
| `USB_DP` | R6.2, U1.47 (USB_DP) |
| `USB_SHIELD` | C1.1, J1.SH (SHIELD), R3.1 |
| `VBUS` | C2.1, D1.1 (K), F1.2, R4.1, TP1.1 (1), U3.1 (VIN), U3.3 (EN), U4.5 (VBUS) |
| `VBUS_IN` | F1.1, J1.A4 (VBUS), J1.A9 (VBUS), J1.B4 (VBUS), J1.B9 (VBUS) |
| `VBUS_SENSE` | R4.2, R5.1, U1.41 (GPIO29/ADC3) |
| `XIN` | C16.1, U1.20 (XIN), Y1.1 (1) |
| `XOUT` | R8.1, U1.21 (XOUT) |
| `XTAL_OUT` | C17.1, R8.2, Y1.3 (3) |
## Parts
| Ref | Value | LCSC | Footprint | Note |
|---|---|---|---|---|
| C1 | 4.7nF | C1538 | `Capacitor_SMD:C_0402_1005Metric` | shell to GND, RF |
| C2 | 10uF | C19702 | `Capacitor_SMD:C_0603_1608Metric` | LDO input |
| C3 | 10uF | C19702 | `Capacitor_SMD:C_0603_1608Metric` | LDO output, 3V3 bulk |
| C4 | 100nF | C1525 | `Capacitor_SMD:C_0402_1005Metric` | IOVDD pin 1 |
| C5 | 100nF | C1525 | `Capacitor_SMD:C_0402_1005Metric` | IOVDD pin 10 |
| C6 | 100nF | C1525 | `Capacitor_SMD:C_0402_1005Metric` | IOVDD pin 22 |
| C7 | 100nF | C1525 | `Capacitor_SMD:C_0402_1005Metric` | IOVDD pin 33 |
| C8 | 100nF | C1525 | `Capacitor_SMD:C_0402_1005Metric` | IOVDD pin 42 |
| C9 | 100nF | C1525 | `Capacitor_SMD:C_0402_1005Metric` | IOVDD pin 49 |
| C10 | 100nF | C1525 | `Capacitor_SMD:C_0402_1005Metric` | USB_VDD |
| C11 | 100nF | C1525 | `Capacitor_SMD:C_0402_1005Metric` | ADC_AVDD |
| C12 | 1uF | C52923 | `Capacitor_SMD:C_0402_1005Metric` | VREG_VIN |
| C13 | 1uF | C52923 | `Capacitor_SMD:C_0402_1005Metric` | VREG_VOUT |
| C14 | 100nF | C1525 | `Capacitor_SMD:C_0402_1005Metric` | DVDD pin 23 |
| C15 | 100nF | C1525 | `Capacitor_SMD:C_0402_1005Metric` | DVDD pin 50 |
| C16 | 15pF | C1548 | `Capacitor_SMD:C_0402_1005Metric` | crystal load |
| C17 | 15pF | C1548 | `Capacitor_SMD:C_0402_1005Metric` | crystal load |
| C18 | 100nF | C1525 | `Capacitor_SMD:C_0402_1005Metric` | flash VCC |
| C19 | 220nF | C16772 | `Capacitor_SMD:C_0402_1005Metric` | chip A C1 flying |
| C20 | 1uF | C15849 | `Capacitor_SMD:C_0603_1608Metric` | chip A C2 flying |
| C21 | 1uF | C15849 | `Capacitor_SMD:C_0603_1608Metric` | chip A V+ reservoir |
| C22 | 1uF | C15849 | `Capacitor_SMD:C_0603_1608Metric` | chip A V- reservoir |
| C23 | 1uF | C52923 | `Capacitor_SMD:C_0402_1005Metric` | chip A VCC |
| C24 | 100nF | C1525 | `Capacitor_SMD:C_0402_1005Metric` | chip A VCC |
| C25 | 220nF | C16772 | `Capacitor_SMD:C_0402_1005Metric` | chip B C1 flying |
| C26 | 1uF | C15849 | `Capacitor_SMD:C_0603_1608Metric` | chip B C2 flying |
| C27 | 1uF | C15849 | `Capacitor_SMD:C_0603_1608Metric` | chip B V+ reservoir |
| C28 | 1uF | C15849 | `Capacitor_SMD:C_0603_1608Metric` | chip B V- reservoir |
| C29 | 1uF | C52923 | `Capacitor_SMD:C_0402_1005Metric` | chip B VCC |
| C30 | 100nF | C1525 | `Capacitor_SMD:C_0402_1005Metric` | chip B VCC |
| D1 | SMF5.0A | C151296 | `Diode_SMD:D_SOD-123F` | 5 V TVS, unidirectional |
| D2 | LED_PWR | C2286 | `LED_SMD:LED_0603_1608Metric` | PWR status LED, optional; DNP |
| D3 | LED_TR | C2286 | `LED_SMD:LED_0603_1608Metric` | TR status LED, optional; DNP |
| D4 | LED_CD | C2286 | `LED_SMD:LED_0603_1608Metric` | CD status LED, optional; DNP |
| D5 | LED_SD | C2286 | `LED_SMD:LED_0603_1608Metric` | SD status LED, optional; DNP |
| D6 | LED_RD | C2286 | `LED_SMD:LED_0603_1608Metric` | RD status LED, optional; DNP |
| D7 | LED_RI | C2286 | `LED_SMD:LED_0603_1608Metric` | RI status LED, optional; DNP |
| F1 | 0.5A | C163512 | `Fuse:Fuse_1206_3216Metric` | Littelfuse 1206L050YR PTC |
| J1 | USB_C | C165948 | `Connector_USB:USB_C_Receptacle_HRO_TYPE-C-31-M-12` | HRO TYPE-C-31-M-12 |
| J2 | DB25_Female | C19601171 | `Connector_Dsub:DSUB-25_Socket_EdgeMount_P2.77mm` | MH Connectors MHDB25SS, solder cups straddling the board edge; hand-soldered |
| R1 | 5.1k | C25905 | `Resistor_SMD:R_0402_1005Metric` | CC1 Rd: separate resistor per CC pin |
| R2 | 5.1k | C25905 | `Resistor_SMD:R_0402_1005Metric` | CC2 Rd |
| R3 | 1M | C26083 | `Resistor_SMD:R_0402_1005Metric` | shell bleed |
| R4 | 100k | C25741 | `Resistor_SMD:R_0402_1005Metric` | VBUS divider top |
| R5 | 100k | C25741 | `Resistor_SMD:R_0402_1005Metric` | VBUS divider bottom |
| R6 | 27R | C25100 | `Resistor_SMD:R_0402_1005Metric` | USB D+ series |
| R7 | 27R | C25100 | `Resistor_SMD:R_0402_1005Metric` | USB D- series |
| R8 | 1k | C11702 | `Resistor_SMD:R_0402_1005Metric` | crystal drive limit |
| R9 | 1k | C11702 | `Resistor_SMD:R_0402_1005Metric` | BOOTSEL |
| R10 | 10k | C25744 | `Resistor_SMD:R_0402_1005Metric` | RUN pull-up; RP2040 has a weak internal one, this adds noise margin |
| R11 | 0R | C17168 | `Resistor_SMD:R_0402_1005Metric` | frame ground to GND; leave off to float pin 1 |
| R12 | 100k | C25741 | `Resistor_SMD:R_0402_1005Metric` | chip A off until firmware decides |
| R13 | 100k | C25741 | `Resistor_SMD:R_0402_1005Metric` | chip B off until firmware decides |
| R14 | 100k | C25741 | `Resistor_SMD:R_0402_1005Metric` | auto power-down on until firmware decides |
| R15 | 1k | C11702 | `Resistor_SMD:R_0402_1005Metric` | PWR LED current; DNP |
| R16 | 1k | C11702 | `Resistor_SMD:R_0402_1005Metric` | TR LED current; DNP |
| R17 | 1k | C11702 | `Resistor_SMD:R_0402_1005Metric` | CD LED current; DNP |
| R18 | 1k | C11702 | `Resistor_SMD:R_0402_1005Metric` | SD LED current; DNP |
| R19 | 1k | C11702 | `Resistor_SMD:R_0402_1005Metric` | RD LED current; DNP |
| R20 | 1k | C11702 | `Resistor_SMD:R_0402_1005Metric` | RI LED current; DNP |
| SW1 | BOOTSEL | C720477 | `Button_Switch_SMD:SW_SPST_TS-1088-xR020` | XUNPU TS-1088-AR02016 |
| SW2 | RESET | C720477 | `Button_Switch_SMD:SW_SPST_TS-1088-xR020` | XUNPU TS-1088-AR02016 |
| TP1 | VBUS | | `TestPoint:TestPoint_Pad_D1.0mm` | |
| TP2 | 3V3 | | `TestPoint:TestPoint_Pad_D1.0mm` | |
| TP3 | 1V1 | | `TestPoint:TestPoint_Pad_D1.0mm` | |
| TP4 | GND | | `TestPoint:TestPoint_Pad_D1.0mm` | |
| TP5 | SWCLK | | `TestPoint:TestPoint_Pad_D1.0mm` | |
| TP6 | SWDIO | | `TestPoint:TestPoint_Pad_D1.0mm` | |
| TP7 | RUN | | `TestPoint:TestPoint_Pad_D1.0mm` | |
| TP8 | GP28 | | `TestPoint:TestPoint_Pad_D1.0mm` | |
| TP9 | A_TX | | `TestPoint:TestPoint_Pad_D1.0mm` | |
| TP10 | A_RX | | `TestPoint:TestPoint_Pad_D1.0mm` | |
| TP11 | B_TX | | `TestPoint:TestPoint_Pad_D1.0mm` | |
| TP12 | B_RX | | `TestPoint:TestPoint_Pad_D1.0mm` | |
| U1 | RP2040 | C2040 | `Package_DFN_QFN:QFN-56-1EP_7x7mm_P0.4mm_EP3.2x3.2mm` | |
| U2 | W25Q128JVS | C97521 | `Package_SO:SOIC-8_5.3x5.3mm_P1.27mm` | |
| U3 | AP2112K-3.3 | C51118 | `Package_TO_SOT_SMD:SOT-23-5` | |
| U4 | USBLC6-2SC6 | C7519 | `Package_TO_SOT_SMD:SOT-23-6` | |
| U5 | SP3238EEA | C49669 | `Package_SO:SSOP-28_5.3x10.2mm_P0.65mm` | MaxLinear SP3238EEA-L/TR, chip A, DCE |
| U6 | MAX3243EIDBR | C353887 | `Package_SO:SSOP-28_5.3x10.2mm_P0.65mm` | TI MAX3243EIDBR, chip B, DTE |
| Y1 | 12MHz | C20625731 | `Crystal:Crystal_SMD_3225-4Pin_3.2x2.5mm` | Abracon ABM8-272-T3 |
## Not connected (on purpose)
- J1.A8 (SBU1)
- J1.B8 (SBU2)
- J2.9 (9)
- J2.10 (10)
- J2.11 (11)
- J2.12 (12)
- J2.13 (13)
- J2.14 (P14)
- J2.15 (P15)
- J2.16 (P16)
- J2.17 (P17)
- J2.18 (P18)
- J2.19 (P19)
- J2.21 (P21)
- J2.23 (P23)
- J2.24 (P24)
- J2.25 (P25)
- U3.4 (NC)
- U6.20 (ROUT2B)
+27
View File
@@ -0,0 +1,27 @@
Comment,Designator,Footprint,LCSC Part #
4.7nF,"C1",C_0402_1005Metric,C1538
10uF,"C2,C3",C_0603_1608Metric,C19702
100nF,"C4,C5,C6,C7,C8,C9,C10,C11,C14,C15,C18,C24,C30",C_0402_1005Metric,C1525
1uF,"C12,C13,C23,C29",C_0402_1005Metric,C52923
15pF,"C16,C17",C_0402_1005Metric,C1548
220nF,"C19,C25",C_0402_1005Metric,C16772
1uF,"C20,C21,C22,C26,C27,C28",C_0603_1608Metric,C15849
SMF5.0A,"D1",D_SOD-123F,C151296
0.5A,"F1",Fuse_1206_3216Metric,C163512
USB_C,"J1",USB_C_Receptacle_HRO_TYPE-C-31-M-12,C165948
5.1k,"R1,R2",R_0402_1005Metric,C25905
1M,"R3",R_0402_1005Metric,C26083
100k,"R4,R5,R12,R13,R14",R_0402_1005Metric,C25741
27R,"R6,R7",R_0402_1005Metric,C25100
1k,"R8,R9",R_0402_1005Metric,C11702
10k,"R10",R_0402_1005Metric,C25744
0R,"R11",R_0402_1005Metric,C17168
BOOTSEL,"SW1",SW_SPST_TS-1088-xR020,C720477
RESET,"SW2",SW_SPST_TS-1088-xR020,C720477
RP2040,"U1",QFN-56-1EP_7x7mm_P0.4mm_EP3.2x3.2mm,C2040
W25Q128JVS,"U2",SOIC-8_5.3x5.3mm_P1.27mm,C97521
AP2112K-3.3,"U3",SOT-23-5,C51118
USBLC6-2SC6,"U4",SOT-23-6,C7519
SP3238EEA,"U5",SSOP-28_5.3x10.2mm_P0.65mm,C49669
MAX3243EIDBR,"U6",SSOP-28_5.3x10.2mm_P0.65mm,C353887
12MHz,"Y1",Crystal_SMD_3225-4Pin_3.2x2.5mm,C20625731
1 Comment Designator Footprint LCSC Part #
2 4.7nF C1 C_0402_1005Metric C1538
3 10uF C2,C3 C_0603_1608Metric C19702
4 100nF C4,C5,C6,C7,C8,C9,C10,C11,C14,C15,C18,C24,C30 C_0402_1005Metric C1525
5 1uF C12,C13,C23,C29 C_0402_1005Metric C52923
6 15pF C16,C17 C_0402_1005Metric C1548
7 220nF C19,C25 C_0402_1005Metric C16772
8 1uF C20,C21,C22,C26,C27,C28 C_0603_1608Metric C15849
9 SMF5.0A D1 D_SOD-123F C151296
10 0.5A F1 Fuse_1206_3216Metric C163512
11 USB_C J1 USB_C_Receptacle_HRO_TYPE-C-31-M-12 C165948
12 5.1k R1,R2 R_0402_1005Metric C25905
13 1M R3 R_0402_1005Metric C26083
14 100k R4,R5,R12,R13,R14 R_0402_1005Metric C25741
15 27R R6,R7 R_0402_1005Metric C25100
16 1k R8,R9 R_0402_1005Metric C11702
17 10k R10 R_0402_1005Metric C25744
18 0R R11 R_0402_1005Metric C17168
19 BOOTSEL SW1 SW_SPST_TS-1088-xR020 C720477
20 RESET SW2 SW_SPST_TS-1088-xR020 C720477
21 RP2040 U1 QFN-56-1EP_7x7mm_P0.4mm_EP3.2x3.2mm C2040
22 W25Q128JVS U2 SOIC-8_5.3x5.3mm_P1.27mm C97521
23 AP2112K-3.3 U3 SOT-23-5 C51118
24 USBLC6-2SC6 U4 SOT-23-6 C7519
25 SP3238EEA U5 SSOP-28_5.3x10.2mm_P0.65mm C49669
26 MAX3243EIDBR U6 SSOP-28_5.3x10.2mm_P0.65mm C353887
27 12MHz Y1 Crystal_SMD_3225-4Pin_3.2x2.5mm C20625731
+516
View File
@@ -0,0 +1,516 @@
#!/usr/bin/env python3
"""pico-serial netlist: every part and connection on the board, in one place.
Writes, next to this script:
pico-serial.net KiCad netlist (import into Pcbnew: File > Import > Netlist)
NETLIST.md the same nets, readable: by net and by part
bom-jlc.csv JLC assembly BOM (Comment, Designator, Footprint, LCSC)
Checks before writing (exit 1 on any error):
- every pin of every part is on a net or listed as not connected
- no net has fewer than two pins
- no net has two outputs driving it
- every RS-232 line has exactly one driver and one receiver
- every power input sits on a supply net
- with --kicad-sym/--kicad-fp: pin numbers and names match KiCad's
symbol, and every pin has a pad in the footprint
Spec: ../../SPEC.md (section numbers below refer to it).
"""
import argparse, datetime, os, re, sys, uuid
from collections import defaultdict
# ---------------------------------------------------------------------------
# Pin tables. RP2040, flash, LDO, USBLC6 and connectors are copied from
# KiCad's symbol library (checked with --kicad-sym). KiCad has no symbol for
# the two RS-232 chips; theirs come from the datasheets:
# SP3238E MaxLinear rev 1.0.1, pin description table
# MAX3243E TI SLLS657E, Table 6-2 (DB/DW/PW 28-pin)
# Pin types follow KiCad's names.
# ---------------------------------------------------------------------------
P, PI, PO, I, O, B, NC = "passive", "power_in", "power_out", "input", "output", "bidirectional", "no_connect"
RP2040 = {
"1": ("IOVDD", PI), "2": ("GPIO0", B), "3": ("GPIO1", B), "4": ("GPIO2", B), "5": ("GPIO3", B),
"6": ("GPIO4", B), "7": ("GPIO5", B), "8": ("GPIO6", B), "9": ("GPIO7", B), "10": ("IOVDD", P),
"11": ("GPIO8", B), "12": ("GPIO9", B), "13": ("GPIO10", B), "14": ("GPIO11", B), "15": ("GPIO12", B),
"16": ("GPIO13", B), "17": ("GPIO14", B), "18": ("GPIO15", B), "19": ("TESTEN", I), "20": ("XIN", I),
"21": ("XOUT", O), "22": ("IOVDD", P), "23": ("DVDD", PI), "24": ("SWCLK", I), "25": ("SWDIO", B),
"26": ("RUN", I), "27": ("GPIO16", B), "28": ("GPIO17", B), "29": ("GPIO18", B), "30": ("GPIO19", B),
"31": ("GPIO20", B), "32": ("GPIO21", B), "33": ("IOVDD", P), "34": ("GPIO22", B), "35": ("GPIO23", B),
"36": ("GPIO24", B), "37": ("GPIO25", B), "38": ("GPIO26/ADC0", B), "39": ("GPIO27/ADC1", B),
"40": ("GPIO28/ADC2", B), "41": ("GPIO29/ADC3", B), "42": ("IOVDD", P), "43": ("ADC_AVDD", PI),
"44": ("VREG_VIN", PI), "45": ("VREG_VOUT", PO), "46": ("USB_DM", B), "47": ("USB_DP", B),
"48": ("USB_VDD", PI), "49": ("IOVDD", P), "50": ("DVDD", P), "51": ("QSPI_SD3", B),
"52": ("QSPI_SCLK", O), "53": ("QSPI_SD0", B), "54": ("QSPI_SD2", B), "55": ("QSPI_SD1", B),
"56": ("~{QSPI_SS}", O), "57": ("GND", PI),
}
SP3238E = {
"1": ("C2+", P), "2": ("GND", PI), "3": ("C2-", P), "4": ("V-", P), "5": ("T1OUT", O),
"6": ("T2OUT", O), "7": ("T3OUT", O), "8": ("R1IN", I), "9": ("R2IN", I), "10": ("T4OUT", O),
"11": ("R3IN", I), "12": ("T5OUT", O), "13": ("ONLINE", I), "14": ("~{SHUTDOWN}", I),
"15": ("STATUS", O), "16": ("R1OUTB", O), # non-inverting R1 output, active in shutdown
"17": ("T5IN", I), "18": ("R3OUT", O), "19": ("T4IN", I), "20": ("R2OUT", O), "21": ("R1OUT", O),
"22": ("T3IN", I), "23": ("T2IN", I), "24": ("T1IN", I), "25": ("C1-", P), "26": ("VCC", PI),
"27": ("V+", P), "28": ("C1+", P),
}
MAX3243E = {
"1": ("C2+", P), "2": ("C2-", P), "3": ("V-", P), "4": ("RIN1", I), "5": ("RIN2", I),
"6": ("RIN3", I), "7": ("RIN4", I), "8": ("RIN5", I), "9": ("DOUT1", O), "10": ("DOUT2", O),
"11": ("DOUT3", O), "12": ("DIN3", I), "13": ("DIN2", I), "14": ("DIN1", I), "15": ("ROUT5", O),
"16": ("ROUT4", O), "17": ("ROUT3", O), "18": ("ROUT2", O), "19": ("ROUT1", O),
"20": ("ROUT2B", O), # always-active non-inverting RIN2 output
"21": ("INVALID", O), "22": ("~{FORCEOFF}", I), "23": ("FORCEON", I), "24": ("C1-", P),
"25": ("GND", PI), "26": ("VCC", PI), "27": ("V+", P), "28": ("C1+", P),
}
W25Q = {"1": ("~{CS}", I), "2": ("DO/IO_{1}", B), "3": ("~{WP}/IO_{2}", B), "4": ("GND", PI),
"5": ("DI/IO_{0}", B), "6": ("CLK", I), "7": ("~{HOLD}/~{RESET}/IO_{3}", B), "8": ("VCC", PI)}
AP2112K = {"1": ("VIN", PI), "2": ("GND", PI), "3": ("EN", I), "4": ("NC", NC), "5": ("VOUT", PO)}
USBLC6 = {"1": ("I/O1", P), "2": ("GND", P), "3": ("I/O2", P), "4": ("I/O2", P), "5": ("VBUS", P), "6": ("I/O1", P)}
USB_C16 = {"A1": ("GND", P), "A4": ("VBUS", P), "A5": ("CC1", B), "A6": ("D+", B), "A7": ("D-", B),
"A8": ("SBU1", B), "A9": ("VBUS", P), "A12": ("GND", P), "B1": ("GND", P), "B4": ("VBUS", P),
"B5": ("CC2", B), "B6": ("D+", B), "B7": ("D-", B), "B8": ("SBU2", B), "B9": ("VBUS", P),
"B12": ("GND", P), "SH": ("SHIELD", P)}
DB25F = {str(n): (str(n) if n <= 13 else f"P{n}", P) for n in range(1, 26)}
XTAL4 = {"1": ("1", P), "2": ("G", P), "3": ("3", P), "4": ("G", P)}
TWO = {"1": ("~", P), "2": ("~", P)}
DIODE = {"1": ("K", P), "2": ("A", P)}
SW = {"1": ("1", P), "2": ("2", P)}
TP = {"1": ("1", P)}
# KiCad library symbol for each pin table (lib, symbol); None = no KiCad symbol
SYMBOLS = {
id(RP2040): ("MCU_RaspberryPi", "RP2040"), id(W25Q): ("Memory_Flash", "W25Q128JVS"),
id(AP2112K): ("Regulator_Linear", "AP2112K-3.3"), id(USBLC6): ("Power_Protection", "USBLC6-2SC6"),
id(USB_C16): ("Connector", "USB_C_Receptacle_USB2.0_16P"), id(DB25F): ("Connector", "DB25_Socket"),
id(XTAL4): ("Device", "Crystal_GND24"), id(DIODE): None, id(SW): ("Switch", "SW_Push"),
id(TP): ("Connector", "TestPoint"), id(SP3238E): None, id(MAX3243E): None,
}
FP_R = "Resistor_SMD:R_0402_1005Metric"
FP_C = "Capacitor_SMD:C_0402_1005Metric"
FP_C6 = "Capacitor_SMD:C_0603_1608Metric"
# value -> (LCSC part, footprint); JLC "basic" parts unless noted
PASSIVES = {
"100nF": ("C1525", FP_C), "1uF": ("C52923", FP_C), "1uF 50V": ("C15849", FP_C6),
"220nF": ("C16772", FP_C), "10uF": ("C19702", FP_C6), "15pF": ("C1548", FP_C),
"4.7nF": ("C1538", FP_C), "27R": ("C25100", FP_R), # 27R is "extended"
"5.1k": ("C25905", FP_R), "1k": ("C11702", FP_R), "10k": ("C25744", FP_R),
"100k": ("C25741", FP_R), "1M": ("C26083", FP_R), "0R": ("C17168", FP_R),
}
# ---------------------------------------------------------------------------
parts = {} # ref -> dict
nets = defaultdict(list) # net -> [(ref, pin)]
noconnect = set() # (ref, pin)
counters = defaultdict(int)
def part(prefix, value, pins, footprint, lcsc="", note="", dnp=False, assembly="jlc", desc="", ref=None):
if ref is None:
counters[prefix] += 1
ref = f"{prefix}{counters[prefix]}"
assert ref not in parts, ref
parts[ref] = dict(ref=ref, value=value, pins=pins, footprint=footprint, lcsc=lcsc,
note=note, dnp=dnp, assembly=assembly, desc=desc)
return ref
def conn(net, *nodes):
"""conn("NET", ("U1","2"), ...) puts each (ref, pin) on NET."""
for ref, pin in nodes:
assert pin in parts[ref]["pins"], f"{ref} has no pin {pin}"
for n, members in nets.items():
if (ref, pin) in members:
raise SystemExit(f"{ref}.{pin} is already on {n}, can't also join {net}")
nets[net].append((ref, pin))
def passive(kind, value, a, b, note="", dnp=False):
"""A two-pin R or C between nets a and b."""
lcsc, fp = PASSIVES[value]
ref = part(kind, value.split()[0], TWO, fp, lcsc, note, dnp)
conn(a, (ref, "1"))
conn(b, (ref, "2"))
return ref
def nc(ref, *pins):
for p in pins:
noconnect.add((ref, p))
def tp(net, label):
ref = part("TP", label, TP, "TestPoint:TestPoint_Pad_D1.0mm", assembly="none")
conn(net, (ref, "1"))
# ===========================================================================
# The circuit
# ===========================================================================
GND, VBUS_IN, VBUS, V33, V11 = "GND", "VBUS_IN", "VBUS", "+3V3", "+1V1"
SUPPLIES = {GND, VBUS_IN, VBUS, V33, V11}
# --- §4.4 USB-C (UFP) -------------------------------------------------------
J1 = part("J", "USB_C", USB_C16, "Connector_USB:USB_C_Receptacle_HRO_TYPE-C-31-M-12", "C165948",
desc="HRO TYPE-C-31-M-12")
conn(GND, *[(J1, p) for p in ("A1", "A12", "B1", "B12")])
conn(VBUS_IN, *[(J1, p) for p in ("A4", "A9", "B4", "B9")])
conn("CC1", (J1, "A5"))
conn("CC2", (J1, "B5"))
conn("USB_CONN_DP", (J1, "A6"), (J1, "B6"))
conn("USB_CONN_DM", (J1, "A7"), (J1, "B7"))
conn("USB_SHIELD", (J1, "SH"))
nc(J1, "A8", "B8")
passive("R", "5.1k", "CC1", GND, "CC1 Rd: separate resistor per CC pin")
passive("R", "5.1k", "CC2", GND, "CC2 Rd")
passive("R", "1M", "USB_SHIELD", GND, "shell bleed")
passive("C", "4.7nF", "USB_SHIELD", GND, "shell to GND, RF")
# --- §4.3 power ---------------------------------------------------------------
F1 = part("F", "0.5A", TWO, "Fuse:Fuse_1206_3216Metric", "C163512", desc="Littelfuse 1206L050YR PTC")
conn(VBUS_IN, (F1, "1")); conn(VBUS, (F1, "2"))
D1 = part("D", "SMF5.0A", DIODE, "Diode_SMD:D_SOD-123F", "C151296", desc="5 V TVS, unidirectional")
conn(VBUS, (D1, "1")); conn(GND, (D1, "2"))
U_ESD = part("U", "USBLC6-2SC6", USBLC6, "Package_TO_SOT_SMD:SOT-23-6", "C7519", ref="U4")
conn("USB_CONN_DP", (U_ESD, "1"), (U_ESD, "6"))
conn("USB_CONN_DM", (U_ESD, "3"), (U_ESD, "4"))
conn(VBUS, (U_ESD, "5")); conn(GND, (U_ESD, "2"))
U_LDO = part("U", "AP2112K-3.3", AP2112K, "Package_TO_SOT_SMD:SOT-23-5", "C51118", ref="U3")
conn(VBUS, (U_LDO, "1"), (U_LDO, "3")); conn(GND, (U_LDO, "2")); conn(V33, (U_LDO, "5"))
nc(U_LDO, "4")
passive("C", "10uF", VBUS, GND, "LDO input")
passive("C", "10uF", V33, GND, "LDO output, 3V3 bulk")
passive("R", "100k", VBUS, "VBUS_SENSE", "VBUS divider top")
passive("R", "100k", "VBUS_SENSE", GND, "VBUS divider bottom")
# --- §4.2 RP2040 ------------------------------------------------------------
U1 = part("U", "RP2040", RP2040, "Package_DFN_QFN:QFN-56-1EP_7x7mm_P0.4mm_EP3.2x3.2mm", "C2040", ref="U1")
for p in ("1", "10", "22", "33", "42", "49"):
conn(V33, (U1, p))
passive("C", "100nF", V33, GND, f"IOVDD pin {p}")
conn(V33, (U1, "48")); passive("C", "100nF", V33, GND, "USB_VDD")
conn(V33, (U1, "43")); passive("C", "100nF", V33, GND, "ADC_AVDD")
conn(V33, (U1, "44")); passive("C", "1uF", V33, GND, "VREG_VIN")
conn(V11, (U1, "45"), (U1, "23"), (U1, "50"))
passive("C", "1uF", V11, GND, "VREG_VOUT")
passive("C", "100nF", V11, GND, "DVDD pin 23")
passive("C", "100nF", V11, GND, "DVDD pin 50")
conn(GND, (U1, "57"), (U1, "19")) # EP, TESTEN
conn("USB_DP", (U1, "47")); conn("USB_DM", (U1, "46"))
passive("R", "27R", "USB_CONN_DP", "USB_DP", "USB D+ series")
passive("R", "27R", "USB_CONN_DM", "USB_DM", "USB D- series")
# crystal: 15 pF each side, 1k in series with XOUT
Y1 = part("Y", "12MHz", XTAL4, "Crystal:Crystal_SMD_3225-4Pin_3.2x2.5mm", "C20625731", desc="Abracon ABM8-272-T3")
conn("XIN", (U1, "20"), (Y1, "1"))
conn("XOUT", (U1, "21"))
conn("XTAL_OUT", (Y1, "3"))
conn(GND, (Y1, "2"), (Y1, "4"))
passive("R", "1k", "XOUT", "XTAL_OUT", "crystal drive limit")
passive("C", "15pF", "XIN", GND, "crystal load")
passive("C", "15pF", "XTAL_OUT", GND, "crystal load")
# flash
U2 = part("U", "W25Q128JVS", W25Q, "Package_SO:SOIC-8_5.3x5.3mm_P1.27mm", "C97521", ref="U2")
conn("QSPI_SS", (U1, "56"), (U2, "1"))
conn("QSPI_SD1", (U1, "55"), (U2, "2"))
conn("QSPI_SD2", (U1, "54"), (U2, "3"))
conn("QSPI_SD0", (U1, "53"), (U2, "5"))
conn("QSPI_SCLK", (U1, "52"), (U2, "6"))
conn("QSPI_SD3", (U1, "51"), (U2, "7"))
conn(V33, (U2, "8")); conn(GND, (U2, "4"))
passive("C", "100nF", V33, GND, "flash VCC")
# BOOTSEL: QSPI_SS to GND through 1k; RESET: RUN to GND
SW1 = part("SW", "BOOTSEL", SW, "Button_Switch_SMD:SW_SPST_TS-1088-xR020", "C720477", desc="XUNPU TS-1088-AR02016")
passive("R", "1k", "QSPI_SS", "BOOTSEL_SW", "BOOTSEL")
conn("BOOTSEL_SW", (SW1, "1")); conn(GND, (SW1, "2"))
SW2 = part("SW", "RESET", SW, "Button_Switch_SMD:SW_SPST_TS-1088-xR020", "C720477", desc="XUNPU TS-1088-AR02016")
conn("RUN", (U1, "26"), (SW2, "1")); conn(GND, (SW2, "2"))
passive("R", "10k", V33, "RUN", "RUN pull-up; RP2040 has a weak internal one, this adds noise margin")
conn("SWCLK", (U1, "24")); conn("SWDIO", (U1, "25"))
# --- §4.5 RS-232: chip A (DCE, SP3238E) and chip B (DTE, MAX3243E) -----------
UA = part("U", "SP3238EEA", SP3238E, "Package_SO:SSOP-28_5.3x10.2mm_P0.65mm", "C49669",
desc="MaxLinear SP3238EEA-L/TR, chip A, DCE", ref="U5")
UB = part("U", "MAX3243EIDBR", MAX3243E, "Package_SO:SSOP-28_5.3x10.2mm_P0.65mm", "C353887",
desc="TI MAX3243EIDBR, chip B, DTE", ref="U6")
def charge_pump(u, c1p, c1m, c2p, c2m, vp, vm, vcc, gnd, tag):
conn(f"{tag}_C1P", (u, c1p)); conn(f"{tag}_C1M", (u, c1m))
conn(f"{tag}_C2P", (u, c2p)); conn(f"{tag}_C2M", (u, c2m))
conn(f"{tag}_VP", (u, vp)); conn(f"{tag}_VM", (u, vm))
conn(V33, (u, vcc)); conn(GND, (u, gnd))
passive("C", "220nF", f"{tag}_C1P", f"{tag}_C1M", f"chip {tag[-1]} C1 flying")
passive("C", "1uF 50V", f"{tag}_C2P", f"{tag}_C2M", f"chip {tag[-1]} C2 flying")
passive("C", "1uF 50V", f"{tag}_VP", GND, f"chip {tag[-1]} V+ reservoir")
passive("C", "1uF 50V", f"{tag}_VM", GND, f"chip {tag[-1]} V- reservoir")
passive("C", "1uF", V33, GND, f"chip {tag[-1]} VCC")
passive("C", "100nF", V33, GND, f"chip {tag[-1]} VCC")
charge_pump(UA, "28", "25", "1", "3", "27", "4", "26", "2", "CPA")
charge_pump(UB, "28", "24", "1", "2", "27", "3", "26", "25", "CPB")
J2 = part("J", "DB25_Female", DB25F, "Connector_Dsub:DSUB-25_Socket_EdgeMount_P2.77mm", "C19601171",
assembly="hand", desc="MH Connectors MHDB25SS, solder cups straddling the board edge")
# Each DB25 signal pin: one driver from one chip, one receiver from the other.
# net DB25 chip A pin chip B pin
RS232 = [("RS_TXD", "2", "8", "9"), # A R1IN / B DOUT1
("RS_RXD", "3", "5", "4"), # A T1OUT / B RIN1
("RS_RTS", "4", "9", "10"), # A R2IN / B DOUT2
("RS_CTS", "5", "6", "5"), # A T2OUT / B RIN2
("RS_DSR", "6", "7", "6"), # A T3OUT / B RIN3
("RS_DCD", "8", "10", "7"), # A T4OUT / B RIN4
("RS_DTR", "20", "11", "11"), # A R3IN / B DOUT3
("RS_RI", "22", "12", "8")] # A T5OUT / B RIN5
for net, db, a, b in RS232:
conn(net, (J2, db), (UA, a), (UB, b))
conn(GND, (J2, "7"))
conn("DB25_FG", (J2, "1"))
passive("R", "0R", "DB25_FG", GND, "frame ground to GND; leave off to float pin 1")
nc(J2, *[str(n) for n in range(1, 26) if str(n) not in {"1", "2", "3", "4", "5", "6", "7", "8", "20", "22"}])
# --- §4.6 GPIO map ------------------------------------------------------------
GPIO = { # GPIO: (net, chip pin)
0: ("A_TX", (UA, "24")), # UART0 TX set A -> T1IN -> pin 3
1: ("A_RX", (UA, "21")), # UART0 RX set A <- R1OUT <- pin 2
2: ("A_CTS", (UA, "20")), # UART0 CTS set A <- R2OUT <- pin 4 (computer's RTS)
3: ("A_RTS", (UA, "23")), # UART0 RTS set A -> T2IN -> pin 5 (CTS to computer)
4: ("A_DSR", (UA, "22")), # T3IN -> pin 6
5: ("A_DCD", (UA, "19")), # T4IN -> pin 8
6: ("A_RI", (UA, "17")), # T5IN -> pin 22
7: ("A_DTR", (UA, "18")), # R3OUT <- pin 20
8: ("B_DTR", (UB, "12")), # DIN3 -> pin 20
9: ("B_DSR", (UB, "17")), # ROUT3 <- pin 6
10: ("B_DCD", (UB, "16")), # ROUT4 <- pin 8
11: ("B_RI", (UB, "15")), # ROUT5 <- pin 22
12: ("B_TX", (UB, "14")), # UART0 TX set B -> DIN1 -> pin 2
13: ("B_RX", (UB, "19")), # UART0 RX set B <- ROUT1 <- pin 3
14: ("B_CTS", (UB, "18")), # UART0 CTS set B <- ROUT2 <- pin 5
15: ("B_RTS", (UB, "13")), # UART0 RTS set B -> DIN2 -> pin 4
16: ("A_SHDN_N", (UA, "14")), # chip A ~SHUTDOWN, pulled low
17: ("B_FORCEOFF_N", (UB, "22")), # chip B ~FORCEOFF, pulled low
19: ("A_R1OUTB", (UA, "16")), # chip A always-on non-inverting R1 (pin 2)
20: ("A_STATUS", (UA, "15")), # chip A STATUS, valid in shutdown
21: ("B_INVALID", (UB, "21")),# chip B INVALID, valid in shutdown
}
GPIO_PIN = {n: str(n + 2) if n <= 7 else None for n in range(30)}
GPIO_PIN.update({8: "11", 9: "12", 10: "13", 11: "14", 12: "15", 13: "16", 14: "17", 15: "18",
16: "27", 17: "28", 18: "29", 19: "30", 20: "31", 21: "32", 22: "34", 23: "35",
24: "36", 25: "37", 26: "38", 27: "39", 28: "40", 29: "41"})
for g, (net, node) in GPIO.items():
conn(net, (U1, GPIO_PIN[g]), node)
# GP18 drives chip A ONLINE and chip B FORCEON together
conn("RS_FORCEON", (U1, GPIO_PIN[18]), (UA, "13"), (UB, "23"))
passive("R", "100k", "A_SHDN_N", GND, "chip A off until firmware decides")
passive("R", "100k", "B_FORCEOFF_N", GND, "chip B off until firmware decides")
passive("R", "100k", "RS_FORCEON", GND, "auto power-down on until firmware decides")
nc(UB, "20") # ROUT2B unused (INVALID covers detection)
conn("VBUS_SENSE", (U1, GPIO_PIN[29]))
# --- §4.8 optional LEDs (not fitted by default) ---------------------------------
for g, name in zip(range(22, 28), ("PWR", "TR", "CD", "SD", "RD", "RI")):
led = part("D", f"LED_{name}", DIODE, "LED_SMD:LED_0603_1608Metric", "C2286", dnp=True,
desc=f"{name} status LED, optional")
conn(f"LED_{name}", (U1, GPIO_PIN[g]))
passive("R", "1k", f"LED_{name}", f"LED_{name}_A", f"{name} LED current", dnp=True)
conn(f"LED_{name}_A", (led, "2")); conn(GND, (led, "1"))
# --- test pads ----------------------------------------------------------------
conn("GP28", (U1, GPIO_PIN[28]))
for net, label in ((VBUS, "VBUS"), (V33, "3V3"), (V11, "1V1"), (GND, "GND"), ("SWCLK", "SWCLK"),
("SWDIO", "SWDIO"), ("RUN", "RUN"), ("GP28", "GP28"), ("A_TX", "A_TX"),
("A_RX", "A_RX"), ("B_TX", "B_TX"), ("B_RX", "B_RX")):
tp(net, label)
# ===========================================================================
# Checks
# ===========================================================================
def pin_type(ref, pin):
return parts[ref]["pins"][pin][1]
def check():
errs, warns = [], []
on_net = {n for members in nets.values() for n in members}
for ref, p in parts.items():
for pin, (name, ty) in p["pins"].items():
if (ref, pin) not in on_net and (ref, pin) not in noconnect:
errs.append(f"{ref}.{pin} ({name}) is not connected and not marked NC")
if (ref, pin) in on_net and (ref, pin) in noconnect:
errs.append(f"{ref}.{pin} ({name}) is marked NC but on a net")
if ty == NC and (ref, pin) in on_net:
errs.append(f"{ref}.{pin} is a no-connect pin but on a net")
for net, members in nets.items():
refs = {r for r, _ in members}
if len(members) < 2:
errs.append(f"net {net} has only one pin: {members}")
elif len(refs) < 2 and net not in SUPPLIES:
warns.append(f"net {net} only joins pins of {refs.pop()}")
drivers = [f"{r}.{p}" for r, p in members if pin_type(r, p) in (O, PO)]
if len(drivers) > 1:
errs.append(f"net {net} has {len(drivers)} outputs: {drivers}")
for r, p in members:
if pin_type(r, p) == PI and net not in SUPPLIES:
errs.append(f"{r}.{p} is a power input on non-supply net {net}")
for net, *_ in RS232:
kinds = sorted(pin_type(r, p) for r, p in nets[net] if r in (UA, UB))
if kinds != [I, O]:
errs.append(f"RS-232 line {net} needs one driver and one receiver, has {kinds}")
return errs, warns
def parse_sym(libdir, lib, name, seen=()):
path = os.path.join(libdir, f"{lib}.kicad_symdir", f"{name}.kicad_sym")
t = open(path).read()
m = re.search(r'\(extends "([^"]+)"\)', t)
if m:
return parse_sym(libdir, lib, m.group(1))
return {m.group(3): m.group(2) for m in
re.finditer(r'\(pin (\w+) \w+.*?\(name "([^"]*)".*?\(number "([^"]*)"', t, re.S)}
def verify_libs(symdir, fpdir):
errs = []
done = set()
for ref, p in parts.items():
key = (id(p["pins"]), p["footprint"])
if key in done:
continue
done.add(key)
if symdir:
sym = SYMBOLS.get(id(p["pins"]))
if sym:
lib_pins = parse_sym(symdir, *sym)
if set(lib_pins) != set(p["pins"]):
errs.append(f"{ref}: pin numbers differ from {sym}: {sorted(set(lib_pins) ^ set(p['pins']))}")
for num, (name, _) in p["pins"].items():
if num in lib_pins and lib_pins[num] not in (name, "~", "") and name != "~":
errs.append(f"{ref}.{num}: name {name!r} but KiCad {sym[1]} says {lib_pins[num]!r}")
if fpdir:
lib, fp = p["footprint"].split(":")
path = os.path.join(fpdir, f"{lib}.pretty", f"{fp}.kicad_mod")
if not os.path.exists(path):
errs.append(f"{ref}: footprint {p['footprint']} not found")
continue
pads = set(re.findall(r'\(pad "([^"]+)"', open(path).read()))
missing = set(p["pins"]) - pads
if missing:
errs.append(f"{ref}: footprint {fp} has no pad for pins {sorted(missing)}")
extra = pads - set(p["pins"])
if extra:
errs.append(f"{ref}: footprint {fp} has pads with no pin: {sorted(extra)}")
return errs
# ===========================================================================
# Output
# ===========================================================================
def q(s):
return '"' + str(s).replace("\\", "\\\\").replace('"', '\\"') + '"'
def natural(s):
return [int(t) if t.isdigit() else t for t in re.split(r"(\d+)", s)]
def write_kicad(path):
ns = uuid.UUID("6a1f6c1e-6f1d-4a43-9a52-0c0de5e2a1aa")
out = ["(export (version \"E\")",
f" (design (source \"build_netlist.py\") (date {q(datetime.date.today().isoformat())}) "
"(tool \"pico-serial build_netlist.py\"))",
" (components"]
for ref in sorted(parts, key=natural):
p = parts[ref]
sym = SYMBOLS.get(id(p["pins"])) or ("pico-serial", p["value"])
if p["pins"] is TWO:
sym = ("Device", "R" if ref.startswith("R") else "C" if ref.startswith("C") else "Polyfuse")
if p["pins"] is DIODE:
sym = ("Device", "LED" if p["value"].startswith("LED") else "D_Zener")
fields = [f"(field (name \"LCSC\") {q(p['lcsc'])})"] if p["lcsc"] else []
if p["dnp"]:
fields.append("(field (name \"DNP\") \"DNP\")")
if p["desc"]:
fields.append(f"(field (name \"Description\") {q(p['desc'])})")
out.append(f" (comp (ref {q(ref)}) (value {q(p['value'])}) (footprint {q(p['footprint'])})"
+ (f" (fields {' '.join(fields)})" if fields else "")
+ f" (libsource (lib {q(sym[0])}) (part {q(sym[1])}) (description \"\"))"
+ " (sheetpath (names \"/\") (tstamps \"/\"))"
+ f" (tstamps {q(uuid.uuid5(ns, ref))}))")
out.append(" )")
out.append(" (nets")
for code, net in enumerate(sorted(nets, key=natural), 1):
out.append(f" (net (code {q(code)}) (name {q('/' + net if net not in SUPPLIES else net)})")
for r, pin in sorted(nets[net], key=lambda m: (natural(m[0]), natural(m[1]))):
name, ty = parts[r]["pins"][pin]
out.append(f" (node (ref {q(r)}) (pin {q(pin)}) (pinfunction {q(name)}) (pintype {q(ty)}))")
out.append(" )")
out.append(" )")
out.append(")")
open(path, "w").write("\n".join(out) + "\n")
def write_md(path):
L = ["# pico-serial netlist", "",
"Generated by `build_netlist.py`; edit that script, not this file.", "",
f"{len(parts)} parts, {len(nets)} nets. DNP = not fitted by default.", "",
"## Nets", "", "| Net | Pins |", "|---|---|"]
for net in sorted(nets, key=natural):
pins = ", ".join(f"{r}.{p} ({parts[r]['pins'][p][0]})" if parts[r]["pins"] is not TWO else f"{r}.{p}"
for r, p in sorted(nets[net], key=lambda m: (natural(m[0]), natural(m[1]))))
L.append(f"| `{net}` | {pins} |")
L += ["", "## Parts", "", "| Ref | Value | LCSC | Footprint | Note |", "|---|---|---|---|---|"]
for ref in sorted(parts, key=natural):
p = parts[ref]
note = "; ".join(x for x in (p["desc"], p["note"], "DNP" if p["dnp"] else "",
"hand-soldered" if p["assembly"] == "hand" else "") if x)
L.append(f"| {ref} | {p['value']} | {p['lcsc']} | `{p['footprint']}` | {note} |")
L += ["", "## Not connected (on purpose)", ""]
for ref, pin in sorted(noconnect, key=lambda m: (natural(m[0]), natural(m[1]))):
L.append(f"- {ref}.{pin} ({parts[ref]['pins'][pin][0]})")
open(path, "w").write("\n".join(L) + "\n")
def write_bom(path):
groups = defaultdict(list)
for ref, p in parts.items():
if p["dnp"] or p["assembly"] != "jlc":
continue
groups[(p["value"], p["footprint"], p["lcsc"])].append(ref)
L = ["Comment,Designator,Footprint,LCSC Part #"]
for (value, fp, lcsc), refs in sorted(groups.items(), key=lambda kv: natural(sorted(kv[1], key=natural)[0])):
L.append(f"{value},\"{','.join(sorted(refs, key=natural))}\",{fp.split(':')[1]},{lcsc}")
open(path, "w").write("\n".join(L) + "\n")
def main():
ap = argparse.ArgumentParser(description=__doc__.split("\n")[0])
ap.add_argument("--kicad-sym", help="kicad-symbols checkout, to verify pin tables")
ap.add_argument("--kicad-fp", help="kicad-footprints checkout, to verify footprints")
a = ap.parse_args()
errs, warns = check()
if a.kicad_sym or a.kicad_fp:
errs += verify_libs(a.kicad_sym, a.kicad_fp)
for w in warns:
print("warning:", w)
for e in errs:
print("ERROR:", e)
if errs:
sys.exit(1)
here = os.path.dirname(os.path.abspath(__file__))
write_kicad(os.path.join(here, "pico-serial.net"))
write_md(os.path.join(here, "NETLIST.md"))
write_bom(os.path.join(here, "bom-jlc.csv"))
fitted = sum(1 for p in parts.values() if not p["dnp"])
print(f"ok: {len(parts)} parts ({fitted} fitted), {len(nets)} nets, "
f"{sum(len(m) for m in nets.values())} connections, {len(noconnect)} pins left open on purpose")
if __name__ == "__main__":
main()
+543
View File
@@ -0,0 +1,543 @@
(export (version "E")
(design (source "build_netlist.py") (date "2026-10-17") (tool "pico-serial build_netlist.py"))
(components
(comp (ref "C1") (value "4.7nF") (footprint "Capacitor_SMD:C_0402_1005Metric") (fields (field (name "LCSC") "C1538")) (libsource (lib "Device") (part "C") (description "")) (sheetpath (names "/") (tstamps "/")) (tstamps "33544a75-52f4-5f00-8447-28629146762e"))
(comp (ref "C2") (value "10uF") (footprint "Capacitor_SMD:C_0603_1608Metric") (fields (field (name "LCSC") "C19702")) (libsource (lib "Device") (part "C") (description "")) (sheetpath (names "/") (tstamps "/")) (tstamps "dab5c2cc-0c63-5ac3-a0e1-93c3ced54313"))
(comp (ref "C3") (value "10uF") (footprint "Capacitor_SMD:C_0603_1608Metric") (fields (field (name "LCSC") "C19702")) (libsource (lib "Device") (part "C") (description "")) (sheetpath (names "/") (tstamps "/")) (tstamps "18114a0b-55a9-5f5f-837c-4821e87d5526"))
(comp (ref "C4") (value "100nF") (footprint "Capacitor_SMD:C_0402_1005Metric") (fields (field (name "LCSC") "C1525")) (libsource (lib "Device") (part "C") (description "")) (sheetpath (names "/") (tstamps "/")) (tstamps "a2efbbde-6589-5c80-8d5a-aa3cefcdf0ce"))
(comp (ref "C5") (value "100nF") (footprint "Capacitor_SMD:C_0402_1005Metric") (fields (field (name "LCSC") "C1525")) (libsource (lib "Device") (part "C") (description "")) (sheetpath (names "/") (tstamps "/")) (tstamps "5c8d46d9-f743-593f-8a5e-2f0454a7d1a3"))
(comp (ref "C6") (value "100nF") (footprint "Capacitor_SMD:C_0402_1005Metric") (fields (field (name "LCSC") "C1525")) (libsource (lib "Device") (part "C") (description "")) (sheetpath (names "/") (tstamps "/")) (tstamps "5fa7003b-df26-5c85-9e43-1594e75ff901"))
(comp (ref "C7") (value "100nF") (footprint "Capacitor_SMD:C_0402_1005Metric") (fields (field (name "LCSC") "C1525")) (libsource (lib "Device") (part "C") (description "")) (sheetpath (names "/") (tstamps "/")) (tstamps "6b6c5653-c5af-5135-bff4-b8dc8bea72e7"))
(comp (ref "C8") (value "100nF") (footprint "Capacitor_SMD:C_0402_1005Metric") (fields (field (name "LCSC") "C1525")) (libsource (lib "Device") (part "C") (description "")) (sheetpath (names "/") (tstamps "/")) (tstamps "3b346bc9-1b5f-508d-872b-8b82ccb1793e"))
(comp (ref "C9") (value "100nF") (footprint "Capacitor_SMD:C_0402_1005Metric") (fields (field (name "LCSC") "C1525")) (libsource (lib "Device") (part "C") (description "")) (sheetpath (names "/") (tstamps "/")) (tstamps "49192504-66f2-5285-b14e-2a4e5dd152ae"))
(comp (ref "C10") (value "100nF") (footprint "Capacitor_SMD:C_0402_1005Metric") (fields (field (name "LCSC") "C1525")) (libsource (lib "Device") (part "C") (description "")) (sheetpath (names "/") (tstamps "/")) (tstamps "fdcf3bb0-82f8-5fa1-a5b8-71307655614a"))
(comp (ref "C11") (value "100nF") (footprint "Capacitor_SMD:C_0402_1005Metric") (fields (field (name "LCSC") "C1525")) (libsource (lib "Device") (part "C") (description "")) (sheetpath (names "/") (tstamps "/")) (tstamps "a89410ca-e818-5189-a620-1ba313ed6aaf"))
(comp (ref "C12") (value "1uF") (footprint "Capacitor_SMD:C_0402_1005Metric") (fields (field (name "LCSC") "C52923")) (libsource (lib "Device") (part "C") (description "")) (sheetpath (names "/") (tstamps "/")) (tstamps "68381dd9-4ec7-54ac-8621-00db9806ee3e"))
(comp (ref "C13") (value "1uF") (footprint "Capacitor_SMD:C_0402_1005Metric") (fields (field (name "LCSC") "C52923")) (libsource (lib "Device") (part "C") (description "")) (sheetpath (names "/") (tstamps "/")) (tstamps "e62cf699-54e2-56d2-af6a-d0c27d417470"))
(comp (ref "C14") (value "100nF") (footprint "Capacitor_SMD:C_0402_1005Metric") (fields (field (name "LCSC") "C1525")) (libsource (lib "Device") (part "C") (description "")) (sheetpath (names "/") (tstamps "/")) (tstamps "a5d3ec0c-4af5-594e-9c6d-07172a89e5ba"))
(comp (ref "C15") (value "100nF") (footprint "Capacitor_SMD:C_0402_1005Metric") (fields (field (name "LCSC") "C1525")) (libsource (lib "Device") (part "C") (description "")) (sheetpath (names "/") (tstamps "/")) (tstamps "bcd201be-5ee3-5bd3-a913-1543aa472ae1"))
(comp (ref "C16") (value "15pF") (footprint "Capacitor_SMD:C_0402_1005Metric") (fields (field (name "LCSC") "C1548")) (libsource (lib "Device") (part "C") (description "")) (sheetpath (names "/") (tstamps "/")) (tstamps "2fb3d525-7d14-512d-8609-1ea4a3fc6065"))
(comp (ref "C17") (value "15pF") (footprint "Capacitor_SMD:C_0402_1005Metric") (fields (field (name "LCSC") "C1548")) (libsource (lib "Device") (part "C") (description "")) (sheetpath (names "/") (tstamps "/")) (tstamps "2a0f335e-fc87-5b5e-8120-7479013b2976"))
(comp (ref "C18") (value "100nF") (footprint "Capacitor_SMD:C_0402_1005Metric") (fields (field (name "LCSC") "C1525")) (libsource (lib "Device") (part "C") (description "")) (sheetpath (names "/") (tstamps "/")) (tstamps "a207a105-9586-5f91-a039-8f1e7aeb1264"))
(comp (ref "C19") (value "220nF") (footprint "Capacitor_SMD:C_0402_1005Metric") (fields (field (name "LCSC") "C16772")) (libsource (lib "Device") (part "C") (description "")) (sheetpath (names "/") (tstamps "/")) (tstamps "28588008-a006-5806-ab3c-c504f0b17818"))
(comp (ref "C20") (value "1uF") (footprint "Capacitor_SMD:C_0603_1608Metric") (fields (field (name "LCSC") "C15849")) (libsource (lib "Device") (part "C") (description "")) (sheetpath (names "/") (tstamps "/")) (tstamps "05b43ba3-fadd-5f7b-9167-432c00520a8a"))
(comp (ref "C21") (value "1uF") (footprint "Capacitor_SMD:C_0603_1608Metric") (fields (field (name "LCSC") "C15849")) (libsource (lib "Device") (part "C") (description "")) (sheetpath (names "/") (tstamps "/")) (tstamps "5b1d2acd-f9cb-5f5a-84a3-442410000b0e"))
(comp (ref "C22") (value "1uF") (footprint "Capacitor_SMD:C_0603_1608Metric") (fields (field (name "LCSC") "C15849")) (libsource (lib "Device") (part "C") (description "")) (sheetpath (names "/") (tstamps "/")) (tstamps "a5512c0f-37b1-510a-bb4a-b71faaab9eb0"))
(comp (ref "C23") (value "1uF") (footprint "Capacitor_SMD:C_0402_1005Metric") (fields (field (name "LCSC") "C52923")) (libsource (lib "Device") (part "C") (description "")) (sheetpath (names "/") (tstamps "/")) (tstamps "2351df24-c725-5c62-9320-400578d7d3c3"))
(comp (ref "C24") (value "100nF") (footprint "Capacitor_SMD:C_0402_1005Metric") (fields (field (name "LCSC") "C1525")) (libsource (lib "Device") (part "C") (description "")) (sheetpath (names "/") (tstamps "/")) (tstamps "533b2f0b-a07b-5cf7-af3e-1ed159a946ce"))
(comp (ref "C25") (value "220nF") (footprint "Capacitor_SMD:C_0402_1005Metric") (fields (field (name "LCSC") "C16772")) (libsource (lib "Device") (part "C") (description "")) (sheetpath (names "/") (tstamps "/")) (tstamps "58cbbd3a-b0c5-5ca6-9ed7-35d941aa00b3"))
(comp (ref "C26") (value "1uF") (footprint "Capacitor_SMD:C_0603_1608Metric") (fields (field (name "LCSC") "C15849")) (libsource (lib "Device") (part "C") (description "")) (sheetpath (names "/") (tstamps "/")) (tstamps "760c788b-31fb-5859-abf9-799159938565"))
(comp (ref "C27") (value "1uF") (footprint "Capacitor_SMD:C_0603_1608Metric") (fields (field (name "LCSC") "C15849")) (libsource (lib "Device") (part "C") (description "")) (sheetpath (names "/") (tstamps "/")) (tstamps "5f615ae7-14e4-5891-9fe8-e5419c1606a9"))
(comp (ref "C28") (value "1uF") (footprint "Capacitor_SMD:C_0603_1608Metric") (fields (field (name "LCSC") "C15849")) (libsource (lib "Device") (part "C") (description "")) (sheetpath (names "/") (tstamps "/")) (tstamps "9bc0c716-973a-59d5-b4aa-5c892f2af5f5"))
(comp (ref "C29") (value "1uF") (footprint "Capacitor_SMD:C_0402_1005Metric") (fields (field (name "LCSC") "C52923")) (libsource (lib "Device") (part "C") (description "")) (sheetpath (names "/") (tstamps "/")) (tstamps "809082d7-5ade-5c62-9907-e70ba2e2dd7a"))
(comp (ref "C30") (value "100nF") (footprint "Capacitor_SMD:C_0402_1005Metric") (fields (field (name "LCSC") "C1525")) (libsource (lib "Device") (part "C") (description "")) (sheetpath (names "/") (tstamps "/")) (tstamps "5ed8f960-3363-5774-b024-b457205b6394"))
(comp (ref "D1") (value "SMF5.0A") (footprint "Diode_SMD:D_SOD-123F") (fields (field (name "LCSC") "C151296") (field (name "Description") "5 V TVS, unidirectional")) (libsource (lib "Device") (part "D_Zener") (description "")) (sheetpath (names "/") (tstamps "/")) (tstamps "b2e37575-0e59-5d3b-ad70-bd060f38b46d"))
(comp (ref "D2") (value "LED_PWR") (footprint "LED_SMD:LED_0603_1608Metric") (fields (field (name "LCSC") "C2286") (field (name "DNP") "DNP") (field (name "Description") "PWR status LED, optional")) (libsource (lib "Device") (part "LED") (description "")) (sheetpath (names "/") (tstamps "/")) (tstamps "6740e8f5-3add-53cd-9829-ee1df78a6f2a"))
(comp (ref "D3") (value "LED_TR") (footprint "LED_SMD:LED_0603_1608Metric") (fields (field (name "LCSC") "C2286") (field (name "DNP") "DNP") (field (name "Description") "TR status LED, optional")) (libsource (lib "Device") (part "LED") (description "")) (sheetpath (names "/") (tstamps "/")) (tstamps "02fcbde7-9f4e-554a-bd7c-edf8d994e0fb"))
(comp (ref "D4") (value "LED_CD") (footprint "LED_SMD:LED_0603_1608Metric") (fields (field (name "LCSC") "C2286") (field (name "DNP") "DNP") (field (name "Description") "CD status LED, optional")) (libsource (lib "Device") (part "LED") (description "")) (sheetpath (names "/") (tstamps "/")) (tstamps "3a3cc6c1-7dac-518f-9cfb-50829d0e1bc3"))
(comp (ref "D5") (value "LED_SD") (footprint "LED_SMD:LED_0603_1608Metric") (fields (field (name "LCSC") "C2286") (field (name "DNP") "DNP") (field (name "Description") "SD status LED, optional")) (libsource (lib "Device") (part "LED") (description "")) (sheetpath (names "/") (tstamps "/")) (tstamps "5fcdbb57-7da0-52df-a680-ded6bc02f626"))
(comp (ref "D6") (value "LED_RD") (footprint "LED_SMD:LED_0603_1608Metric") (fields (field (name "LCSC") "C2286") (field (name "DNP") "DNP") (field (name "Description") "RD status LED, optional")) (libsource (lib "Device") (part "LED") (description "")) (sheetpath (names "/") (tstamps "/")) (tstamps "2e0aab07-708f-5dbb-8d44-66af6f019985"))
(comp (ref "D7") (value "LED_RI") (footprint "LED_SMD:LED_0603_1608Metric") (fields (field (name "LCSC") "C2286") (field (name "DNP") "DNP") (field (name "Description") "RI status LED, optional")) (libsource (lib "Device") (part "LED") (description "")) (sheetpath (names "/") (tstamps "/")) (tstamps "5fa927d8-8934-553b-8eda-28c65d4de441"))
(comp (ref "F1") (value "0.5A") (footprint "Fuse:Fuse_1206_3216Metric") (fields (field (name "LCSC") "C163512") (field (name "Description") "Littelfuse 1206L050YR PTC")) (libsource (lib "Device") (part "Polyfuse") (description "")) (sheetpath (names "/") (tstamps "/")) (tstamps "17895b05-8177-5f0b-a5cc-8a2c1122d702"))
(comp (ref "J1") (value "USB_C") (footprint "Connector_USB:USB_C_Receptacle_HRO_TYPE-C-31-M-12") (fields (field (name "LCSC") "C165948") (field (name "Description") "HRO TYPE-C-31-M-12")) (libsource (lib "Connector") (part "USB_C_Receptacle_USB2.0_16P") (description "")) (sheetpath (names "/") (tstamps "/")) (tstamps "c3794f2e-59e6-5793-ac73-3a2bc40843c2"))
(comp (ref "J2") (value "DB25_Female") (footprint "Connector_Dsub:DSUB-25_Socket_EdgeMount_P2.77mm") (fields (field (name "LCSC") "C19601171") (field (name "Description") "MH Connectors MHDB25SS, solder cups straddling the board edge")) (libsource (lib "Connector") (part "DB25_Socket") (description "")) (sheetpath (names "/") (tstamps "/")) (tstamps "b07e1589-543d-5d85-8d71-bff96b5bbbae"))
(comp (ref "R1") (value "5.1k") (footprint "Resistor_SMD:R_0402_1005Metric") (fields (field (name "LCSC") "C25905")) (libsource (lib "Device") (part "R") (description "")) (sheetpath (names "/") (tstamps "/")) (tstamps "5911bebf-ac5c-5b5e-a099-119f7972e524"))
(comp (ref "R2") (value "5.1k") (footprint "Resistor_SMD:R_0402_1005Metric") (fields (field (name "LCSC") "C25905")) (libsource (lib "Device") (part "R") (description "")) (sheetpath (names "/") (tstamps "/")) (tstamps "a2719d16-4642-5a8f-bfd8-d74d33751b54"))
(comp (ref "R3") (value "1M") (footprint "Resistor_SMD:R_0402_1005Metric") (fields (field (name "LCSC") "C26083")) (libsource (lib "Device") (part "R") (description "")) (sheetpath (names "/") (tstamps "/")) (tstamps "077c61e9-7fe7-5016-8d25-dc5bd774e549"))
(comp (ref "R4") (value "100k") (footprint "Resistor_SMD:R_0402_1005Metric") (fields (field (name "LCSC") "C25741")) (libsource (lib "Device") (part "R") (description "")) (sheetpath (names "/") (tstamps "/")) (tstamps "19452963-920a-5434-a996-b1536c95c3a8"))
(comp (ref "R5") (value "100k") (footprint "Resistor_SMD:R_0402_1005Metric") (fields (field (name "LCSC") "C25741")) (libsource (lib "Device") (part "R") (description "")) (sheetpath (names "/") (tstamps "/")) (tstamps "8c56a735-d519-50b8-b119-424498bee4fb"))
(comp (ref "R6") (value "27R") (footprint "Resistor_SMD:R_0402_1005Metric") (fields (field (name "LCSC") "C25100")) (libsource (lib "Device") (part "R") (description "")) (sheetpath (names "/") (tstamps "/")) (tstamps "57b29bcb-1005-59a0-a0d3-41b9f0f7103a"))
(comp (ref "R7") (value "27R") (footprint "Resistor_SMD:R_0402_1005Metric") (fields (field (name "LCSC") "C25100")) (libsource (lib "Device") (part "R") (description "")) (sheetpath (names "/") (tstamps "/")) (tstamps "2b4dfa8b-afe0-545e-bb30-a7dbc2413dcd"))
(comp (ref "R8") (value "1k") (footprint "Resistor_SMD:R_0402_1005Metric") (fields (field (name "LCSC") "C11702")) (libsource (lib "Device") (part "R") (description "")) (sheetpath (names "/") (tstamps "/")) (tstamps "9a428fb8-5890-5fa3-95b2-f614c644b1fa"))
(comp (ref "R9") (value "1k") (footprint "Resistor_SMD:R_0402_1005Metric") (fields (field (name "LCSC") "C11702")) (libsource (lib "Device") (part "R") (description "")) (sheetpath (names "/") (tstamps "/")) (tstamps "3c1fab22-82ab-5d1a-868f-1976c58ea2e0"))
(comp (ref "R10") (value "10k") (footprint "Resistor_SMD:R_0402_1005Metric") (fields (field (name "LCSC") "C25744")) (libsource (lib "Device") (part "R") (description "")) (sheetpath (names "/") (tstamps "/")) (tstamps "75b38e43-e2bb-51bf-ae77-f45d85d97c8f"))
(comp (ref "R11") (value "0R") (footprint "Resistor_SMD:R_0402_1005Metric") (fields (field (name "LCSC") "C17168")) (libsource (lib "Device") (part "R") (description "")) (sheetpath (names "/") (tstamps "/")) (tstamps "22fbbdbb-62b7-58b4-b82f-e6dd89008d10"))
(comp (ref "R12") (value "100k") (footprint "Resistor_SMD:R_0402_1005Metric") (fields (field (name "LCSC") "C25741")) (libsource (lib "Device") (part "R") (description "")) (sheetpath (names "/") (tstamps "/")) (tstamps "5aa09c44-db67-5a72-b087-21014944754d"))
(comp (ref "R13") (value "100k") (footprint "Resistor_SMD:R_0402_1005Metric") (fields (field (name "LCSC") "C25741")) (libsource (lib "Device") (part "R") (description "")) (sheetpath (names "/") (tstamps "/")) (tstamps "da26f00f-1f6f-5dfb-918e-1816e670f296"))
(comp (ref "R14") (value "100k") (footprint "Resistor_SMD:R_0402_1005Metric") (fields (field (name "LCSC") "C25741")) (libsource (lib "Device") (part "R") (description "")) (sheetpath (names "/") (tstamps "/")) (tstamps "8ac9c113-3cad-5fd7-8b1e-d0370510f04b"))
(comp (ref "R15") (value "1k") (footprint "Resistor_SMD:R_0402_1005Metric") (fields (field (name "LCSC") "C11702") (field (name "DNP") "DNP")) (libsource (lib "Device") (part "R") (description "")) (sheetpath (names "/") (tstamps "/")) (tstamps "71d75a2b-f91a-58e9-b62c-4e41bb0cc390"))
(comp (ref "R16") (value "1k") (footprint "Resistor_SMD:R_0402_1005Metric") (fields (field (name "LCSC") "C11702") (field (name "DNP") "DNP")) (libsource (lib "Device") (part "R") (description "")) (sheetpath (names "/") (tstamps "/")) (tstamps "c6ba6067-f838-5944-b825-182492f239bd"))
(comp (ref "R17") (value "1k") (footprint "Resistor_SMD:R_0402_1005Metric") (fields (field (name "LCSC") "C11702") (field (name "DNP") "DNP")) (libsource (lib "Device") (part "R") (description "")) (sheetpath (names "/") (tstamps "/")) (tstamps "61a1fb8b-193b-5fd9-b692-434c8bcc230c"))
(comp (ref "R18") (value "1k") (footprint "Resistor_SMD:R_0402_1005Metric") (fields (field (name "LCSC") "C11702") (field (name "DNP") "DNP")) (libsource (lib "Device") (part "R") (description "")) (sheetpath (names "/") (tstamps "/")) (tstamps "960d504e-a64c-5e7c-aa81-25e83e46e3ea"))
(comp (ref "R19") (value "1k") (footprint "Resistor_SMD:R_0402_1005Metric") (fields (field (name "LCSC") "C11702") (field (name "DNP") "DNP")) (libsource (lib "Device") (part "R") (description "")) (sheetpath (names "/") (tstamps "/")) (tstamps "92899201-9a5b-53c5-9da2-34796c4c0ba3"))
(comp (ref "R20") (value "1k") (footprint "Resistor_SMD:R_0402_1005Metric") (fields (field (name "LCSC") "C11702") (field (name "DNP") "DNP")) (libsource (lib "Device") (part "R") (description "")) (sheetpath (names "/") (tstamps "/")) (tstamps "7a30eb1d-b915-5e4c-b5c7-3ecb5e5c7aa1"))
(comp (ref "SW1") (value "BOOTSEL") (footprint "Button_Switch_SMD:SW_SPST_TS-1088-xR020") (fields (field (name "LCSC") "C720477") (field (name "Description") "XUNPU TS-1088-AR02016")) (libsource (lib "Switch") (part "SW_Push") (description "")) (sheetpath (names "/") (tstamps "/")) (tstamps "bada566a-9f8c-5872-a462-8679f2b380af"))
(comp (ref "SW2") (value "RESET") (footprint "Button_Switch_SMD:SW_SPST_TS-1088-xR020") (fields (field (name "LCSC") "C720477") (field (name "Description") "XUNPU TS-1088-AR02016")) (libsource (lib "Switch") (part "SW_Push") (description "")) (sheetpath (names "/") (tstamps "/")) (tstamps "d22aaa1f-3e37-5227-bd3c-5689cebb379c"))
(comp (ref "TP1") (value "VBUS") (footprint "TestPoint:TestPoint_Pad_D1.0mm") (libsource (lib "Connector") (part "TestPoint") (description "")) (sheetpath (names "/") (tstamps "/")) (tstamps "10837006-a781-5f0d-bbd9-ba9dec55e067"))
(comp (ref "TP2") (value "3V3") (footprint "TestPoint:TestPoint_Pad_D1.0mm") (libsource (lib "Connector") (part "TestPoint") (description "")) (sheetpath (names "/") (tstamps "/")) (tstamps "c528da77-0a03-58ad-be03-2f302e7f19a6"))
(comp (ref "TP3") (value "1V1") (footprint "TestPoint:TestPoint_Pad_D1.0mm") (libsource (lib "Connector") (part "TestPoint") (description "")) (sheetpath (names "/") (tstamps "/")) (tstamps "1455e649-d10e-509c-a7e2-df7ad683ae10"))
(comp (ref "TP4") (value "GND") (footprint "TestPoint:TestPoint_Pad_D1.0mm") (libsource (lib "Connector") (part "TestPoint") (description "")) (sheetpath (names "/") (tstamps "/")) (tstamps "728fd48e-4126-5ec4-b147-594406aece10"))
(comp (ref "TP5") (value "SWCLK") (footprint "TestPoint:TestPoint_Pad_D1.0mm") (libsource (lib "Connector") (part "TestPoint") (description "")) (sheetpath (names "/") (tstamps "/")) (tstamps "1a76e022-b13f-5dc8-bbda-049d27ae50b6"))
(comp (ref "TP6") (value "SWDIO") (footprint "TestPoint:TestPoint_Pad_D1.0mm") (libsource (lib "Connector") (part "TestPoint") (description "")) (sheetpath (names "/") (tstamps "/")) (tstamps "b3283644-0c77-53d3-8842-a88b0c169940"))
(comp (ref "TP7") (value "RUN") (footprint "TestPoint:TestPoint_Pad_D1.0mm") (libsource (lib "Connector") (part "TestPoint") (description "")) (sheetpath (names "/") (tstamps "/")) (tstamps "f1648a8d-e9a0-59f8-89da-89bf9e1a1e73"))
(comp (ref "TP8") (value "GP28") (footprint "TestPoint:TestPoint_Pad_D1.0mm") (libsource (lib "Connector") (part "TestPoint") (description "")) (sheetpath (names "/") (tstamps "/")) (tstamps "eab51779-b09e-50c8-9c51-f7a1adab64ed"))
(comp (ref "TP9") (value "A_TX") (footprint "TestPoint:TestPoint_Pad_D1.0mm") (libsource (lib "Connector") (part "TestPoint") (description "")) (sheetpath (names "/") (tstamps "/")) (tstamps "5c0b4f5a-cde3-5c38-8017-690f9a2b24b2"))
(comp (ref "TP10") (value "A_RX") (footprint "TestPoint:TestPoint_Pad_D1.0mm") (libsource (lib "Connector") (part "TestPoint") (description "")) (sheetpath (names "/") (tstamps "/")) (tstamps "324c222f-eb0e-5b63-8acf-3a94b751506e"))
(comp (ref "TP11") (value "B_TX") (footprint "TestPoint:TestPoint_Pad_D1.0mm") (libsource (lib "Connector") (part "TestPoint") (description "")) (sheetpath (names "/") (tstamps "/")) (tstamps "7f41feb1-2bd3-569e-ac8d-aead32d92ef5"))
(comp (ref "TP12") (value "B_RX") (footprint "TestPoint:TestPoint_Pad_D1.0mm") (libsource (lib "Connector") (part "TestPoint") (description "")) (sheetpath (names "/") (tstamps "/")) (tstamps "a4ad7600-caa6-5d82-8767-d598a378ba69"))
(comp (ref "U1") (value "RP2040") (footprint "Package_DFN_QFN:QFN-56-1EP_7x7mm_P0.4mm_EP3.2x3.2mm") (fields (field (name "LCSC") "C2040")) (libsource (lib "MCU_RaspberryPi") (part "RP2040") (description "")) (sheetpath (names "/") (tstamps "/")) (tstamps "ac2c03fc-0c06-5391-adf3-96d943f6536e"))
(comp (ref "U2") (value "W25Q128JVS") (footprint "Package_SO:SOIC-8_5.3x5.3mm_P1.27mm") (fields (field (name "LCSC") "C97521")) (libsource (lib "Memory_Flash") (part "W25Q128JVS") (description "")) (sheetpath (names "/") (tstamps "/")) (tstamps "b064c99c-d140-5696-a5b4-1f0cb73eaf88"))
(comp (ref "U3") (value "AP2112K-3.3") (footprint "Package_TO_SOT_SMD:SOT-23-5") (fields (field (name "LCSC") "C51118")) (libsource (lib "Regulator_Linear") (part "AP2112K-3.3") (description "")) (sheetpath (names "/") (tstamps "/")) (tstamps "380dab23-6a52-554f-bc4d-25958acfb733"))
(comp (ref "U4") (value "USBLC6-2SC6") (footprint "Package_TO_SOT_SMD:SOT-23-6") (fields (field (name "LCSC") "C7519")) (libsource (lib "Power_Protection") (part "USBLC6-2SC6") (description "")) (sheetpath (names "/") (tstamps "/")) (tstamps "681bca06-e31e-5e0a-91d3-e6733453abad"))
(comp (ref "U5") (value "SP3238EEA") (footprint "Package_SO:SSOP-28_5.3x10.2mm_P0.65mm") (fields (field (name "LCSC") "C49669") (field (name "Description") "MaxLinear SP3238EEA-L/TR, chip A, DCE")) (libsource (lib "pico-serial") (part "SP3238EEA") (description "")) (sheetpath (names "/") (tstamps "/")) (tstamps "59ab692d-8702-591b-8be8-27fda7102f1b"))
(comp (ref "U6") (value "MAX3243EIDBR") (footprint "Package_SO:SSOP-28_5.3x10.2mm_P0.65mm") (fields (field (name "LCSC") "C353887") (field (name "Description") "TI MAX3243EIDBR, chip B, DTE")) (libsource (lib "pico-serial") (part "MAX3243EIDBR") (description "")) (sheetpath (names "/") (tstamps "/")) (tstamps "e5906688-729f-5bcc-a120-6e2b6fb5ad99"))
(comp (ref "Y1") (value "12MHz") (footprint "Crystal:Crystal_SMD_3225-4Pin_3.2x2.5mm") (fields (field (name "LCSC") "C20625731") (field (name "Description") "Abracon ABM8-272-T3")) (libsource (lib "Device") (part "Crystal_GND24") (description "")) (sheetpath (names "/") (tstamps "/")) (tstamps "4ba41f66-42a9-59cd-bbed-74cddfb5dba6"))
)
(nets
(net (code "1") (name "+1V1")
(node (ref "C13") (pin "1") (pinfunction "~") (pintype "passive"))
(node (ref "C14") (pin "1") (pinfunction "~") (pintype "passive"))
(node (ref "C15") (pin "1") (pinfunction "~") (pintype "passive"))
(node (ref "TP3") (pin "1") (pinfunction "1") (pintype "passive"))
(node (ref "U1") (pin "23") (pinfunction "DVDD") (pintype "power_in"))
(node (ref "U1") (pin "45") (pinfunction "VREG_VOUT") (pintype "power_out"))
(node (ref "U1") (pin "50") (pinfunction "DVDD") (pintype "passive"))
)
(net (code "2") (name "+3V3")
(node (ref "C3") (pin "1") (pinfunction "~") (pintype "passive"))
(node (ref "C4") (pin "1") (pinfunction "~") (pintype "passive"))
(node (ref "C5") (pin "1") (pinfunction "~") (pintype "passive"))
(node (ref "C6") (pin "1") (pinfunction "~") (pintype "passive"))
(node (ref "C7") (pin "1") (pinfunction "~") (pintype "passive"))
(node (ref "C8") (pin "1") (pinfunction "~") (pintype "passive"))
(node (ref "C9") (pin "1") (pinfunction "~") (pintype "passive"))
(node (ref "C10") (pin "1") (pinfunction "~") (pintype "passive"))
(node (ref "C11") (pin "1") (pinfunction "~") (pintype "passive"))
(node (ref "C12") (pin "1") (pinfunction "~") (pintype "passive"))
(node (ref "C18") (pin "1") (pinfunction "~") (pintype "passive"))
(node (ref "C23") (pin "1") (pinfunction "~") (pintype "passive"))
(node (ref "C24") (pin "1") (pinfunction "~") (pintype "passive"))
(node (ref "C29") (pin "1") (pinfunction "~") (pintype "passive"))
(node (ref "C30") (pin "1") (pinfunction "~") (pintype "passive"))
(node (ref "R10") (pin "1") (pinfunction "~") (pintype "passive"))
(node (ref "TP2") (pin "1") (pinfunction "1") (pintype "passive"))
(node (ref "U1") (pin "1") (pinfunction "IOVDD") (pintype "power_in"))
(node (ref "U1") (pin "10") (pinfunction "IOVDD") (pintype "passive"))
(node (ref "U1") (pin "22") (pinfunction "IOVDD") (pintype "passive"))
(node (ref "U1") (pin "33") (pinfunction "IOVDD") (pintype "passive"))
(node (ref "U1") (pin "42") (pinfunction "IOVDD") (pintype "passive"))
(node (ref "U1") (pin "43") (pinfunction "ADC_AVDD") (pintype "power_in"))
(node (ref "U1") (pin "44") (pinfunction "VREG_VIN") (pintype "power_in"))
(node (ref "U1") (pin "48") (pinfunction "USB_VDD") (pintype "power_in"))
(node (ref "U1") (pin "49") (pinfunction "IOVDD") (pintype "passive"))
(node (ref "U2") (pin "8") (pinfunction "VCC") (pintype "power_in"))
(node (ref "U3") (pin "5") (pinfunction "VOUT") (pintype "power_out"))
(node (ref "U5") (pin "26") (pinfunction "VCC") (pintype "power_in"))
(node (ref "U6") (pin "26") (pinfunction "VCC") (pintype "power_in"))
)
(net (code "3") (name "/A_CTS")
(node (ref "U1") (pin "4") (pinfunction "GPIO2") (pintype "bidirectional"))
(node (ref "U5") (pin "20") (pinfunction "R2OUT") (pintype "output"))
)
(net (code "4") (name "/A_DCD")
(node (ref "U1") (pin "7") (pinfunction "GPIO5") (pintype "bidirectional"))
(node (ref "U5") (pin "19") (pinfunction "T4IN") (pintype "input"))
)
(net (code "5") (name "/A_DSR")
(node (ref "U1") (pin "6") (pinfunction "GPIO4") (pintype "bidirectional"))
(node (ref "U5") (pin "22") (pinfunction "T3IN") (pintype "input"))
)
(net (code "6") (name "/A_DTR")
(node (ref "U1") (pin "9") (pinfunction "GPIO7") (pintype "bidirectional"))
(node (ref "U5") (pin "18") (pinfunction "R3OUT") (pintype "output"))
)
(net (code "7") (name "/A_R1OUTB")
(node (ref "U1") (pin "30") (pinfunction "GPIO19") (pintype "bidirectional"))
(node (ref "U5") (pin "16") (pinfunction "R1OUTB") (pintype "output"))
)
(net (code "8") (name "/A_RI")
(node (ref "U1") (pin "8") (pinfunction "GPIO6") (pintype "bidirectional"))
(node (ref "U5") (pin "17") (pinfunction "T5IN") (pintype "input"))
)
(net (code "9") (name "/A_RTS")
(node (ref "U1") (pin "5") (pinfunction "GPIO3") (pintype "bidirectional"))
(node (ref "U5") (pin "23") (pinfunction "T2IN") (pintype "input"))
)
(net (code "10") (name "/A_RX")
(node (ref "TP10") (pin "1") (pinfunction "1") (pintype "passive"))
(node (ref "U1") (pin "3") (pinfunction "GPIO1") (pintype "bidirectional"))
(node (ref "U5") (pin "21") (pinfunction "R1OUT") (pintype "output"))
)
(net (code "11") (name "/A_SHDN_N")
(node (ref "R12") (pin "1") (pinfunction "~") (pintype "passive"))
(node (ref "U1") (pin "27") (pinfunction "GPIO16") (pintype "bidirectional"))
(node (ref "U5") (pin "14") (pinfunction "~{SHUTDOWN}") (pintype "input"))
)
(net (code "12") (name "/A_STATUS")
(node (ref "U1") (pin "31") (pinfunction "GPIO20") (pintype "bidirectional"))
(node (ref "U5") (pin "15") (pinfunction "STATUS") (pintype "output"))
)
(net (code "13") (name "/A_TX")
(node (ref "TP9") (pin "1") (pinfunction "1") (pintype "passive"))
(node (ref "U1") (pin "2") (pinfunction "GPIO0") (pintype "bidirectional"))
(node (ref "U5") (pin "24") (pinfunction "T1IN") (pintype "input"))
)
(net (code "14") (name "/BOOTSEL_SW")
(node (ref "R9") (pin "2") (pinfunction "~") (pintype "passive"))
(node (ref "SW1") (pin "1") (pinfunction "1") (pintype "passive"))
)
(net (code "15") (name "/B_CTS")
(node (ref "U1") (pin "17") (pinfunction "GPIO14") (pintype "bidirectional"))
(node (ref "U6") (pin "18") (pinfunction "ROUT2") (pintype "output"))
)
(net (code "16") (name "/B_DCD")
(node (ref "U1") (pin "13") (pinfunction "GPIO10") (pintype "bidirectional"))
(node (ref "U6") (pin "16") (pinfunction "ROUT4") (pintype "output"))
)
(net (code "17") (name "/B_DSR")
(node (ref "U1") (pin "12") (pinfunction "GPIO9") (pintype "bidirectional"))
(node (ref "U6") (pin "17") (pinfunction "ROUT3") (pintype "output"))
)
(net (code "18") (name "/B_DTR")
(node (ref "U1") (pin "11") (pinfunction "GPIO8") (pintype "bidirectional"))
(node (ref "U6") (pin "12") (pinfunction "DIN3") (pintype "input"))
)
(net (code "19") (name "/B_FORCEOFF_N")
(node (ref "R13") (pin "1") (pinfunction "~") (pintype "passive"))
(node (ref "U1") (pin "28") (pinfunction "GPIO17") (pintype "bidirectional"))
(node (ref "U6") (pin "22") (pinfunction "~{FORCEOFF}") (pintype "input"))
)
(net (code "20") (name "/B_INVALID")
(node (ref "U1") (pin "32") (pinfunction "GPIO21") (pintype "bidirectional"))
(node (ref "U6") (pin "21") (pinfunction "INVALID") (pintype "output"))
)
(net (code "21") (name "/B_RI")
(node (ref "U1") (pin "14") (pinfunction "GPIO11") (pintype "bidirectional"))
(node (ref "U6") (pin "15") (pinfunction "ROUT5") (pintype "output"))
)
(net (code "22") (name "/B_RTS")
(node (ref "U1") (pin "18") (pinfunction "GPIO15") (pintype "bidirectional"))
(node (ref "U6") (pin "13") (pinfunction "DIN2") (pintype "input"))
)
(net (code "23") (name "/B_RX")
(node (ref "TP12") (pin "1") (pinfunction "1") (pintype "passive"))
(node (ref "U1") (pin "16") (pinfunction "GPIO13") (pintype "bidirectional"))
(node (ref "U6") (pin "19") (pinfunction "ROUT1") (pintype "output"))
)
(net (code "24") (name "/B_TX")
(node (ref "TP11") (pin "1") (pinfunction "1") (pintype "passive"))
(node (ref "U1") (pin "15") (pinfunction "GPIO12") (pintype "bidirectional"))
(node (ref "U6") (pin "14") (pinfunction "DIN1") (pintype "input"))
)
(net (code "25") (name "/CC1")
(node (ref "J1") (pin "A5") (pinfunction "CC1") (pintype "bidirectional"))
(node (ref "R1") (pin "1") (pinfunction "~") (pintype "passive"))
)
(net (code "26") (name "/CC2")
(node (ref "J1") (pin "B5") (pinfunction "CC2") (pintype "bidirectional"))
(node (ref "R2") (pin "1") (pinfunction "~") (pintype "passive"))
)
(net (code "27") (name "/CPA_C1M")
(node (ref "C19") (pin "2") (pinfunction "~") (pintype "passive"))
(node (ref "U5") (pin "25") (pinfunction "C1-") (pintype "passive"))
)
(net (code "28") (name "/CPA_C1P")
(node (ref "C19") (pin "1") (pinfunction "~") (pintype "passive"))
(node (ref "U5") (pin "28") (pinfunction "C1+") (pintype "passive"))
)
(net (code "29") (name "/CPA_C2M")
(node (ref "C20") (pin "2") (pinfunction "~") (pintype "passive"))
(node (ref "U5") (pin "3") (pinfunction "C2-") (pintype "passive"))
)
(net (code "30") (name "/CPA_C2P")
(node (ref "C20") (pin "1") (pinfunction "~") (pintype "passive"))
(node (ref "U5") (pin "1") (pinfunction "C2+") (pintype "passive"))
)
(net (code "31") (name "/CPA_VM")
(node (ref "C22") (pin "1") (pinfunction "~") (pintype "passive"))
(node (ref "U5") (pin "4") (pinfunction "V-") (pintype "passive"))
)
(net (code "32") (name "/CPA_VP")
(node (ref "C21") (pin "1") (pinfunction "~") (pintype "passive"))
(node (ref "U5") (pin "27") (pinfunction "V+") (pintype "passive"))
)
(net (code "33") (name "/CPB_C1M")
(node (ref "C25") (pin "2") (pinfunction "~") (pintype "passive"))
(node (ref "U6") (pin "24") (pinfunction "C1-") (pintype "passive"))
)
(net (code "34") (name "/CPB_C1P")
(node (ref "C25") (pin "1") (pinfunction "~") (pintype "passive"))
(node (ref "U6") (pin "28") (pinfunction "C1+") (pintype "passive"))
)
(net (code "35") (name "/CPB_C2M")
(node (ref "C26") (pin "2") (pinfunction "~") (pintype "passive"))
(node (ref "U6") (pin "2") (pinfunction "C2-") (pintype "passive"))
)
(net (code "36") (name "/CPB_C2P")
(node (ref "C26") (pin "1") (pinfunction "~") (pintype "passive"))
(node (ref "U6") (pin "1") (pinfunction "C2+") (pintype "passive"))
)
(net (code "37") (name "/CPB_VM")
(node (ref "C28") (pin "1") (pinfunction "~") (pintype "passive"))
(node (ref "U6") (pin "3") (pinfunction "V-") (pintype "passive"))
)
(net (code "38") (name "/CPB_VP")
(node (ref "C27") (pin "1") (pinfunction "~") (pintype "passive"))
(node (ref "U6") (pin "27") (pinfunction "V+") (pintype "passive"))
)
(net (code "39") (name "/DB25_FG")
(node (ref "J2") (pin "1") (pinfunction "1") (pintype "passive"))
(node (ref "R11") (pin "1") (pinfunction "~") (pintype "passive"))
)
(net (code "40") (name "GND")
(node (ref "C1") (pin "2") (pinfunction "~") (pintype "passive"))
(node (ref "C2") (pin "2") (pinfunction "~") (pintype "passive"))
(node (ref "C3") (pin "2") (pinfunction "~") (pintype "passive"))
(node (ref "C4") (pin "2") (pinfunction "~") (pintype "passive"))
(node (ref "C5") (pin "2") (pinfunction "~") (pintype "passive"))
(node (ref "C6") (pin "2") (pinfunction "~") (pintype "passive"))
(node (ref "C7") (pin "2") (pinfunction "~") (pintype "passive"))
(node (ref "C8") (pin "2") (pinfunction "~") (pintype "passive"))
(node (ref "C9") (pin "2") (pinfunction "~") (pintype "passive"))
(node (ref "C10") (pin "2") (pinfunction "~") (pintype "passive"))
(node (ref "C11") (pin "2") (pinfunction "~") (pintype "passive"))
(node (ref "C12") (pin "2") (pinfunction "~") (pintype "passive"))
(node (ref "C13") (pin "2") (pinfunction "~") (pintype "passive"))
(node (ref "C14") (pin "2") (pinfunction "~") (pintype "passive"))
(node (ref "C15") (pin "2") (pinfunction "~") (pintype "passive"))
(node (ref "C16") (pin "2") (pinfunction "~") (pintype "passive"))
(node (ref "C17") (pin "2") (pinfunction "~") (pintype "passive"))
(node (ref "C18") (pin "2") (pinfunction "~") (pintype "passive"))
(node (ref "C21") (pin "2") (pinfunction "~") (pintype "passive"))
(node (ref "C22") (pin "2") (pinfunction "~") (pintype "passive"))
(node (ref "C23") (pin "2") (pinfunction "~") (pintype "passive"))
(node (ref "C24") (pin "2") (pinfunction "~") (pintype "passive"))
(node (ref "C27") (pin "2") (pinfunction "~") (pintype "passive"))
(node (ref "C28") (pin "2") (pinfunction "~") (pintype "passive"))
(node (ref "C29") (pin "2") (pinfunction "~") (pintype "passive"))
(node (ref "C30") (pin "2") (pinfunction "~") (pintype "passive"))
(node (ref "D1") (pin "2") (pinfunction "A") (pintype "passive"))
(node (ref "D2") (pin "1") (pinfunction "K") (pintype "passive"))
(node (ref "D3") (pin "1") (pinfunction "K") (pintype "passive"))
(node (ref "D4") (pin "1") (pinfunction "K") (pintype "passive"))
(node (ref "D5") (pin "1") (pinfunction "K") (pintype "passive"))
(node (ref "D6") (pin "1") (pinfunction "K") (pintype "passive"))
(node (ref "D7") (pin "1") (pinfunction "K") (pintype "passive"))
(node (ref "J1") (pin "A1") (pinfunction "GND") (pintype "passive"))
(node (ref "J1") (pin "A12") (pinfunction "GND") (pintype "passive"))
(node (ref "J1") (pin "B1") (pinfunction "GND") (pintype "passive"))
(node (ref "J1") (pin "B12") (pinfunction "GND") (pintype "passive"))
(node (ref "J2") (pin "7") (pinfunction "7") (pintype "passive"))
(node (ref "R1") (pin "2") (pinfunction "~") (pintype "passive"))
(node (ref "R2") (pin "2") (pinfunction "~") (pintype "passive"))
(node (ref "R3") (pin "2") (pinfunction "~") (pintype "passive"))
(node (ref "R5") (pin "2") (pinfunction "~") (pintype "passive"))
(node (ref "R11") (pin "2") (pinfunction "~") (pintype "passive"))
(node (ref "R12") (pin "2") (pinfunction "~") (pintype "passive"))
(node (ref "R13") (pin "2") (pinfunction "~") (pintype "passive"))
(node (ref "R14") (pin "2") (pinfunction "~") (pintype "passive"))
(node (ref "SW1") (pin "2") (pinfunction "2") (pintype "passive"))
(node (ref "SW2") (pin "2") (pinfunction "2") (pintype "passive"))
(node (ref "TP4") (pin "1") (pinfunction "1") (pintype "passive"))
(node (ref "U1") (pin "19") (pinfunction "TESTEN") (pintype "input"))
(node (ref "U1") (pin "57") (pinfunction "GND") (pintype "power_in"))
(node (ref "U2") (pin "4") (pinfunction "GND") (pintype "power_in"))
(node (ref "U3") (pin "2") (pinfunction "GND") (pintype "power_in"))
(node (ref "U4") (pin "2") (pinfunction "GND") (pintype "passive"))
(node (ref "U5") (pin "2") (pinfunction "GND") (pintype "power_in"))
(node (ref "U6") (pin "25") (pinfunction "GND") (pintype "power_in"))
(node (ref "Y1") (pin "2") (pinfunction "G") (pintype "passive"))
(node (ref "Y1") (pin "4") (pinfunction "G") (pintype "passive"))
)
(net (code "41") (name "/GP28")
(node (ref "TP8") (pin "1") (pinfunction "1") (pintype "passive"))
(node (ref "U1") (pin "40") (pinfunction "GPIO28/ADC2") (pintype "bidirectional"))
)
(net (code "42") (name "/LED_CD")
(node (ref "R17") (pin "1") (pinfunction "~") (pintype "passive"))
(node (ref "U1") (pin "36") (pinfunction "GPIO24") (pintype "bidirectional"))
)
(net (code "43") (name "/LED_CD_A")
(node (ref "D4") (pin "2") (pinfunction "A") (pintype "passive"))
(node (ref "R17") (pin "2") (pinfunction "~") (pintype "passive"))
)
(net (code "44") (name "/LED_PWR")
(node (ref "R15") (pin "1") (pinfunction "~") (pintype "passive"))
(node (ref "U1") (pin "34") (pinfunction "GPIO22") (pintype "bidirectional"))
)
(net (code "45") (name "/LED_PWR_A")
(node (ref "D2") (pin "2") (pinfunction "A") (pintype "passive"))
(node (ref "R15") (pin "2") (pinfunction "~") (pintype "passive"))
)
(net (code "46") (name "/LED_RD")
(node (ref "R19") (pin "1") (pinfunction "~") (pintype "passive"))
(node (ref "U1") (pin "38") (pinfunction "GPIO26/ADC0") (pintype "bidirectional"))
)
(net (code "47") (name "/LED_RD_A")
(node (ref "D6") (pin "2") (pinfunction "A") (pintype "passive"))
(node (ref "R19") (pin "2") (pinfunction "~") (pintype "passive"))
)
(net (code "48") (name "/LED_RI")
(node (ref "R20") (pin "1") (pinfunction "~") (pintype "passive"))
(node (ref "U1") (pin "39") (pinfunction "GPIO27/ADC1") (pintype "bidirectional"))
)
(net (code "49") (name "/LED_RI_A")
(node (ref "D7") (pin "2") (pinfunction "A") (pintype "passive"))
(node (ref "R20") (pin "2") (pinfunction "~") (pintype "passive"))
)
(net (code "50") (name "/LED_SD")
(node (ref "R18") (pin "1") (pinfunction "~") (pintype "passive"))
(node (ref "U1") (pin "37") (pinfunction "GPIO25") (pintype "bidirectional"))
)
(net (code "51") (name "/LED_SD_A")
(node (ref "D5") (pin "2") (pinfunction "A") (pintype "passive"))
(node (ref "R18") (pin "2") (pinfunction "~") (pintype "passive"))
)
(net (code "52") (name "/LED_TR")
(node (ref "R16") (pin "1") (pinfunction "~") (pintype "passive"))
(node (ref "U1") (pin "35") (pinfunction "GPIO23") (pintype "bidirectional"))
)
(net (code "53") (name "/LED_TR_A")
(node (ref "D3") (pin "2") (pinfunction "A") (pintype "passive"))
(node (ref "R16") (pin "2") (pinfunction "~") (pintype "passive"))
)
(net (code "54") (name "/QSPI_SCLK")
(node (ref "U1") (pin "52") (pinfunction "QSPI_SCLK") (pintype "output"))
(node (ref "U2") (pin "6") (pinfunction "CLK") (pintype "input"))
)
(net (code "55") (name "/QSPI_SD0")
(node (ref "U1") (pin "53") (pinfunction "QSPI_SD0") (pintype "bidirectional"))
(node (ref "U2") (pin "5") (pinfunction "DI/IO_{0}") (pintype "bidirectional"))
)
(net (code "56") (name "/QSPI_SD1")
(node (ref "U1") (pin "55") (pinfunction "QSPI_SD1") (pintype "bidirectional"))
(node (ref "U2") (pin "2") (pinfunction "DO/IO_{1}") (pintype "bidirectional"))
)
(net (code "57") (name "/QSPI_SD2")
(node (ref "U1") (pin "54") (pinfunction "QSPI_SD2") (pintype "bidirectional"))
(node (ref "U2") (pin "3") (pinfunction "~{WP}/IO_{2}") (pintype "bidirectional"))
)
(net (code "58") (name "/QSPI_SD3")
(node (ref "U1") (pin "51") (pinfunction "QSPI_SD3") (pintype "bidirectional"))
(node (ref "U2") (pin "7") (pinfunction "~{HOLD}/~{RESET}/IO_{3}") (pintype "bidirectional"))
)
(net (code "59") (name "/QSPI_SS")
(node (ref "R9") (pin "1") (pinfunction "~") (pintype "passive"))
(node (ref "U1") (pin "56") (pinfunction "~{QSPI_SS}") (pintype "output"))
(node (ref "U2") (pin "1") (pinfunction "~{CS}") (pintype "input"))
)
(net (code "60") (name "/RS_CTS")
(node (ref "J2") (pin "5") (pinfunction "5") (pintype "passive"))
(node (ref "U5") (pin "6") (pinfunction "T2OUT") (pintype "output"))
(node (ref "U6") (pin "5") (pinfunction "RIN2") (pintype "input"))
)
(net (code "61") (name "/RS_DCD")
(node (ref "J2") (pin "8") (pinfunction "8") (pintype "passive"))
(node (ref "U5") (pin "10") (pinfunction "T4OUT") (pintype "output"))
(node (ref "U6") (pin "7") (pinfunction "RIN4") (pintype "input"))
)
(net (code "62") (name "/RS_DSR")
(node (ref "J2") (pin "6") (pinfunction "6") (pintype "passive"))
(node (ref "U5") (pin "7") (pinfunction "T3OUT") (pintype "output"))
(node (ref "U6") (pin "6") (pinfunction "RIN3") (pintype "input"))
)
(net (code "63") (name "/RS_DTR")
(node (ref "J2") (pin "20") (pinfunction "P20") (pintype "passive"))
(node (ref "U5") (pin "11") (pinfunction "R3IN") (pintype "input"))
(node (ref "U6") (pin "11") (pinfunction "DOUT3") (pintype "output"))
)
(net (code "64") (name "/RS_FORCEON")
(node (ref "R14") (pin "1") (pinfunction "~") (pintype "passive"))
(node (ref "U1") (pin "29") (pinfunction "GPIO18") (pintype "bidirectional"))
(node (ref "U5") (pin "13") (pinfunction "ONLINE") (pintype "input"))
(node (ref "U6") (pin "23") (pinfunction "FORCEON") (pintype "input"))
)
(net (code "65") (name "/RS_RI")
(node (ref "J2") (pin "22") (pinfunction "P22") (pintype "passive"))
(node (ref "U5") (pin "12") (pinfunction "T5OUT") (pintype "output"))
(node (ref "U6") (pin "8") (pinfunction "RIN5") (pintype "input"))
)
(net (code "66") (name "/RS_RTS")
(node (ref "J2") (pin "4") (pinfunction "4") (pintype "passive"))
(node (ref "U5") (pin "9") (pinfunction "R2IN") (pintype "input"))
(node (ref "U6") (pin "10") (pinfunction "DOUT2") (pintype "output"))
)
(net (code "67") (name "/RS_RXD")
(node (ref "J2") (pin "3") (pinfunction "3") (pintype "passive"))
(node (ref "U5") (pin "5") (pinfunction "T1OUT") (pintype "output"))
(node (ref "U6") (pin "4") (pinfunction "RIN1") (pintype "input"))
)
(net (code "68") (name "/RS_TXD")
(node (ref "J2") (pin "2") (pinfunction "2") (pintype "passive"))
(node (ref "U5") (pin "8") (pinfunction "R1IN") (pintype "input"))
(node (ref "U6") (pin "9") (pinfunction "DOUT1") (pintype "output"))
)
(net (code "69") (name "/RUN")
(node (ref "R10") (pin "2") (pinfunction "~") (pintype "passive"))
(node (ref "SW2") (pin "1") (pinfunction "1") (pintype "passive"))
(node (ref "TP7") (pin "1") (pinfunction "1") (pintype "passive"))
(node (ref "U1") (pin "26") (pinfunction "RUN") (pintype "input"))
)
(net (code "70") (name "/SWCLK")
(node (ref "TP5") (pin "1") (pinfunction "1") (pintype "passive"))
(node (ref "U1") (pin "24") (pinfunction "SWCLK") (pintype "input"))
)
(net (code "71") (name "/SWDIO")
(node (ref "TP6") (pin "1") (pinfunction "1") (pintype "passive"))
(node (ref "U1") (pin "25") (pinfunction "SWDIO") (pintype "bidirectional"))
)
(net (code "72") (name "/USB_CONN_DM")
(node (ref "J1") (pin "A7") (pinfunction "D-") (pintype "bidirectional"))
(node (ref "J1") (pin "B7") (pinfunction "D-") (pintype "bidirectional"))
(node (ref "R7") (pin "1") (pinfunction "~") (pintype "passive"))
(node (ref "U4") (pin "3") (pinfunction "I/O2") (pintype "passive"))
(node (ref "U4") (pin "4") (pinfunction "I/O2") (pintype "passive"))
)
(net (code "73") (name "/USB_CONN_DP")
(node (ref "J1") (pin "A6") (pinfunction "D+") (pintype "bidirectional"))
(node (ref "J1") (pin "B6") (pinfunction "D+") (pintype "bidirectional"))
(node (ref "R6") (pin "1") (pinfunction "~") (pintype "passive"))
(node (ref "U4") (pin "1") (pinfunction "I/O1") (pintype "passive"))
(node (ref "U4") (pin "6") (pinfunction "I/O1") (pintype "passive"))
)
(net (code "74") (name "/USB_DM")
(node (ref "R7") (pin "2") (pinfunction "~") (pintype "passive"))
(node (ref "U1") (pin "46") (pinfunction "USB_DM") (pintype "bidirectional"))
)
(net (code "75") (name "/USB_DP")
(node (ref "R6") (pin "2") (pinfunction "~") (pintype "passive"))
(node (ref "U1") (pin "47") (pinfunction "USB_DP") (pintype "bidirectional"))
)
(net (code "76") (name "/USB_SHIELD")
(node (ref "C1") (pin "1") (pinfunction "~") (pintype "passive"))
(node (ref "J1") (pin "SH") (pinfunction "SHIELD") (pintype "passive"))
(node (ref "R3") (pin "1") (pinfunction "~") (pintype "passive"))
)
(net (code "77") (name "VBUS")
(node (ref "C2") (pin "1") (pinfunction "~") (pintype "passive"))
(node (ref "D1") (pin "1") (pinfunction "K") (pintype "passive"))
(node (ref "F1") (pin "2") (pinfunction "~") (pintype "passive"))
(node (ref "R4") (pin "1") (pinfunction "~") (pintype "passive"))
(node (ref "TP1") (pin "1") (pinfunction "1") (pintype "passive"))
(node (ref "U3") (pin "1") (pinfunction "VIN") (pintype "power_in"))
(node (ref "U3") (pin "3") (pinfunction "EN") (pintype "input"))
(node (ref "U4") (pin "5") (pinfunction "VBUS") (pintype "passive"))
)
(net (code "78") (name "VBUS_IN")
(node (ref "F1") (pin "1") (pinfunction "~") (pintype "passive"))
(node (ref "J1") (pin "A4") (pinfunction "VBUS") (pintype "passive"))
(node (ref "J1") (pin "A9") (pinfunction "VBUS") (pintype "passive"))
(node (ref "J1") (pin "B4") (pinfunction "VBUS") (pintype "passive"))
(node (ref "J1") (pin "B9") (pinfunction "VBUS") (pintype "passive"))
)
(net (code "79") (name "/VBUS_SENSE")
(node (ref "R4") (pin "2") (pinfunction "~") (pintype "passive"))
(node (ref "R5") (pin "1") (pinfunction "~") (pintype "passive"))
(node (ref "U1") (pin "41") (pinfunction "GPIO29/ADC3") (pintype "bidirectional"))
)
(net (code "80") (name "/XIN")
(node (ref "C16") (pin "1") (pinfunction "~") (pintype "passive"))
(node (ref "U1") (pin "20") (pinfunction "XIN") (pintype "input"))
(node (ref "Y1") (pin "1") (pinfunction "1") (pintype "passive"))
)
(net (code "81") (name "/XOUT")
(node (ref "R8") (pin "1") (pinfunction "~") (pintype "passive"))
(node (ref "U1") (pin "21") (pinfunction "XOUT") (pintype "output"))
)
(net (code "82") (name "/XTAL_OUT")
(node (ref "C17") (pin "1") (pinfunction "~") (pintype "passive"))
(node (ref "R8") (pin "2") (pinfunction "~") (pintype "passive"))
(node (ref "Y1") (pin "3") (pinfunction "3") (pintype "passive"))
)
)
)