Cos jak klawiaturka na PS/2 - na czym?

Nov 20, 2003 6 Replies

Witam



Muszę zrobić urządzenie działające jak klawiatura komputerowa na złącze PS/2. Będę miał tam jednak mało przycisków i ciut skomplikowany algorytm przesyłania znaków do kompa.



No i tu jest problem. Zaczynam kompletnie od zera. Do tej pory pisałem jedynie programiki dla AVRków w ASM, które jednak były sprawdzane wyłącznie na papierze i żaden z nich nie doczekał się "wdrożenia".



Jaki procesorek byście mi doradzili? Najlepiej, by miał sprzętową komunikację z PS/2, dawał się zaprogramować przez ISP lub w jakiś inny prosty sposób, oprócz linii wykożystywanych do komunikacji z PS/2 musi mieć 7 linii I/O; no i przyzwoitą cenę ;). Myślę, że wielkość pamięci na program nie będzie miała większego znaczenia.



Z góry dziękuję za pomoc, pozdrawiam Antoni Gerc


Antoni Gerc napisal(a):

A sa takie? Protokol PS/2 jest najzupelniej banalny i mozesz go zrobic softwarowo.

Wez AVR, na ktorym juz cos robiles.

Polecam AVR 90S2313 - bardzo prosty w programowaniu - dos³ownie przy pomocy kabelka. Oraz program MCS Basic AVR - wystarczy ci demo bo jedynym ograniczeniem jest wielko¶æ programu - 2 k a dok³adnie tyle pamieci ma ten procek. Basic jest banalny (sk³adnia) szybko go wiêc opanujesz w zakresie jaki ci jest potrzebny, poza tym masz tam wbudowane procedury do obs³ugi klawiatury PS2 :-) Wystarczy napisac jedn± instrukcjê i ju¿ czyta znaki :-D

Je¿eli za¶ musisz pisaæ w assemblerze polecam stronki (z epanorama.net):

a.. Beyond Logic AT keyboard interfacing documents a.. Interfacing the PC's keyboard - how it works and how to decode PC keyboard signal using microcontroller a.. Interfacing the AT keyboard - Why would you want to interface the Keyboard? The IBM keyboard can be a cheap alternative to a keyboard on a Microprocessor development system. Or maybe you want a remote terminal, just couple it with a LCD Module. a.. Electronics projects for PC keyboard port a.. Help with IBM-PC keyboard interfacing a.. Interfacing the AT Keyboard a.. IBM-PC keyboard interfacing a.. PC Keyboard FAQ a.. PC Keyboard Page - info on PC keyboard interfacing and source code for PIC microcontrollers a.. PC Keyboard Scan Codes - The PC keyboard interface is designed so the system software has maximum flexibility in defining certain keyboard operations. This is accomplished by having the keyboard return scancodes rather than ASCII codes. Each key generates a 'make' scancode when pressed and a 'break' scancode when released. The computer system interprets the scancodes to determine what operation it is to perform. For historical compatibility reasons computers can employ different sets of scancodes for different purposes. a.. PS/2 Keyboard & Mouse Protocols - Auxiliary Device and System Timings a.. PS/2 Mouse/Keyboard Protocol a.. PS/2 Mouse/Keyboard Protocol - This article describes the protocol and shows how to implement it using PIC 16F84. a.. The PC's keyboard - interfacing tutorial a.. USB Human Interface Device (HID) Configuration - Information on configuring Linux USB sub-system for USB mouse, keyboard and joystick. a.. What is a Keyboard Wedge? - A keyboard wedge is a system whereby it becomes possible to enter data into a computer in a way not anticipated by the programmer who wrote the application. It is based on the idea that all applications programs allow data to be entered via the keyboard. If the computer can be fooled into accepting 'dummy' keyboard data then that data will be processed and handled correctly by the application. Wedge systems are typically used to enter small packets of machine collected data into applications written for keyed data. This data may come from a barcode reader or similar device. a..

=_NextPart_000_0029_01C3AF48.580A6C10 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable

Wybaczcie nie pisuje zbyt czesto na grupach :-) a.. Beyond Logic AT keyboard interfacing documents=20 a.. Interfacing the PC's keyboard - how it works and how to decode PC = keyboard signal using microcontroller=20 a.. Interfacing the AT keyboard - Why would you want to interface the = Keyboard? The IBM keyboard can be a cheap alternative to a keyboard on a = Microprocessor development system. Or maybe you want a remote terminal, = just couple it with a LCD Module.=20 a.. Electronics projects for PC keyboard port=20 a.. Help with IBM-PC keyboard interfacing=20 a.. Interfacing the AT Keyboard=20 a.. IBM-PC keyboard interfacing=20 a.. PC Keyboard FAQ=20 a.. PC Keyboard Page - info on PC keyboard interfacing and source code = for PIC microcontrollers=20 a.. PC Keyboard Scan Codes - The PC keyboard interface is designed so = the system software has maximum flexibility in defining certain keyboard = operations. This is accomplished by having the keyboard return scancodes = rather than ASCII codes. Each key generates a 'make' scancode when = pressed and a 'break' scancode when released. The computer system = interprets the scancodes to determine what operation it is to perform. = For historical compatibility reasons computers can employ different sets = of scancodes for different purposes.=20 a.. PS/2 Keyboard & Mouse Protocols - Auxiliary Device and System = Timings=20 a.. PS/2 Mouse/Keyboard Protocol=20 a.. PS/2 Mouse/Keyboard Protocol - This article describes the protocol = and shows how to implement it using PIC 16F84.=20 a.. The PC's keyboard - interfacing tutorial=20 a.. USB Human Interface Device (HID) Configuration - Information on = configuring Linux USB sub-system for USB mouse, keyboard and joystick.=20 a.. What is a Keyboard Wedge? - A keyboard wedge is a system whereby it = becomes possible to enter data into a computer in a way not anticipated = by the programmer who wrote the application. It is based on the idea = that all applications programs allow data to be entered via the = keyboard. If the computer can be fooled into accepting 'dummy' keyboard = data then that data will be processed and handled correctly by the = application. Wedge systems are typically used to enter small packets of = machine collected data into applications written for keyed data. This = data may come from a barcode reader or similar device.=20

Thu, 20 Nov 2003 09:26:14 +0100 jednostka biologiczna o nazwie Paweł Marcinkiewicz <pawel@___student.pwr.__jgora.pl> wyslala do portu 119 jednego z serwerow news nastepujace dane:

Kolego, zatem mala prosba: wylacz HTML w postach

"Paweł Marcinkiewicz" <pawel@___student.pwr.__jgora.pl> wrote in news:bphtmj$2n3$ snipped-for-privacy@absinth.dialog.net.pl:

A właśnie odnośnie kabelka. Czy jak zrobię coś identycznego jak to opisane na stronce

formatting link
to będę mógł swobodnie się bawić?

No to mam spoooro lektury i mam nadzieję, że pomyślnie zakończę ten projekt.

Pozdrawiam Antoni Gerc

W programie MCS Bascom jest modu³ do programowania prcoesorów AVR - i w helpie znajdziesz opis programatora "Sample Electronics Programmer". Programator ten jak juz pisa³em to tylko przewody (¿adnej elektroniki :-) Dzia³a ¶wietnie - ak chcesz to przesle ci zdjêcia na Priv (mam zrobiony na uniersalce modu³ z malutki mikrokontrolerem AVR 90S2313 10 Mhz) z mo¿liwo¶ci± programowania z komputera. Po zaprogramowaniu nawet bez od³±czania procesor sam rusza i zaczyna dzia³aæ program - ¶wietna sprawa :-D

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required