Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Keyboard output


  • Please log in to reply
2 replies to this topic

#1 vayne24

vayne24

  • Members
  • 64 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:02:39 AM

Posted 01 December 2010 - 07:05 AM

Greetings,

We have a project on dot matrix display that would accept input from a keyboard. I would like to know how i can retrieve a keyboard scan code from its port since we will make a controller for it. I have searched everywhere but all i see are about the scan codes only. All i know is that there is a DATA pin where the scan codes are sent (PS/2) that are 8 bits long. I'm confused as to how a single pin can hold 8 bits. I'd very much appreciate any input regarding the issue.

BC AdBot (Login to Remove)

 


#2 Romeo29

Romeo29

    Learning To Bleep


  • BC Advisor
  • 3,194 posts
  • OFFLINE
  •  
  • Gender:Not Telling
  • Location:127.0.0.1
  • Local time:02:39 AM

Posted 01 December 2010 - 10:16 AM

I am amazed that you are going to make a micro-controller and your are asking how can one pin hold 8 bits? Get yourself a book on digital circuit design.
Signal is sent over clock frequency - 1 bit over each pulse of the clock - in addition to parity check signal (to check if data is corrupt).

Edited by Romeo29, 01 December 2010 - 10:17 AM.


#3 vayne24

vayne24
  • Topic Starter

  • Members
  • 64 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:02:39 AM

Posted 01 December 2010 - 10:39 AM

Sorry for not knowing that since my last and first micro-controller had like 20 pins with both port 1 and port 3 have 8 pins. Anyway, I understand already. I'll try to research more or maybe degrade our project.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users