hardware: SB-LoRa rev 2 U1 and U2 swapped for in-stock parts: U1 S29AL008J70TFI010 (1 MB, same pinout as the out-of-stock S29AL016J, top boot), U2 TL16C2550RHBR (channel A of a dual UART, 16-byte FIFOs) for the out-of-stock SC16C650B, with its own pin map, CSB/RXB/CTS tied off, and R5 pulling INTA low until the driver enables it. Rerouted: DRC 0 unconnected, verify.py checks the new U2 wiring and passes; renders regenerated

This commit is contained in:
rich committed 2026-11-26 11:32:14 -05:00
1 parent 8942660ea3
commit c463b9b870
8 files changed
+15625 -14938

No files matched your search

+4 -4
View File
@@ -35,7 +35,7 @@ The XIAO nRF52840 and the Wio-SX1262 board keep their roles but sit flat on the
A 16-bit-wide 3.3 V NOR flash at the start of csSlot0 (CS0*), as the Springboard Development Guide requires for the module to be recognised (§2.1). With a Palm-MakeROM header and the app on it, the Visor mounts the module on insertion and switches to the app (§3.3; on Palm OS 3.5 and later the Welcome app is chosen by a ROM token, so the database can stay "VisorMesh").
- Part: Infineon S29AL016J70TFI020 (2 MB, x16, 70 ns, TSOP-48, 1.2 mm, bottom boot). Its IDs (01h, 2249h) and sector layout (16-8-8-32 KB, then 64 KB) are the same as the Am29LV160BB's, so Handspring's Flash Manager drives it unchanged. The pin table in `rev2/netlist.py` is checked against the datasheet. Room for the app and the Map basemap.
- Part: Infineon S29AL008J70TFI010 (1 MB, x16, 70 ns, TSOP-48, 1.2 mm, top boot; LCSC C2759923). It replaced the S29AL016J70TFI020 (2 MB) on 2026-11-26, when that was out of stock at JLC: same family and pinout, with pin 9 (A19 on the 2 MB part, slot A20 on the board) unused. Its IDs (01h, 22DAh) and top-boot sector layout are the Am29LV800BT's. 1 MB holds the installer and the app (143 KB) with room to spare, but not the 2 MB Map basemap. The 2 MB part still fits the footprint. The pin table in `rev2/netlist.py` is checked against the datasheet.
- WE* is wired so the app can rewrite the flash itself: HotSync a new .prc to RAM, then update the module from the app.
- A write-protect jumper: JP2 in the WE# line, bridged by default, cut to protect.
- Software: only the app's own code and resources are read-only when it runs from the module. Checked: all of its data (channels, contacts, messages, beam inbox, screenshots, map) is in RAM databases on card 0, and it never writes to its own database, so nothing changes. To keep the Map basemap in flash too, `map_form.c` must also look on card 1. The alarms (`bgcheck.c`, `sb_spi.c`) point at the app's database, and they go away with the module, which is fine because the radio does too.
@@ -44,7 +44,7 @@ A 16-bit-wide 3.3 V NOR flash at the start of csSlot0 (CS0*), as the Springboard
2. The image is wrapped in an updater .prc, as Handspring's Card Updater stationery does, and installed with HotSync like any app.
3. The updater runs from RAM, erases and writes the flash, checks it, and asks for the module to be pulled and reinserted.
- A blank or bad image has no valid header, so the module looks like rev 1 (hardware present, nothing mounted) and the updater can still write it. The first programming works the same way.
- Handspring's Flash Manager source (same zip, `FlashManager Resources`) has drivers for AMD-style (29LV160 family) and SST 4 KB-sector parts. Pick a chip it supports, or add its ID to the table. Infineon S29AL016J is the in-production 29LV160 equivalent.
- Handspring's Flash Manager source (same zip, `FlashManager Resources`) has drivers for AMD-style (29LV160 family) and SST 4 KB-sector parts. Pick a chip it supports, or add its ID to the table. The S29AL008J/016J are the in-production 29LV800/160 equivalents.
- To check: what the launcher does when VisorMesh is in both RAM and the module during development.
- **Decided: the flash holds a small installer, and VisorMesh runs from RAM.** The Dev Guide (§1.5) says a module whose code installs interrupt handlers needs a Setup app, or the Visor soft-resets when the module is pulled, because the handler's code goes with it. VisorMesh's SB-LoRa transport installs one. So the flash's Welcome app copies VisorMesh into RAM when it's missing or older, and launches it; the app then runs exactly as it does now. This also settles the RAM-and-module question above.
@@ -54,7 +54,7 @@ This takes CS0*, so the radio link moves to csSlot1 (CS1*). The flash needs abou
A 16550-style UART on csSlot1 replaces rev 1's SC16IS740 SPI bridge and its latch logic (U1-U3). The flash already needs the full address and data bus, so the UART costs little routing, and each register access is one bus cycle instead of several per SPI bit.
- Part: NXP SC16C650BIBS (32-byte FIFOs, HVQFN32, LCSC C729132). The SC16C750BIBS (64-byte) has the same HVQFN32 pinout and fits the footprint; the SC16C550B doesn't. At 115200 baud a 32-byte FIFO fills in 2.8 ms.
- Part: TI TL16C2550RHBR (dual UART, channel A used, 16-byte FIFOs, VQFN-32 RHB, LCSC C2653222; TI lists it as last-time-buy). It replaced the NXP SC16C650BIBS (32-byte FIFOs) on 2026-11-26, when that and the pin-compatible SC16C750B were out of stock at JLC; the TI part has a different pinout, so the board was rerouted. Channel B is idle: CSB tied inactive, RXB idle-high, CTSA/CTSB asserted. INTA is high-impedance until MCR bit 3 is set, so R5 pulls UART_INT low. At 115200 baud a 16-byte FIFO fills in 1.4 ms, half the SC16C650B's margin: the rev 2 driver should set a low RX trigger level. Like the 16C650 it has an EFR (auto RTS/CTS).
- Wiring:
- Strobes: the slot may assert OE*/WE* at the same moment as CS1* (Dev Guide table 6-2), but the UART wants IOR/IOW 10 ns after its CS. So the UART's CS is tied active and a SN74LVC2G32 makes IOR = OE* OR CS1* and IOW = WE* OR CS1*. Nothing else on the bus is affected: the UART only drives the data bus while IOR is low.
- Register select A0-A2 of the UART from A1-A3 of the slot, so the registers sit at word addresses.
@@ -124,7 +124,7 @@ If JLC's review asks about copper at the board edge, or about the two small tabs
**4. Assembly.** Turn on PCB assembly, top side only, for 2 or more of the 5 boards.
- Upload `visormesh_bom_jlcpcb.csv` and `visormesh_cpl_jlcpcb.csv`. All 24 parts are on the top. Check that every line found its LCSC part and has stock, especially U1 (S29AL016J, C914935) and U2 (SC16C650B, C729132). Expect extended-part fees for the flash, the UART, the crystal and some of the logic.
- Upload `visormesh_bom_jlcpcb.csv` and `visormesh_cpl_jlcpcb.csv`. All 25 parts are on the top. Check that every line found its LCSC part and has stock, especially U1 (S29AL008J70TFI010, C2759923) and U2 (TL16C2550RHBR, C2653222), which are low-stock extended parts. Expect extended-part fees for the flash, the UART, the crystal and some of the logic.
- **Check the placement preview before paying.** The CPL has no rotation corrections yet, so look at each IC's pin 1 against the silkscreen triangle: U1 (pin 1 top left, beside the triangle), U2 (QFN, pin 1 dot), U3-U6 (SC-70 and VSSOP, which KiCad and JLC often disagree on), Y1 and D1 (cathode bar). Fix any that are off in the preview, and note the corrections here for next time.
- If JLC wants tooling holes or edge rails, take rails; holes in the board itself would land on parts.
+4 -3
View File
@@ -151,6 +151,7 @@ place("U1", 101.0, 104.5, 0) # flash: address pins left, data right
place("C2", 113.5, 104.5, 90) # U1 VCC (pin 37, right side)
place("JP2", 101.0, 95.5, 0) # WE* -> flash WE#
place("R4", 105.5, 95.5, 90)
place("R5", 96.5, 92.5, 90) # UART INT pull-down, beside U4
place("U2", 83.0, 89.0, 0) # UART near D0-D2 and A1-A3
place("C3", 83.0, 84.0, 0)
place("Y1", 83.0, 98.0, 0)
@@ -252,13 +253,13 @@ for ref, fp in placed.items():
fanout(p, 1 if ox > 0 else -1, 0)
else:
fanout(p, 0, 1 if oy > 0 else -1)
# U2: GND pins 7, 13, 25, 26 join the exposed pad on F.Cu; the pad gets four vias to the plane
# U2: GND pins 7, 13, 16, 25 join the exposed pad on F.Cu; the pad gets four vias to the plane
u2 = placed["U2"]; ep = [p for p in u2.Pads() if p.GetNumber() == "33"][0]
ec = ep.GetPosition()
for p in u2.Pads():
if p.GetNumber() in ("7", "13", "25", "26"):
if p.GetNumber() in ("7", "13", "16", "25"):
pp = p.GetPosition() # straight in from the pin, so it stays in its own lane
lim = MM(1.3) # stay on the 3.1 mm exposed pad
lim = MM(1.5) # stay on the 3.45 mm exposed pad
clamp = lambda v, c: max(c - lim, min(c + lim, v))
end = (pcbnew.VECTOR2I(ec.x, clamp(pp.y, ec.y)) if abs(pp.x - ec.x) > abs(pp.y - ec.y)
else pcbnew.VECTOR2I(clamp(pp.x, ec.x), ec.y))
+71 -68
View File
@@ -1,114 +1,113 @@
** Drc report for visormesh.kicad_pcb **
** Created on 2026-11-26T10:30:38 **
** Created on 2026-11-26T11:31:35 **
** Report includes: Errors, Warnings **
** Found 54 DRC violations **
[lib_footprint_issues]: The current configuration does not include the footprint library 'Capacitor_SMD'
Local override; warning
@(83.0000 mm, 84.0000 mm): Footprint C3
** Found 55 DRC violations **
[lib_footprint_issues]: The current configuration does not include the footprint library 'visormesh'
Local override; warning
@(112.5000 mm, 59.4682 mm): Footprint X2
[lib_footprint_issues]: The current configuration does not include the footprint library 'Resistor_SMD'
Local override; warning
@(105.5000 mm, 95.5000 mm): Footprint R4
@(0.0000 mm, 0.0000 mm): Footprint J1
[lib_footprint_issues]: The current configuration does not include the footprint library 'TestPoint'
Local override; warning
@(100.2500 mm, 59.3682 mm): Footprint TP4
[lib_footprint_issues]: The current configuration does not include the footprint library 'visormesh'
Local override; warning
@(87.4000 mm, 59.4682 mm): Footprint X1
[lib_footprint_issues]: The current configuration does not include the footprint library 'TestPoint'
Local override; warning
@(100.2500 mm, 56.5682 mm): Footprint TP3
[lib_footprint_issues]: The current configuration does not include the footprint library 'Capacitor_SMD'
Local override; warning
@(92.0000 mm, 114.0000 mm): Footprint C1
[lib_footprint_issues]: The current configuration does not include the footprint library 'Package_SO'
Local override; warning
@(95.0000 mm, 78.5000 mm): Footprint U5
[lib_footprint_issues]: The current configuration does not include the footprint library 'Capacitor_SMD'
Local override; warning
@(113.5000 mm, 104.5000 mm): Footprint C2
[lib_footprint_issues]: The current configuration does not include the footprint library 'Resistor_SMD'
Local override; warning
@(88.0000 mm, 78.5000 mm): Footprint R3
[lib_footprint_issues]: The current configuration does not include the footprint library 'Capacitor_SMD'
Local override; warning
@(114.5000 mm, 89.0000 mm): Footprint C4
[lib_footprint_issues]: The current configuration does not include the footprint library 'Package_DFN_QFN'
Local override; warning
@(83.0000 mm, 89.0000 mm): Footprint U2
[lib_footprint_issues]: The current configuration does not include the footprint library 'Resistor_SMD'
Local override; warning
@(105.0000 mm, 78.5000 mm): Footprint R2
@(100.2500 mm, 50.9682 mm): Footprint TP1
[lib_footprint_issues]: The current configuration does not include the footprint library 'Package_SO'
Local override; warning
@(101.0000 mm, 104.5000 mm): Footprint U1
[lib_footprint_issues]: The current configuration does not include the footprint library 'TestPoint'
Local override; warning
@(100.2500 mm, 53.7682 mm): Footprint TP2
[lib_footprint_issues]: The current configuration does not include the footprint library 'Crystal'
Local override; warning
@(83.0000 mm, 98.0000 mm): Footprint Y1
[lib_footprint_issues]: The current configuration does not include the footprint library 'Capacitor_SMD'
Local override; warning
@(95.0000 mm, 81.5000 mm): Footprint C8
[lib_footprint_issues]: The current configuration does not include the footprint library 'Capacitor_SMD'
Local override; warning
@(95.0000 mm, 75.5000 mm): Footprint C9
[lib_footprint_issues]: The current configuration does not include the footprint library 'Capacitor_SMD'
Local override; warning
@(87.0000 mm, 98.0000 mm): Footprint C7
[lib_footprint_issues]: The current configuration does not include the footprint library 'Capacitor_SMD'
Local override; warning
@(79.0000 mm, 98.0000 mm): Footprint C6
@(114.5000 mm, 89.0000 mm): Footprint C4
[lib_footprint_issues]: The current configuration does not include the footprint library 'Capacitor_SMD'
Local override; warning
@(101.0000 mm, 75.5000 mm): Footprint C11
[lib_footprint_issues]: The current configuration does not include the footprint library 'Capacitor_SMD'
[lib_footprint_issues]: The current configuration does not include the footprint library 'Resistor_SMD'
Local override; warning
@(93.0000 mm, 89.0000 mm): Footprint C5
@(105.5000 mm, 95.5000 mm): Footprint R4
[lib_footprint_issues]: The current configuration does not include the footprint library 'Capacitor_SMD'
Local override; warning
@(100.2500 mm, 66.9682 mm): Footprint C12
[lib_footprint_issues]: The current configuration does not include the footprint library 'Diode_SMD'
Local override; warning
@(112.0000 mm, 78.5000 mm): Footprint D1
[lib_footprint_issues]: The current configuration does not include the footprint library 'TestPoint'
[lib_footprint_issues]: The current configuration does not include the footprint library 'Package_DFN_QFN'
Local override; warning
@(100.2500 mm, 53.7682 mm): Footprint TP2
@(83.0000 mm, 89.0000 mm): Footprint U2
[lib_footprint_issues]: The current configuration does not include the footprint library 'Capacitor_SMD'
Local override; warning
@(113.5000 mm, 104.5000 mm): Footprint C2
[lib_footprint_issues]: The current configuration does not include the footprint library 'visormesh'
Local override; warning
@(87.4000 mm, 59.4682 mm): Footprint X1
[lib_footprint_issues]: The current configuration does not include the footprint library 'Resistor_SMD'
Local override; warning
@(105.0000 mm, 78.5000 mm): Footprint R2
[lib_footprint_issues]: The current configuration does not include the footprint library 'Jumper'
Local override; warning
@(116.5000 mm, 78.5000 mm): Footprint JP1
[lib_footprint_issues]: The current configuration does not include the footprint library 'Capacitor_SMD'
Local override; warning
@(101.0000 mm, 81.5000 mm): Footprint C10
[lib_footprint_issues]: The current configuration does not include the footprint library 'Resistor_SMD'
Local override; warning
@(90.5000 mm, 78.5000 mm): Footprint R1
[lib_footprint_issues]: The current configuration does not include the footprint library 'Package_TO_SOT_SMD'
Local override; warning
@(101.0000 mm, 78.5000 mm): Footprint U6
[lib_footprint_issues]: The current configuration does not include the footprint library 'Capacitor_SMD'
Local override; warning
@(87.0000 mm, 98.0000 mm): Footprint C7
[lib_footprint_issues]: The current configuration does not include the footprint library 'TestPoint'
Local override; warning
@(100.2500 mm, 59.3682 mm): Footprint TP4
[lib_footprint_issues]: The current configuration does not include the footprint library 'Capacitor_SMD'
Local override; warning
@(95.0000 mm, 75.5000 mm): Footprint C9
[lib_footprint_issues]: The current configuration does not include the footprint library 'visormesh'
Local override; warning
@(0.0000 mm, 0.0000 mm): Footprint J1
[lib_footprint_issues]: The current configuration does not include the footprint library 'Package_TO_SOT_SMD'
@(112.5000 mm, 59.4682 mm): Footprint X2
[lib_footprint_issues]: The current configuration does not include the footprint library 'Resistor_SMD'
Local override; warning
@(93.0000 mm, 92.5000 mm): Footprint U4
@(96.5000 mm, 92.5000 mm): Footprint R5
[lib_footprint_issues]: The current configuration does not include the footprint library 'Capacitor_SMD'
Local override; warning
@(95.0000 mm, 81.5000 mm): Footprint C8
[lib_footprint_issues]: The current configuration does not include the footprint library 'Jumper'
Local override; warning
@(101.0000 mm, 95.5000 mm): Footprint JP2
[lib_footprint_issues]: The current configuration does not include the footprint library 'TestPoint'
[lib_footprint_issues]: The current configuration does not include the footprint library 'Package_TO_SOT_SMD'
Local override; warning
@(100.2500 mm, 50.9682 mm): Footprint TP1
[lib_footprint_issues]: The current configuration does not include the footprint library 'Crystal'
@(93.0000 mm, 92.5000 mm): Footprint U4
[lib_footprint_issues]: The current configuration does not include the footprint library 'Capacitor_SMD'
Local override; warning
@(83.0000 mm, 98.0000 mm): Footprint Y1
@(101.0000 mm, 81.5000 mm): Footprint C10
[lib_footprint_issues]: The current configuration does not include the footprint library 'Capacitor_SMD'
Local override; warning
@(93.0000 mm, 89.0000 mm): Footprint C5
[lib_footprint_issues]: The current configuration does not include the footprint library 'Package_SO'
Local override; warning
@(114.5000 mm, 92.5000 mm): Footprint U3
[lib_footprint_issues]: The current configuration does not include the footprint library 'Capacitor_SMD'
Local override; warning
@(79.0000 mm, 98.0000 mm): Footprint C6
[lib_footprint_issues]: The current configuration does not include the footprint library 'Capacitor_SMD'
Local override; warning
@(83.0000 mm, 84.0000 mm): Footprint C3
[lib_footprint_issues]: The current configuration does not include the footprint library 'Capacitor_SMD'
Local override; warning
@(92.0000 mm, 114.0000 mm): Footprint C1
[lib_footprint_issues]: The current configuration does not include the footprint library 'Resistor_SMD'
Local override; warning
@(90.5000 mm, 78.5000 mm): Footprint R1
[lib_footprint_issues]: The current configuration does not include the footprint library 'Package_SO'
Local override; warning
@(95.0000 mm, 78.5000 mm): Footprint U5
[lib_footprint_issues]: The current configuration does not include the footprint library 'Resistor_SMD'
Local override; warning
@(88.0000 mm, 78.5000 mm): Footprint R3
[lib_footprint_issues]: The current configuration does not include the footprint library 'TestPoint'
Local override; warning
@(100.2500 mm, 56.5682 mm): Footprint TP3
[lib_footprint_issues]: The current configuration does not include the footprint library 'visormesh'
Local override; warning
@(100.2500 mm, 59.9682 mm): Footprint BT1
[silk_over_copper]: Silkscreen clipped by solder mask
Local override; warning
@(87.4000 mm, 50.1182 mm): Footprint text of X1 (USB)
@(86.1300 mm, 50.8992 mm): PTH pad SWDIO [SWDIO] of X1
[silk_over_copper]: Silkscreen clipped by solder mask
Local override; warning
@(81.0000 mm, 48.9182 mm): Segment of X1 on F.Silkscreen
@@ -137,6 +136,10 @@
Local override; warning
@(81.0000 mm, 48.9182 mm): Segment of X1 on F.Silkscreen
@(79.3200 mm, 67.0882 mm): PTH pad 7 [XIAO_TX] of X1
[silk_over_copper]: Silkscreen clipped by solder mask
Local override; warning
@(87.4000 mm, 50.1182 mm): Footprint text of X1 (USB)
@(86.1300 mm, 50.8992 mm): PTH pad SWDIO [SWDIO] of X1
[silk_over_copper]: Silkscreen clipped by solder mask
Local override; warning
@(93.8000 mm, 48.9182 mm): Segment of X1 on F.Silkscreen
File diff suppressed because it is too large. Load diff
+17 -15
View File
@@ -10,9 +10,9 @@ Every signal that crosses VSB <-> 3V3X goes through an SN74LVC1T45/2T45 (Ioff on
so neither domain can back-power the other.
Bus (Springboard A[23:0] are byte addresses; every access is 16 bits wide, so A0 is unused)
csSlot0: U1 S29AL016J NOR flash, 1M x 16. Holds the module image (header + installer + app).
csSlot0: U1 S29AL008J NOR flash, 512K x 16 (pin 9, slot A20, is unused on this size). Holds the module image (header + installer + app).
Flash A0-A19 = slot A1-A20. WE# goes through JP2 (cut to write-protect).
csSlot1: U2 SC16C650B UART, registers at word addresses (UART A0-A2 = slot A1-A3), data on D0-D7.
csSlot1: U2 TL16C2550 dual UART, channel A only, registers at word addresses (UART A0-A2 = slot A1-A3), data on D0-D7.
The slot allows OE*/WE* at the same moment as CS1* (Dev Guide table 6-2), but the UART
wants its strobe 10 ns after CS. So the UART's CS is tied active and U3 makes the strobes:
IOR = OE* OR CS1*, IOW = WE* OR CS1*.
@@ -26,10 +26,10 @@ Pin tables that still need checking against a datasheet are marked VERIFY.
PARTS = {
"J1": ("MCS-068SMA1-TR30", None, "SPRINGBOARD_68_STRADDLE", "",
"Robinson Nugent / 3M PC Card receptacle, card side, straddle mount, on a 0.8 mm board. Push it on with the board's two tabs in its ear holes, then hand-solder both rows", True),
"U1": ("S29AL016J70TFI020", "Package_SO", "TSOP-I-48_18.4x12mm_P0.5mm", "C914935",
"2 MB NOR flash, x16, 70 ns, csSlot0", False),
"U2": ("SC16C650BIBS", "Package_DFN_QFN", "HVQFN-32-1EP_5x5mm_P0.5mm_EP3.1x3.1mm", "C729132",
"UART, 32-byte FIFOs, csSlot1 (SC16C750BIBS fits the same footprint)", False),
"U1": ("S29AL008J70TFI010", "Package_SO", "TSOP-I-48_18.4x12mm_P0.5mm", "C2759923",
"1 MB NOR flash, x16, 70 ns, top boot, csSlot0 (S29AL016J pin-compatible)", False),
"U2": ("TL16C2550RHBR", "Package_DFN_QFN", "Texas_RHB0032E_VQFN-32-1EP_5x5mm_P0.5mm_EP3.45x3.45mm", "C2653222",
"Dual UART, channel A used, 16-byte FIFOs, csSlot1", False),
"U3": ("SN74LVC2G32DCUR", "Package_SO", "VSSOP-8_2.3x2mm_P0.5mm", "C91874", "OR: UART read/write strobes", False),
"U4": ("SN74LVC2G04DCKR", "Package_TO_SOT_SMD", "SOT-363_SC-70-6", "C105251", "Inverters: INT -> IRQ*, RESET* -> RESET", False),
"U5": ("SN74LVC2T45DCUR", "Package_SO", "VSSOP-8_2.3x2mm_P0.5mm", "C15741",
@@ -52,6 +52,7 @@ PARTS = {
"R2": ("100k", "Resistor_SMD", "R_0603_1608Metric", "C25803", "UART RX idle-high pull-up", False),
"R3": ("100k", "Resistor_SMD", "R_0603_1608Metric", "C25803", "Visor-present pull-down", False),
"R4": ("10k", "Resistor_SMD", "R_0603_1608Metric", "C25804", "Flash WE# pull-up (write-protect with JP2 cut)", False),
"R5": ("100k", "Resistor_SMD", "R_0603_1608Metric", "C25803", "UART INT pull-down (INTA floats until MCR bit 3 is set)", False),
"D1": ("B5819W", "Diode_SMD", "D_SOD-123", "C8598", "VDOCK -> XIAO VBUS (only if JP1 bridged)", False),
"JP1": ("VDOCK EN", "Jumper", "SolderJumper-2_P1.3mm_Open_RoundedPad1.0x1.5mm", "", "Open by default", False),
"JP2": ("FLASH WE", "Jumper", "SolderJumper-2_P1.3mm_Bridged_RoundedPad1.0x1.5mm", "",
@@ -102,8 +103,8 @@ for p, n in SB.items():
def c(ref, pad, net):
CONN[(ref, str(pad))] = net
# U1 S29AL016J, 48-pin standard TSOP (datasheet figure 3.1). The -020 suffix is the bottom-boot part:
# IDs 01h/2249h, the same as the Am29LV160BB in Handspring's flash driver table.
# U1 S29AL008J, 48-pin standard TSOP, the same pinout as the S29AL016J it replaced (out of stock) with pin 9
# (A19 there) unused. The -010 suffix is the top-boot part: IDs 01h/22DAh, as the Am29LV800BT.
FLASH_A = {25: 0, 24: 1, 23: 2, 22: 3, 21: 4, 20: 5, 19: 6, 18: 7, 8: 8, 7: 9, 6: 10, 5: 11, 4: 12,
3: 13, 2: 14, 1: 15, 48: 16, 17: 17, 16: 18, 9: 19}
for pad, bit in FLASH_A.items():
@@ -118,13 +119,14 @@ for pad, net in {11: "WE_FL_N", 12: "RESET_N", 26: "CS0_N", 27: "GND", 28: "OE_N
c("JP2", 1, "WE_N"); c("JP2", 2, "WE_FL_N")
c("R4", 1, "VSB"); c("R4", 2, "WE_FL_N")
# U2 SC16C650B HVQFN32 (NXP datasheet table 2; the SC16C750B matches, the SC16C550B does not).
# CS, IOR, IOW are the active-low inputs in this package. The exposed pad (33 in KiCad's SOT617-1 footprint) is ground.
for pad, net in {1: "D5", 2: "D6", 3: "D7", 4: "UART_BAUD", 5: "UART_RX", 6: "UART_TX", 7: "GND",
8: "UART_BAUD", 9: "XTAL1", 10: "XTAL2", 11: "UART_IOW_N", 13: "GND", 14: "UART_IOR_N",
16: "A3", 17: "A2", 18: "A1", 20: "UART_INT", 24: "UART_RESET", 25: "GND", 26: "GND",
27: "VSB", 28: "D0", 29: "D1", 30: "D2", 31: "D3", 32: "D4", 33: "GND"}.items():
c("U2", pad, net) # 4 RCLK = 8 BAUDOUT; 25 CTS / 26 DSR held asserted; 12 n.c.; 15, 19, 21-23 outputs unused
# U2 TL16C2550 VQFN-32 RHB (TI SLWS161E pin functions). Channel A only; CSA is tied active and U3 gates the
# strobes, CSB is tied inactive. CTSA/CTSB held asserted, RXB held idle. The exposed pad (33) is ground.
for pad, net in {1: "D6", 2: "D7", 3: "VSB", 4: "UART_RX", 5: "UART_TX", 7: "GND", 8: "VSB",
10: "XTAL1", 11: "XTAL2", 12: "UART_IOW_N", 13: "GND", 14: "UART_IOR_N", 16: "GND",
18: "A3", 19: "A2", 20: "A1", 21: "UART_INT", 24: "UART_RESET", 25: "GND", 26: "VSB",
27: "D0", 28: "D1", 29: "D2", 30: "D3", 31: "D4", 32: "D5", 33: "GND"}.items():
c("U2", pad, net) # 6 TXB, 15 RTSB, 22 INTB, 23 RTSA unused outputs; 9, 17 n.c.
c("R5", 1, "UART_INT"); c("R5", 2, "GND")
# Y1 3225 4-pad: 1/3 crystal, 2/4 case
c("Y1", 1, "XTAL1"); c("Y1", 3, "XTAL2"); c("Y1", 2, "GND"); c("Y1", 4, "GND")
c("C6", 1, "XTAL1"); c("C6", 2, "GND"); c("C7", 1, "XTAL2"); c("C7", 2, "GND")
Binary file not shown.

Before

Width:  |  Height:  |  Size: 50 KiB

After

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 73 KiB

After

Width:  |  Height:  |  Size: 73 KiB

+6 -2
View File
@@ -49,9 +49,13 @@ check(sorted(n for (r, p), n in pad_net.items() if r == "U1" and n.startswith("D
"U1: DQ0-DQ15 on slot D0-D15")
# 4. UART on CS1* through the OR strobes, register select from A1-A3
check(pad_net[("U3", "2")] == "CS1_N" and pad_net[("U3", "6")] == "CS1_N" and pad_net[("U3", "1")] == "OE_N"
and pad_net[("U3", "5")] == "WE_N" and pad_net[("U2", "14")] == "UART_IOR_N" and pad_net[("U2", "11")] == "UART_IOW_N",
and pad_net[("U3", "5")] == "WE_N" and pad_net[("U2", "14")] == "UART_IOR_N" and pad_net[("U2", "12")] == "UART_IOW_N",
"U2 IOR = OE* OR CS1*, IOW = WE* OR CS1*")
check([pad_net[("U2", p)] for p in ("18", "17", "16")] == ["A1", "A2", "A3"], "U2 A0-A2 = slot A1-A3")
check([pad_net[("U2", p)] for p in ("20", "19", "18")] == ["A1", "A2", "A3"], "U2 A0-A2 = slot A1-A3")
check(pad_net[("U2", "7")] == "GND" and pad_net[("U2", "8")] == "VSB" and pad_net[("U2", "21")] == "UART_INT"
and pad_net[("U2", "24")] == "UART_RESET" and pad_net[("U2", "26")] == "VSB"
and pad_net[("R5", "1")] == "UART_INT" and pad_net[("R5", "2")] == "GND",
"U2 TL16C2550: CSA active, CSB inactive, INTA pulled down, RESET, VCC")
check(pad_net[("U4", "1")] == "UART_INT" and pad_net[("U4", "6")] == "IRQ_N" and pad_net[("U4", "3")] == "RESET_N"
and pad_net[("U4", "4")] == "UART_RESET", "U4 inverts INT -> IRQ* and RESET* -> RESET")