| Author |
Message |
fnovoac
Joined: 01 Oct 2005 Posts: 12
|
07 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 - - does anybody have some code in basic for doing that???
|
|
| Back to top |
|
 |
kieennx
Joined: 08 Jul 2005 Posts: 30 Helped: 1
|
07 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
|
07 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
|
07 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 so it's difficult to me explain mys ideas
|
|
| Back to top |
|
 |
artem
Joined: 22 May 2003 Posts: 1652 Helped: 91 Location: Turan
|
10 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

|
10 Oct 2005 18:44 Ads |
|
|
|
|
|
|
| Back to top |
|
 |
FSio
Joined: 27 Nov 2003 Posts: 29 Helped: 2
|
10 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!!
|
|
| Back to top |
|
 |