4x4 keypad interface using MM74C922N encoder

Status
Not open for further replies.

Khullekani

New Member
hey guys! i am building a security coded safe as a project for school, my problem is the output of the encoder, when i press 1 it gives a binary output of 0000,2=0001,3=0010,A=0011,4,5&6 are correct then B=0111 then the rest are a digit ahead. I am using a PIC16F873A.I need to display a three digit number on three seven segments(common anode) pic basic pro ,please help
 

hi,
The keypad for a 4*4 when using a 74C922 is connected do the A,B,C,D, binary code output is as shown in image #1.
Key '0' when pressed sets A,B,C,D low, the DAVL is set Low. Use the DAVL line to generate an Interrupt in the PIC, then read the A,B,C,D lines.

Image #2, shows OE pin of the 74C922 connected via an inverter from /DAVL.
If you are not multiplexing the ABCD pins, then the inverter is not required, just connect the OE pin high.

So for Key #0, its 0000 an key#1 its 0001...


NOTE: by OR'ing the ABCD code with 30h [0x30] you will have the ASCII value ie 30h ['0'] and 31h ['1'] for the example given
 

Attachments

  • AAesp01.gif
    9.5 KB · Views: 719
  • AAesp02.gif
    18.9 KB · Views: 2,118
Last edited:
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…