Keypad+encoder source code
Author |
Message |
RubenHP
|
Posted: Mon Apr 19, 2004 6:46 am Post subject: Keypad+encoder source code |
|
|
Hi
I am new at C programming so bare with me. Can you please give me the code for writing a program using a 4x3 keypad with a 74c922 encoder chip in C? I know that when your DA pin is set high, it tells the program that data is available, but how do you wright the code to go fetch the data? Can you help me, I'm really struggling. When the DA pin goes high it must trigger an external interrupt(INT0) and then detect which key was pressed according the encoder chip.
Any help would be greatly appreciated!
Regards and Thanx,
Ruben |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Tony
![](http://wiki.compsci.ca/images/f/f4/OniTony.gif)
|
Posted: Mon Apr 19, 2004 8:34 am Post subject: (No subject) |
|
|
wow
well first of all, it should have gone into [C & C++ Help], not [tutorials]...
but anyways, it umm... seems kinda advanced to me sorry
also just wondering... are you really a Technician working for HP? |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
![](images/spacer.gif) |
RubenHP
|
Posted: Tue Apr 20, 2004 12:39 am Post subject: Keypad+encoder source code |
|
|
hi
No, It is my initials!
I'm using Keil uVision2, for programming. I'm using it to wright the program and then generating the hex files to put on a 27C256 eprom connected to a Intel 8051 Microcontroller. Which is connected to a 4x3 keypad and LCD, with the 74C922 encoder connected to the keypad and the encoder connected to the data bus of the microcontroller. I'm also using a 3-to-8 line decoder chip(74HC138) connected to all the IC's and to the data bus of the microcontroller. Can you help? |
|
|
|
|
![](images/spacer.gif) |
Tony
![](http://wiki.compsci.ca/images/f/f4/OniTony.gif)
|
Posted: Tue Apr 20, 2004 8:56 am Post subject: (No subject) |
|
|
I'm sorry to tell you - but at this point a vast majority of members are still in highschool and most don't even know C/C++ I'm just finishing grade 12 (and they wouldn't even teach me CS in the school ) |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
![](images/spacer.gif) |
|
|