Skip to content

Instantly share code, notes, and snippets.

@kuninet
Last active August 25, 2019 13:38
Show Gist options
  • Save kuninet/d13d843f630e98c3c5c1b85ea52e330d to your computer and use it in GitHub Desktop.
Save kuninet/d13d843f630e98c3c5c1b85ea52e330d to your computer and use it in GitHub Desktop.
PS/2 keyboard for MSX PC timing Trouble FIX
@kuninet
Copy link
Author

kuninet commented Aug 25, 2019

http://msx.gouget.com.br/2014/06/24/ps2-keyboard-to-msx-with-arduino/
こちらの記事を参考にMSXパソコンにPS/2キーボードを接続するテストを実施しまして、8255PPIのポートCのタイミングによって誤動作する場合があったため上記のようなパッチをあてました。

@kuninet
Copy link
Author

kuninet commented Aug 25, 2019

PIND==8の処理で、割込み禁止後 もう一度PIND==8かとif文できくと違う場合があるという....
タイミングトラブルです

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment