Jaki procesor wybrać do stworzenia klawiatury PS/2 z ograniczoną ilością przycisków?
Cos jak klawiaturka na PS/2 - na czym?
From: Antoni Gerc <agerc_at_nospam_gazeta.pl>
Subject: Cos jak klawiaturka na PS/2 - na czym?
Date: Thu, 20 Nov 2003 00:44:39 +0000 (UTC)
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
========
Path: news-archive.icm.edu.pl!news.rmf.pl!news.ipartners.pl!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mai
From: Marcin E. Hamerla <Xmehamerla_at_nospam_Xpro.Xonet.Xpl.remove_X>
Subject: Re: Cos jak klawiaturka na PS/2 - na czym?
Date: Thu, 20 Nov 2003 07:53:28 +0100
Antoni Gerc napisal(a):
Jaki procesorek byście mi doradzili? Najlepiej, by miał sprzętową
komunikację z PS/2,
A sa takie? Protokol PS/2 jest najzupelniej banalny i mozesz go zrobic
softwarowo.
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.
Wez AVR, na ktorym juz cos robiles.
--
Pozdrowienia, Marcin E. Hamerla
"Every day I make the world a little bit worse."
========
Path: news-archive.icm.edu.pl!news.rmf.pl!agh.edu.pl!news.agh.edu.pl!news.onet.pl!newsfeed.gazeta.pl!news.dialog.net.pl!not-for-mai
From: "Paweł Marcinkiewicz" <pawel_at_nospam____student.pwr.__jgora.pl>
Subject: Re: Cos jak klawiaturka na PS/2 - na czym?
Date: Thu, 20 Nov 2003 09:23:43 +0100
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".
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..
Z góry dziękuję za pomoc, pozdrawiam
Antoni Gerc
========
Path: news-archive.icm.edu.pl!news.rmf.pl!agh.edu.pl!news.agh.edu.pl!news.onet.pl!newsfeed.gazeta.pl!news.dialog.net.pl!not-for-mai
From: =?iso-8859-2?Q?Pawe=B3_Marcinkiewicz?= <pawel_at_nospam____student.pwr.__jgora.pl>
Subject: Re: Cos jak klawiaturka na PS/2 - na czym?
Date: Thu, 20 Nov 2003 09:26:14 +0100
This is a multi-part message in MIME format.
------= NextPart000_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
------= NextPart000_0029_01C3AF48.580A6C10
Content-Type: text/html;
charset="iso-8859-2"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-2">
<META content=3D"MSHTML 6.00.2800.1276" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2>Wybaczcie nie pisuje zbyt czesto na =
grupach=20
-)</FONT></DIV>
<DIV>
<LI><A href=3D"http://www.beyondlogic.org/index.html"><FONT face=3DArial =
size=3D2>Beyond Logic AT keyboard interfacing documents</FONT></A><FONT =
face=3DArial=20
size=3D2> </FONT>
<LI><A href=3D"http://www.beyondlogic.org/index.html#ATKEYBOARDS"><FONT =
face=3DArial=20
size=3D2>Interfacing the PC's keyboard</FONT></A><FONT face=3DArial =
size=3D2> - how it=20
works and how to decode PC keyboard signal using microcontroller </FONT>
<LI><A href=3D"http://www.beyondlogic.org/keyboard/keybrd.htm"><FONT =
face=3DArial=20
size=3D2>Interfacing the AT keyboard</FONT></A><FONT face=3DArial =
size=3D2> - Why=20
would you want to interface the Keyboard? The IBM keyboard can be a =
cheap=20
alternative to a keyboard on a Microprocessor development system. Or =
maybe you=20
want a remote terminal, just couple it with a LCD Module. </FONT>
<LI><A =
href=3D"http://www.epanorama.net/links/hwprojects.html#pc_keyboard"><FONT=
=20
face=3DArial size=3D2>Electronics projects for PC keyboard =
port</FONT></A><FONT=20
face=3DArial size=3D2> </FONT>
<LI><A =
href=3D"http://www.hth.com/filelibrary/TXTFILES/keyboard.txt"><FONT=20
face=3DArial size=3D2>Help with IBM-PC keyboard =
interfacing</FONT></A><FONT=20
face=3DArial size=3D2> </FONT>
<LI><A=20
href=3D"http://panda.cs.ndsu.nodak.edu/~achapwes/PICmicro/keyboard/atkeyb=
oard.html"><FONT=20
face=3DArial size=3D2>Interfacing the AT Keyboard</FONT></A><FONT =
face=3DArial size=3D2>=20
</FONT>
<LI><A =
href=3D"http://www.hth.com/filelibrary/TXTFILES/keyboard.txt"><FONT=20
face=3DArial size=3D2>IBM-PC keyboard interfacing</FONT></A><FONT =
face=3DArial size=3D2>=20
</FONT>
<LI><A=20
href=3D"http://members.tripod.com/~ilkerf/c64tower/F_Keyboard_FAQ.html"><=
FONT=20
face=3DArial size=3D2>PC Keyboard FAQ</FONT></A><FONT face=3DArial =
size=3D2> </FONT>
<LI><A=20
href=3D"http://ourworld.compuserve.com/homepages/steve_lawther/keybinfo.h=
tm"><FONT=20
face=3DArial size=3D2>PC Keyboard Page</FONT></A><FONT face=3DArial =
size=3D2> - info on=20
PC keyboard interfacing and source code for PIC microcontrollers </FONT>
<LI><A href=3D"http://www.barcodeman.com/altek/mule/scandoc.php3"><FONT =
face=3DArial=20
size=3D2>PC Keyboard Scan Codes</FONT></A><FONT face=3DArial size=3D2> - =
The PC=20
keyboard interface is designed so the system software has maximum =
flexibility in=20
defining certain keyboard operations. This is accomplished by having the =
keyboard return scancodes rather than ASCII codes. Each key generates a =
'make'=20
scancode when pressed and a 'break' scancode when released. The computer =
system=20
interprets the scancodes to determine what operation it is to perform. =
For=20
historical compatibility reasons computers can employ different sets of=20
scancodes for different purposes. </FONT>
<LI><A href=3D"http://www.networktechinc.com/ps2-prots.html"><FONT =
face=3DArial=20
size=3D2>PS/2 Keyboard & Mouse Protocols</FONT></A><FONT =
face=3DArial size=3D2> -=20
Auxiliary Device and System Timings </FONT>
<LI><A=20
href=3D"http://panda.cs.ndsu.nodak.edu/~achapwes/PICmicro/PS2/ps2.htm"><F=
ONT=20
face=3DArial size=3D2>PS/2 Mouse/Keyboard Protocol</FONT></A><FONT =
face=3DArial=20
size=3D2> </FONT>
<LI><A =
href=3D"http://govschl.ndsu.nodak.edu/~achapwes/PICmicro/PS2/ps2.htm"><FO=
NT=20
face=3DArial size=3D2>PS/2 Mouse/Keyboard Protocol</FONT></A><FONT =
face=3DArial=20
size=3D2> - This article describes the protocol and shows how to =
implement it=20
using PIC 16F84. </FONT>
<LI><A href=3D"http://www.beyondlogic.org/keyboard/keybrd.htm"><FONT =
face=3DArial=20
size=3D2>The PC's keyboard</FONT></A><FONT face=3DArial size=3D2> - =
interfacing=20
tutorial </FONT>
<LI><A href=3D"http://www.linux-usb.org/USB-guide/x194.html"><FONT =
face=3DArial=20
size=3D2>USB Human Interface Device (HID) Configuration</FONT></A><FONT =
face=3DArial=20
size=3D2> - Information on configuring Linux USB sub-system for USB =
mouse,=20
keyboard and joystick. </FONT>
<LI><A href=3D"http://www.barcodeman.com/altek/mule/wedge.php3"><FONT =
face=3DArial=20
size=3D2>What is a Keyboard Wedge?</FONT></A><FONT face=3DArial =
size=3D2> - A keyboard=20
wedge is a system whereby it becomes possible to enter data into a =
computer in a=20
way not anticipated by the programmer who wrote the application. It is =
based on=20
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=20
then that data will be processed and handled correctly by the =
application. Wedge=20
systems are typically used to enter small packets of machine collected =
data into=20
applications written for keyed data. This data may come from a barcode =
reader or=20
similar device. </FONT></LI></DIV></BODY></HTML>
------= NextPart000_0029_01C3AF48.580A6C10--
========
Path: news-archive.icm.edu.pl!news.rmf.pl!agh.edu.pl!news.agh.edu.pl!news.onet.pl!lublin.pl!uw.edu.pl!news.pw.edu.pl!not-for-mai
From: BLE_Maciek <i80c586_at_nospam_cyberspace_NO_SPAM_.org>
Subject: Re: Cos jak klawiaturka na PS/2 - na czym?
Date: Thu, 20 Nov 2003 10:29:58 +0100
Thu, 20 Nov 2003 09:26:14 +0100 jednostka biologiczna o nazwie Paweł
Marcinkiewicz <pawel_at_nospam____student.pwr.__jgora.pl> wyslala do portu 119
jednego z serwerow news nastepujace dane:
Wybaczcie nie pisuje zbyt czesto na grupach :-)
Kolego, zatem mala prosba: wylacz HTML w postach
========
Path: news-archive.icm.edu.pl!news.rmf.pl!news.ipartners.pl!newsfeed.gazeta.pl!news.gazeta.pl!not-for-mai
From: Antoni Gerc <agerc_at_nospam_gazeta.pl>
Subject: Re: Cos jak klawiaturka na PS/2 - na czym?
Date: Thu, 20 Nov 2003 18:06:50 +0000 (UTC)
"Paweł Marcinkiewicz" <pawel_at_nospam____student.pwr.__jgora.pl> wrote in
news:bphtmj$2n3$1_at_nospam_absinth.dialog.net.pl:
Polecam AVR 90S2313 - bardzo prosty w programowaniu - dosłownie
przy pomocy kabelka.
A właśnie odnośnie kabelka. Czy jak zrobię coś identycznego jak to
opisane na stronce http://www.btc.pl/index.php?id=zl2prg to będę mógł
swobodnie się bawić?
Jeżeli zaś musisz pisać w assemblerze polecam stronki (z
epanorama.net):
No to mam spoooro lektury i mam nadzieję, że pomyślnie zakończę ten
projekt.
Pozdrawiam
Antoni Gerc
========
Path: news-archive.icm.edu.pl!news.rmf.pl!news.ipartners.pl!newsfeed.gazeta.pl!news.dialog.net.pl!not-for-mai
From: "Paweł Marcinkiewicz" <pawel_at_nospam____student.pwr.__jgora.pl>
Subject: Re: Cos jak klawiaturka na PS/2 - na czym?
Date: Thu, 20 Nov 2003 20:27:05 +0100
Polecam AVR 90S2313 - bardzo prosty w programowaniu - dosłownie
przy pomocy kabelka.
A właśnie odnośnie kabelka. Czy jak zrobię coś identycznego jak to
opisane na stronce http://www.btc.pl/index.php?id=zl2prg to będę mógł
swobodnie się bawić?
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
========
Path: news-archive.icm.edu.pl!news.rmf.pl!news.ipartners.pl!news.man.poznan.pl!topaz.icpnet.pl!not-for-mai