From f69925817c613e960106c7d6f1f83cf19c334259 Mon Sep 17 00:00:00 2001 From: dsh Date: Tue, 24 Nov 2026 19:05:25 +0800 Subject: [PATCH] hardware: panel spec, and the display rules written down as rules hardware/panel.md is the orderable version of the mockup: mechanical sizes (200 x 100 mm plate in a 220 x 130 x 70 mm case), the grid, the section list, the connector types (2 x 22 card edge slot, DE-9), the electrical budget (ULN2803 arrays, an 8 row by 8 column lamp matrix, a 555 for the cursor blink), and the rule the panel has been converging on -- every piece of information has exactly one representation, and all numbers go out of the serial port. One item left open on purpose: whether the button row keeps STEP. GPT render shows START / HALT / RESET, but single step is the whole point of a trainer, so it should either stay as a fourth button or START should distinguish tap from hold. That has to be settled before the plate is drilled. --- hardware/panel.md | 59 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 hardware/panel.md diff --git a/hardware/panel.md b/hardware/panel.md new file mode 100644 index 0000000..aed7010 --- /dev/null +++ b/hardware/panel.md @@ -0,0 +1,59 @@ +# 面板规格(定稿) + +`panel-mockup-vintage.png` 是可执行的草图(`panel_mockup_vintage.py` 画的),这里是照着它 +下单/开孔要用的规格。 + +## 1. 机械 + +| 项 | 值 | +|---|---| +| 面板 | **200 × 100 mm**,2 mm 铝或 3 mm 亚克力,米白锤纹漆(RAL 7035 相近)+ 橙线 **#B54E2A** 丝印 | +| 外壳 | 约 **220 × 130 × 70 mm**,金属或木质,黑色侧板,四只脚垫 | +| 四角 | 4 × M3 螺钉(面板内侧固定) | +| 卡带槽 | 2 × 22 卡边连接器(2.54 mm 间距),槽口 58 × 10 mm,两侧 M3 | +| 串口 | DE-9 母座(6850 + MAX232 侧出) | + +## 2. 分区(栅格:三列 56 mm,列间 4 mm;两行,行间 6 mm) + +| 区 | 位置 | 内容 | +|---|---|---| +| **CELL** | 列一 / 上行 | 8 颗灯泡成一圈:**bit 0 在 9 点带楔形、刻 `0`**,其余顺时针标 `1..7` | +| **INSTRUCTION** | 列二 / 上行 | 8 颗灯 + 符号 `> < + - [ ] . ,`,当前那条亮 | +| **INPUT BYTE** | 列二 / 上行偏下 | **8 个拨动开关**,下面刻 `7 6 5 4 3 2 1 0`;右边红色 **SEND** 按钮 | +| **DATA 64** | 列三 / 上行 | **8 × 8 灯泡矩阵**,一格一颗;指针那颗用红圈闪(光标) | +| **PROGRAM CARTRIDGE** | 列一 / 下行 | 卡边槽,插 27C512 卡带 | +| **SERIAL / 6850** | 列三 / 下行 | DE-9 | +| 按钮排 | 列二 / 下行 | **STEP · START · HALT · RESET**(见 §5 的待定项) | +| 铭牌 | 列二 / 下行 | 1 MHz · 8 bit · 64 格;27C512 + 6116 + 74LS;"NO NUMBERS ON THE PANEL: RESULTS VIA SERIAL" | + +## 3. 显示规则 + +**面板不显示任何数字。** 每个信息只有一个表示: + +| 信息 | 表示 | +|---|---| +| 指针位置 | 矩阵里闪的红圈(光标) | +| 64 格的 LSB | 矩阵灯的亮/灭(`biz`/`rnz` 唯一看的那一位) | +| 当前格整字节 | CELL 灯环 | +| 当前指令 | INSTRUCTION 灯 | +| 结果 / 步数 / 调试 | **串口** | + +## 4. 电气 + +| 项 | 值 | +|---|---| +| 灯环 | 8 × 6 V 灯丝灯泡,ULN2803 驱动(8 路),一个 74LS273 锁存当前格 | +| 指令灯 | 8 × 6 V,另一片 ULN2803 + 74LS138 译码 | +| 矩阵 | 8 行 + 8 列扫描,**16 路驱动**(灯泡矩阵无需每格独立驱动) | +| 指针红圈 | 指针行列额外 OR 进去(2 个门)+ 一个 555 或 74LS161 分频做闪烁 | +| 拨码 | 8 位 → 74LS244 → 输入字节总线;SEND = 一个按钮 → `,` 的握手 | +| 按钮 | STEP/START/HALT/RESET 各一个,74LS14 去抖 | +| 电源 | 5 V(TTL)· 6 V(灯)· 12 V(可选),外置 5 V 2 A 适配器 | + +## 5. 待定 / 注意 + +* **STEP 要不要留**:`START / HALT / RESET` 是 GPT 那版的三键;单步对"训练机"很重要, + 我建议保留成四键(**STEP · START · HALT · RESET**),或者把 START 做成"按住 = 连续、 + 点按 = 单步"。定下来再开孔。 +* 卡带上的 27C512 用 UV 版还是 EEPROM 版:UV 有仪式感(擦 20 分钟),EEPROM 调试快。 +* 灯色:琥珀最复古;矩阵里"亮"的灯和"灭"的灯对比要够,否则 8×8 看不清。