Keyboard IC Discussion Thread

User avatar

14 Nov 2019, 17:33

I am interested in making some keyboards that work natively over PS/2. Has anyone here used a controller like the HT82K629A to do it? Does it support NKRO? How hard is it to program?
Last edited by abrahamstechnology on 02 Dec 2019, 22:33, edited 1 time in total.

User avatar

14 Nov 2019, 18:01

You don't program it. There's already firmware on it. You just have to wire it properly and it'll work.
Keyboard matrix is in the documentation of the chip.

User avatar

14 Nov 2019, 18:23

You *just* have to use its one and only supported matrix. Which, in fact, could be a lot of bother.


14 Nov 2019, 18:33

The HT82K629A is a "Keyboard Encoder", not a general-purpose microcontroller.
It is not programmable. The block diagram shows a microcontroller, but it is probably running a fixed program in ROM. The matrix is hard-coded (but you wouldn't have to connect every key).
The datasheet says that it has "Phantom key detection" but no way to turn it off, which means that it does not support NKRO. The matrix also has the WASD cluster laid out so that there could be blocking there, so it would not be suitable for a gaming keyboard.
The USB it supports is only low-speed, and the datasheet does not even mention switch debouncing intervals, so I doubt that it would have very fast response time even over PS/2.

The ps2avr firmware for the AVR family of microcontrollers (which is in Teensy 2.0, Pro Micro etc.) does talk PS/2. It had been used for some early Korean customs, I believe. There should also be a USB version of it.

BTW. It you want a programming challenge: I think the ATmega32u2 (and ATmega16u2/ATmega8u2) is the only AVR µC that provides direct access to the USB lines, and thus theoretically able to do either PS/2 or USB over the same cable. But I don't think anyone in the community has programmed a firmware with support for both interfaces.

User avatar

14 Nov 2019, 19:00

Interesting, thanks.

User avatar

02 Dec 2019, 22:37

I found some PS/2 controller that looks better. Very easy to program firmware for it

Post Reply

Return to “Workshop”