diff --git a/hardware/sb-lora/REV2.md b/hardware/sb-lora/REV2.md index e940ee8..81a4fc5 100644 --- a/hardware/sb-lora/REV2.md +++ b/hardware/sb-lora/REV2.md @@ -55,10 +55,10 @@ A 16550-style UART on csSlot1 replaces rev 1's SC16IS740 SPI bridge and its latc - 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. - 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 74LVC2G32 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. + - 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. - UART D0-D7 on slot D0-D7. The driver uses 16-bit reads and writes and keeps the low byte (a 68k byte access at an even address uses D8-D15). - - The UART's INT and RESET are active high and the slot's IRQ* and RESET* are active low, so a 74LVC2G04 inverts both. + - The UART's INT and RESET are active high and the slot's IRQ* and RESET* are active low, so an SN74LVC2G04 inverts both. - Clock: keep rev 1's 14.7456 MHz crystal (divisor 8 for 115200). - Wait states: csSlot0 and csSlot1 share one setting, so it's set for the slower of the flash and the UART. - Powered from the slot (VSB), with the level translators to the XIAO's always-on side as on rev 1. @@ -79,7 +79,6 @@ A 16550-style UART on csSlot1 replaces rev 1's SC16IS740 SPI bridge and its latc ## Netlist `rev2/netlist.py`, same shape as rev 1's `source/netlist.py` (rev 1 stays as built under `hw-v0.1`). Not laid out yet. Before layout: -- Look up LCSC numbers for the flash, 74LVC2G32, 74LVC2G04 and SN74LVC2T45. - Make footprints for the XIAO (castellated edge plus plated holes under its bottom pads, from Seeed's footprint) and the Wio (14 plated holes). - J1 stays rev 1's straddle footprint until the connector order is settled. diff --git a/hardware/sb-lora/rev2/netlist.py b/hardware/sb-lora/rev2/netlist.py index 8951bbb..7e2b743 100644 --- a/hardware/sb-lora/rev2/netlist.py +++ b/hardware/sb-lora/rev2/netlist.py @@ -26,13 +26,13 @@ Pin tables that still need checking against a datasheet are marked VERIFY. PARTS = { "J1": ("Springboard 68p straddle", None, "SPRINGBOARD_68", "", "Hirose IC1HA-68RD-1.27SH(51); pending the order (REV2.md). Hand-solder", True), - "U1": ("S29AL016J70TFI020", "Package_SO", "TSOP-I-48_18.4x12mm_P0.5mm", "", + "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.45x3.45mm", "C729132", "UART, 32-byte FIFOs, csSlot1 (SC16C750BIBS fits the same footprint)", False), - "U3": ("74LVC2G32DC", "Package_SO", "VSSOP-8_2.3x2mm_P0.5mm", "", "OR: UART read/write strobes", False), - "U4": ("74LVC2G04GW", "Package_TO_SOT_SMD", "SOT-363_SC-70-6", "", "Inverters: INT -> IRQ*, RESET* -> RESET", False), - "U5": ("SN74LVC2T45DCUR", "Package_SO", "VSSOP-8_2.3x2mm_P0.5mm", "", + "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", "Ioff xlate: UART TX -> XIAO D7, Visor-present -> XIAO D0", False), "U6": ("SN74LVC1T45DCKR", "Package_TO_SOT_SMD", "SOT-363_SC-70-6", "C9382", "Ioff xlate: XIAO D6 -> UART RX", False), "Y1": ("14.7456MHz 20pF", "Crystal", "Crystal_SMD_3225-4Pin_3.2x2.5mm", "C2901666", "SX3B14.7456F2010F30", False), @@ -128,11 +128,11 @@ for pad, net in {1: "D5", 2: "D6", 3: "D7", 4: "UART_BAUD", 5: "UART_RX", 6: "UA # 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") -# U3 74LVC2G32 (8-pin): 1 1A, 2 1B, 3 2Y, 4 GND, 5 2A, 6 2B, 7 1Y, 8 VCC +# U3 SN74LVC2G32 (VSSOP-8): 1 1A, 2 1B, 3 2Y, 4 GND, 5 2A, 6 2B, 7 1Y, 8 VCC for pad, net in {1: "OE_N", 2: "CS1_N", 7: "UART_IOR_N", 5: "WE_N", 6: "CS1_N", 3: "UART_IOW_N", 4: "GND", 8: "VSB"}.items(): c("U3", pad, net) -# U4 74LVC2G04 (SC-70-6): 1 1A, 2 GND, 3 2A, 4 2Y, 5 VCC, 6 1Y +# U4 SN74LVC2G04 (SC-70-6): 1 1A, 2 GND, 3 2A, 4 2Y, 5 VCC, 6 1Y for pad, net in {1: "UART_INT", 6: "IRQ_N", 3: "RESET_N", 4: "UART_RESET", 2: "GND", 5: "VSB"}.items(): c("U4", pad, net) # U5 SN74LVC2T45 (VSSOP-8): 1 VCCA, 2 A1, 3 A2, 4 GND, 5 DIR, 6 B2, 7 B1, 8 VCCB. DIR high = A->B