Skip to content

HIDman-mini issues when interfacing with an Atari Eiffel adapter #4

@klyde2278

Description

@klyde2278

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:

Image1

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):
CH559 + Eiffel schematics

The PIC16F876 needs the following inputs :

PIC16F876 SIGNAL
P21 KEYB DATA
P22 KEYB CLK
P23 MOUSE DATA
P24 MOUSE CLK

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?
Capture

I checked with a scope.
Here is what I have on CH559 P35 – KEYB CLK:
P35 - KB CLK

And for P37 - KEYB DATA, when I press the “a” key, I get this:
P37 - KB DATA - Letter A

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.
P13 - MS CLK

And this is P14 – MS DATA, it looks like a clock signal with a weird shape?
P14 - MS DATA

Here is a zoomed version, the signal goes down twice very briefly every 5ms.
P14 - MS DATA zoomed

I also have noticed this clock signal on P25 & P26 (LEDs, I don’t use them).
P25
P25

P26
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions