Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
ericgibbs said:
kchriste said:You can use the IC74C922 if you want. You don't need to because the PIC can do it all by itself as mentioned on the pages posted by Eric.
11max11 said:how about using the IC74C922 ??
is that any problem when using the IC74C922 send data to the PIC16f877??
gregmcc said:I like the resistor keypad idea. Here the 74c922 costs more than the pic itself
11max11 said:i have a quetion for the IC74C922....
is that i press the button '0' the output will become "PA=0,PB=0,PC=0,PD=0"
then i press the output '1' will become "PA=0,PB=0,PC=0,PD=1" and so on..>??
"PA=1,B=0,PC=0,PD=0]"
or is other else?
hi,11max11 said:is this correct??
#include <p16f877.inc>
PortB equ 06h
out_put MACRO var
movwf PortB
bsf PortB, var
bsc PortB, var
movf h'0A', w
out_put 4
movf h'0B', w
out_put 3
movf h'0C', w
out_put 2
movf h'0D', w
out_put 1
ENDM
END
thx for helping
ericgibbs said:hi,
If you look at the TRUTH table as part of the 74C922 diagram I posted a few days ago, it will answer your question.
Summary:
the answer to this question is, for the #1 key, A=1,B=0,C=0,D=0,[you have reversed the pattern!],
also a pin goes high on the 74C922, [Data Available], while a key is pressed, use this to interrupt the PIC program.
If you 'OR' the 'A B C D' line input pattern with 30hex, it will give you ASCII '0', '1'... '9', :,:,<,=,>,?
ericgibbs said:hi,
Whats the Macro supposed to do, its good practice to comment the Macro header with a description of the Macro's function.
Also as you have 'included the PIC type' you don't need to EQU the PORT's
hi,11max11 said:hihi....
i want to do is use the IC74C922 output send data to PIC16F877.
from PIC16F877 send the number i key in to infrared.
from other side PIC16F877 to accept it and display it to LCD...
i want to do encryption and decryption because this is a keylock...
ericgibbs said:hi,
Are you planning to detect a keypress, encode and IR transmit each key as it pressed?
Or
detect a keypress, encode, save in a key buffer and transmit the key buffer string when the user presses a 'ENTER or ACCEPT' key and will the keypad have a 'CANCEL or CLEAR' key?
Hope this is clear.