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.

Needing PIC keyboard Dirver in C

Status
Not open for further replies.

johncsl82

Advanced Member level 4
Joined
Aug 16, 2004
Messages
105
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,296
Activity points
925
ccs keyboard

hi...

I need a keyboard driver which enable a PIC to read input from AT or PS/2 PC keybaord... and the keyboard driver source code in C lagangue best in hi-tech PIC C not asssembly..... :oops:

Thanks
:oops:
 

pic keyboard

check out beyond logic
 

keyboard c example

ccs compiler has a library for this
 

pic24 keybaord

But can you give some sample code for 4x4 key pad scanning. And if I required more then 4x4 key pad for this is there any solution?
 

picc keyboard

i use an application called quickbuilder for ccs and pic mcus

it has many drivers for 4x4 keyboards etc you just challange the build engine
and it returns the
fully built driver code block you then just include and init

youll find an example setup of code in here
**broken link removed**
the designs for comvdd ebox the code there is half made for testing and as example of a big driver in usemade by quickbuilder

i see by there site that it is not being distributed anymore at the moment

so here is a driver i compiled within quickbuilder for you

i used bport 0-3 and 4-7 pins for rows and columbs
but its quite easy to change to the pins you want
even adding a set of defines so the driver is easly setup then included

you need to init the driver as mentioned in the driver text

i see on the quickbuilder site the app is now
the full version with just limited libs and sources

however it loaded the design i made ok
so you can use it to change the design to what you need

as a kind of demo test of quickbuilders ability {a very handy tool }



to read the data from any keyboard
you pull the clock pin high
then let the keyboard controller pull it back low
then each bit is clocked out of the data line

9600baud 1 start 1 stop bit

so you need only to add a serial clock output to the serial port command string on any pic with a hardware uart software uarts wont work so well

its easy to read AT keyboard
ps2 is almost identical and the differenace is transparent to the data they produce
5 pin din is just a different plug and slight protocol changes
there are many keyboards all are 9600 baud
a good thing to do is look for links to texts
as ps2 keyboards can be init to use advanced drivers but ALL default to a standard local area layout
 

hitec c at keyboard

VSMVDD said:
ccs compiler has a library for this

Thanks for reply but I need the source code in .c not .lib

Code Warrior said:
But can you give some sample code for 4x4 key pad scanning. And if I required more then 4x4 key pad for this is there any solution?

look at this site: http://www.vermontficks.org/pic.htm
 

pic keyboard

May take a look at my web page to see if my driver (PS2) works for you.

My page: www.TechToys.com.hk -> Download section.

I have summarized the ps2 driver and tested it with Melabs X1 board, 4MHz crystal, 16F877.

John Leung
 

pic ps2 keyboard c source code

hai all

this is the code i used to read the at keyboard and the key pressed will be displayed in LCD.
if u want more particular details and pcb layout send me a pm
 

keyboard hi-tech pic

link:

**broken link removed**

don't know it will work if converted to hi-tech pic c.....

Thanks
 

pic keyboard ps2 mikroc

MikroC also do have a library containing keyboard sour ce code.
 

ccs c code for key board using serial

you can found in sample code of CCS C program
 

pic24 keyboard

CCS C compiler has built in function for scanning 4x4 key matrix.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top