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???
 

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
  • Like
Reactions: Loosha

    Loosha

    Points: 2
    Helpful Answer Positive Rating
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
 

ps2 pic basic

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

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

Back
Top