-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HIDman-mini issues when interfacing with an Atari Eiffel adapter #4
Comments
Emmanual, This repository is really just for hosting the alternate hardware versions (HIDman-mini and HIDman-micro) that I came up with. The original design and the firmware itself are supported by rasteri's upstream HIDman repo: https://github.com/rasteri/HIDman You'd probably be better supported by asking firmware questions on that repo. The firmware attached to this repo is really just a pre-compiled version of what is available on rasteri's repo with a few of the required make flags set. For what it's worth, the HIDman-mini is pretty much fully compatible with the original AXP hardware (and firmware) with the exception of requiring the internal oscillator instead of using an external crystal. The HIDman-micro is a more slimmed down design and requires more code changes, mostly around some pinout changes and dropping certain features. I haven't studied your schematic, but I'd start with a comparison to the official AXP schematic to see what might be different. |
I just took a look at your schematic, and for the most part it looks pretty reasonable. But, here are a few things I noticed that may or may not need to be addressed:
|
One more thought... I had a look at that Eiffel adapter's schematic and noticed that there are alternate configurations for the mouse pins RB3/RB2. They can alternately be hooked up to Rx/Tx on the Atari or the PCA82C251 for CAN? support. The scope pictures for your mouse pins looks like something with the PIC16F876P may be conflicting with the CH559 (i.e. they are both trying to drive the pins at the same time). So, I'd double check the firmware you loaded on the PIC to confirm it is the correct one, and not one with some alternate functionality that is trying to do something else with those pins. If you can't figure out a firmware issue, you could temporarily lift those mouse pins on the PIC and get some new scope shots of the CH559 pins to see if things look different. |
Thank you so much for reviewing my schematic.
I'll let you know what it gives. Cheers, |
You'll need to leave C5. The internal regulator needs the external bypass capacitor still. You can probably leave the 5.6k pull-ups for now. You aren't using an actual PS/2 keyboard/mouse. So, if 5.6k works for the PIC, it will probably work fine with the CH559 as well. I was just pointed out differences between your schematic and mine. You also probably don't actually need the pull-ups on the unused keyboard/mouse pins. I don't believe the current firmware does anything with those. But, the 10k pull-ups on the serial pins (and/or compile without serial support) would still be good to have to make sure the firmware isn't trying to communicate with a serial mouse. |
Thank you, I'll check that out tomorrow, and I'll let you know. Are the parameters I use for flashing the CH559 correct? Cheers! |
Hi Serisman,
I am a French retro computer enthusiast, especially when it comes to the 8-bit and 16-bit Atari computers, my favorites.
I have basic skills in electronics, I am just a hobbyist, and a couple of years ago I have developed a PS/2 to Atari Mega ST keyboard and mouse adapter, based on Didier Mequignon’s Eiffel adapter:
https://storage.atari-source.org/atari/mirrors/didier.mequignon.free.fr/eiffel-e.htm
This adapter translates PS/2 keyboard scan codes, and mouse and joystick signals to Atari ST scan codes, using a PIC16F876 micro-controller. It works like a charm.
I recently came across your HIDman-mini project, and my idea was to add a USB support to the Eiffel adapter, doing something like this:
So, I managed to draw a schematic and I had the PCB made at JLCPCB with a mounted CH559:
Simplified schematics with CH559 to PIC16F876 interface. (Atari output and joystick support not shown):
The PIC16F876 needs the following inputs :
I have downloaded your HIDman-mini_v1.1.3.bin firmware on your GitHub and was able to successfully flash the CH559 but it does seem to work marginally.
I used a Microsoft Comfort Curve Keyboard on USB1 and a Microsoft Wheel Optical Mouse on USB2 for testing.
The keyboard lights (Num Lock, Caps Lock) don’t light up and the mouse doesn’t work at all on the Atari (The optical sensor lights up). I was not able to test the keyboard further on the Atari, since I had no working mouse, so I am not sure the keyboard 100% works.
I checked continuities and power voltage between the CH559 and the PIC16F876, and they are all ok.
Here are the parameters I used for CH559 flashing. Is it ok?
I checked with a scope.
Here is what I have on CH559 P35 – KEYB CLK:
And for P37 - KEYB DATA, when I press the “a” key, I get this:
I don’t know if it is the correct PS/2 scan code for “a” (1C F0 1C) but I noticed that every key gives a different pattern, and pressing the same key always gives the same pattern.
I also noticed that the signal is HIGH by default but sometimes goes LOW and remains LOW (when I press “z” or “t” I think), until the next keypress.
But this is what I have for P13 – MS CLK it is stuck HIGH (or floats) at 2.5V, even when I move the mouse, no change.
And this is P14 – MS DATA, it looks like a clock signal with a weird shape?
Here is a zoomed version, the signal goes down twice very briefly every 5ms.
I also have noticed this clock signal on P25 & P26 (LEDs, I don’t use them).
P25
P26
What do you think? What did I do wrong? Do I need to build a specific firmware?
I thank you for developing the HIDman-mini / micro projects!
Emmanuel
The text was updated successfully, but these errors were encountered: