Double Key Press with PS/2 Keyboard #14
Replies: 1 comment 7 replies
-
Hi Michael, I suggest the following: Go to page 6 of the reference manual. You'll find a diagram showing the various scan codes the Minimal 64 expects your keyboard to send, e. g. for 'a' its 0x1c and for 'arrow up' its 0xe0 0x75. If you release a key, your keyboard will prepend the release code 0xf0 and send the key code again, e. g. 0xf0 0x1c for 'a' released and so on. The Minimal takes care of all that. Step 1. Find out if your keyboard sends the correct data. If you have a digital scope take a look at the CLK and DAT lines. The format is 1 low start bit, 8 data bits, 1 parity bit, 1 high stop bit. Very easy to decipher right on the scope. Step 2. Find out if the Minimal receives this information correctly. You can use the following line of code: test: INK CPI 0xff BEQ test PHS JPS 0xb04e PLS JPA test ; calls API function _PrintHex :0E8000000522FF5C008057554EB058260080C8 This will poll the PS2 register for input and print out the result in HEX format. Then we'll see. Good luck! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I got my Minimal 64 built and it works, but the PS/2 keyboard I am using generates two key events with every key press: once on the down stroke, and once on the up stroke of the key. I don't know PS/2 keyboard protocol well enough to diagnose this. Is this a problem with the keyboard, the Minimal 64, MinOS?
Beta Was this translation helpful? Give feedback.
All reactions