Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Interfacing AT-PS2 Keyboard with PIC

Status
Not open for further replies.

fnovoac

Newbie level 6
Newbie level 6
Joined
Oct 1, 2005
Messages
12
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,382
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???
 

kieennx

Junior Member level 3
Junior Member level 3
Joined
Jul 8, 2005
Messages
29
Helped
3
Reputation
6
Reaction score
2
Trophy points
1,288
Activity points
1,613
at keyboard picbasic

You should study about the algorithm first, then try to write it by another language (ex. C, BASIC...)
Bets regards,
Kieennx.
 
  • Like
Reactions: Loosha

    Loosha

    Points: 2
    Helpful Answer Positive Rating

khongai

Full Member level 4
Full Member level 4
Joined
May 20, 2005
Messages
229
Helped
16
Reputation
32
Reaction score
11
Trophy points
1,298
Activity points
2,919
  • Like
Reactions: Loosha

    Loosha

    Points: 2
    Helpful Answer Positive Rating

fnovoac

Newbie level 6
Newbie level 6
Joined
Oct 1, 2005
Messages
12
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,382
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
 

artem

Advanced Member level 4
Advanced Member level 4
Joined
May 22, 2003
Messages
1,347
Helped
126
Reputation
252
Reaction score
32
Trophy points
1,328
Location
Turkey
Activity points
13,450
ps2 pic basic

Atmel has nce AN for that . Look for the AVR micro application notes section .
 

FSio

Junior Member level 3
Junior Member level 3
Joined
Nov 27, 2003
Messages
29
Helped
2
Reputation
4
Reaction score
0
Trophy points
1,281
Activity points
255
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!!
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top