Jump to content

Keypad 3x4 with pic 16f887


minhrung

Recommended Posts

keypad

The keyboard also known as the keypad is fairly common use in programming the microcontroller to enter data quickly. Currently, there are different kinds keypad, but the most common are type 3 × 4 and 4 × 4.

 To identify an action occurs on the keypad, we implement continuous keypad scan to detect it.

 Compiler mikroC Pro for Pic has supported us a library of functions to perform a simple scan most keypad.

 Library in mikroC compiler function keypad (Keypad Library):

Keypad_Init (): Before you use the other functions of the library keypad, you must call this function before.
Keypad_Key_Press (): Read from the keyboard keys are pressed, if no key is pressed, the function returns 0.
Keypad_Key_Click (): The function will wait until the first key pressed and released. When the key is released, the function returns a value from 1 to 16, depending on the keys on the keypad. If more than one key is pressed, the function will wait until the key is released. Then, the function returns the value of the first key is pressed.

Video: https://www.youtube.com/watch?v=eOZ4e0jM-LQ

Code mikroC and proteus file here

Link to comment
Share on other sites

  • 6 years later...
On 3/15/2016 at 2:37 AM, minhrung said:

http://www.dientudieukhien.net/wp-content/uploads/keypad-3x4.jpg

The keyboard also known as the keypad is fairly common use in programming the microcontroller to enter data quickly. Currently, there are different kinds keypad, but the most common are type 3 × 4 and 4 × 4.

 To identify an action occurs on the keypad, we implement continuous keypad scan to detect it.

 Compiler mikroC Pro for Pic has supported us a library of functions to perform a simple scan most keypad.

 Library in mikroC compiler function keypad (Keypad Library):

Keypad_Init (): Before you use the other functions of the library keypad, you must call this function before.
Keypad_Key_Press (): Read from the keyboard keys are pressed, if no key is pressed, the function returns 0.
Keypad_Key_Click (): The function will wait until the first key pressed and released. When the key is released, the function returns a value from 1 to 16, depending on the keys on the keypad. If more than one key is pressed, the function will wait until the key is released. Then, the function returns the value of the first key is pressed.

Video: https://www.youtube.com/watch?v=eOZ4e0jM-LQ

Code mikroC and proteus file here

Hopefully this is still helpful even after 6 year

thanks

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...