Open
Conversation
a5a8102 to
2cb4b28
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
TL;DR: This PR fixes the UART i8274 chip connections to the GRiD Compass laptop and also fixes Microsoft Mouse.
GRiD Compass and Serial
The GRiD Compass uses a proprietary 19-pin connector that provides RS232, RS422, and +10V/-10V power. The circuit uses PAL chips that configure the signal source for TxC, RxC, and also SC for GPIB. There's no PAL dump available, only some circuit diagrams and approximate connection descriptions from @ConventionalMemories and @JDat...
Instead of emulating the PAL chip logic, I connected the i8274's TxC/RxC directly to 80130 baud. I also fixed the swapped
cdbapins, set the correct i8274 address for the GRiD Compass II and configured interrupt.Additionally, I updated the device list. It now includes a simple serial printer (without software flow control) that works with the
MinimumSerial~Printer~driver, plus two mice: Microsoft Mouse and Logitech Mouse. Both mice only work in GRiDPaint. On macOS, both mice behave erratically, but this appears to be a broader MAME issue on macOS rather than an emulation problem. The Mouse Systems mouse is commented out because it doesn't work for some reason.Video showing the mouse working on this branch:
Screen.Recording.2026-03-12.at.15.08.35.mov
Microsoft Mouse fixes
The Microsoft Mouse had incorrect Stop Bits setting — 2 instead of 1. Also, the DCD and CTS lines weren't set, which prevented the mouse from being detected in GRiD OS 3.1.5. I didn't create a separate PR for these three lines, but if this change needs separate review, I can move the commits to a different branch at the maintainers' discretion.
P.S. My goal isn't to achieve perfect Compass emulation — I just want to make GRiD OS 3.1 programs work correctly without obvious artifacts in MAME.