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.

Help interfacing a keyboard !

Status
Not open for further replies.

Loki1_11

Newbie level 3
Joined
Mar 29, 2005
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,308
Hi guys I'm new to the microcontroler word so I'm trying to get some help !
I need to program an button to send an ASCII char to the pc but it has to use the keyboard cable !
So I get the schematic of the cables and I founded the data and the clock cables ...
so I need a lote of help becuse I dont understand so much of electronics ... I'm new to this big world ...

so I've buyed an PIC12F765 from microchip that has 8 pins and I need to code it to send the chars to pc when a button is pressed !

any tips ? helps ? or something will be appreciated !

Thanks for all guys,
Regards,
Diego.
 

Loki1_11

Newbie level 3
Joined
Mar 29, 2005
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,308
Ok I've looked but I think thats not the way ...

But I will look closer later !

Any other tips ?

Thanks a lote guys :)
Regards,
Diego.
 

silvio

Advanced Member level 3
Joined
Dec 31, 2001
Messages
716
Helped
105
Reputation
210
Reaction score
16
Trophy points
1,298
Location
Romania
Activity points
11,470
Look at fig.1 and fig.4 of this doc:
https://www.computer-engineering.org/ps2protocol

You can use any port PIC you like.

In the same page:

To make this process a little easier to understand, here's the steps the host must follow to send data to a PS/2 device:

1) Bring the Clock line low for at least 100 microseconds.
2) Bring the Data line low.
3) Release the Clock line.
4) Wait for the device to bring the Clock line low.
5) Set/reset the Data line to send the first data bit
6) Wait for the device to bring Clock high.
7) Wait for the device to bring Clock low.
8) Repeat steps 5-7 for the other seven data bits and the parity bit
9) Release the Data line.
10) Wait for the device to bring Data low.
11) Wait for the device to bring Clock low.
12) Wait for the device to release Data and Clock

Isn't a chalenge for you to write the code ?
 

Loki1_11

Newbie level 3
Joined
Mar 29, 2005
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,308
Yap I think its ... cuz I`m new to it but its good to learn !

Thanks Silvio !

Any more tips would be appreciated !

Regards,
Diego.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top