electronics forum

Rules | Recent posts | topic RSS | Search | Register  | Log in

Interfacing AT-PS2 Keyboard with PIC


Post new topic  Reply to topic    EDAboard.com Forum Index -> Microcontrollers -> Interfacing AT-PS2 Keyboard with PIC
Author Message
fnovoac



Joined: 01 Oct 2005
Posts: 12


Post07 Oct 2005 4:05   

keyboard with pic


I found a diagram to connect a PS/2 keyboard to a 16F84A PIC with source code in assembler but I program en PICBASIC - Sad - does anybody have some code in basic for doing that???
Back to top
kieennx



Joined: 08 Jul 2005
Posts: 30
Helped: 1


Post07 Oct 2005 5:31   

at keyboard picbasic


You should study about the algorithm first, then try to write it by another language (ex. C, BASIC...)
Bets regards,
Kieennx.
Back to top
khongai



Joined: 20 May 2005
Posts: 245
Helped: 5


Post07 Oct 2005 6:51   

ps2 keyboard pic microchip asm


reference this :
http://www.electronic-engineering.ch/microchip/projects/keyboard/morse_2x/morse_2x.html
http://www.computer-engineering.org/
http://www.brouhaha.com/~eric/pic/
http://www.iptel-now.de/HOWTO/PIC/pic.html

and search with google/ yahoo
Back to top
fnovoac



Joined: 01 Oct 2005
Posts: 12


Post07 Oct 2005 6:57   

16f84 keyboard ps2


I guess I forget to say that i'm not an expert with pic basic. I studied the protocol an the level signals but it's difficu to me to do some thing in pic basic, for exmaple:

i have to sense the estate of a pin (PORTB.5) based on interruptions (PORTB.0) and set to a byte variable, the data consist on 11 bits, first bit is always low, then i have 8 bits of data and 2 more bits no necessary to get the data. I need to read that bit and set to the byte variable:

variable : b7 b6 b5 b4 b3 b2 b1 b0
fisrt bit read -> b0
second bit read -> b1
third bit read -> b2
.
.
.
eight bit read -> b7

then convert that value to hex

sorry for my porr english, i speak spanish Smile so it's difficult to me explain mys ideas
Back to top
artem



Joined: 22 May 2003
Posts: 1652
Helped: 91
Location: Turan


Post10 Oct 2005 18:44   

ps2 pic basic


Atmel has nce AN for that . Look for the AVR micro application notes section .
Back to top
Google
AdSense
Google Adsense




Post10 Oct 2005 18:44   

Ads




Back to top
FSio



Joined: 27 Nov 2003
Posts: 29
Helped: 2


Post10 Oct 2005 20:54   

keyboard ps2 protocol pic


fnovoac,
I make some routines to controlling keyboard AT
They are run on PIC18Fxxx, because my application need it, but the AT keyboard can run on 16F627 similar to PIC16F84.

Luck!!



Sorry, but you need login in to view this attachment

Back to top
Arabic versionBulgarian versionCatalan versionCzech versionDanish versionGerman versionGreek versionEnglish versionSpanish versionFinnish versionFrench versionHindi versionCroatian versionIndonesian versionItalian versionHebrew versionJapanese versionKorean versionLithuanian versionLatvian versionDutch versionNorwegian versionPolish versionPortuguese versionRomanian versionRussian versionSlovak versionSlovenian versionSerbian versionSwedish versionTagalog versionUkrainian versionVietnamese versionChinese version
Post new topic  Reply to topic    EDAboard.com Forum Index -> Microcontrollers -> Interfacing AT-PS2 Keyboard with PIC
Page 1 of 1 All times are GMT + 1 Hour
Similar topics:
:cry: interface keyboard ps2 with pic (2)
ps2 interfacing keyboard using 8051microcontroller (3)
PS2 Keyboard with Spartan 3E (1)
PS2 keyboard drive with AVR and codevision (2)
PS2(Keyboard) protocol (2)
PC PS2 Keyboard Bus Arbitration (1)
REQD ! PS2 Keyboard routine ! (7)
PS2 keyboard reading VHDL (3)
INTERFACING PC KEYBOARD WITH AT89C51 (10)
8051 assembly code for ps2 keyboard? (11)


Abuse || Administrator || Moderators || Support us || sitemap
topic RSS