Victory1981
Newbie level 6
Hello, everyone.
I'm a newbie on microcontroller and meet with a problem.
I'm using AVR Mega16 which has 32 I/O Pins, I often fell it's not enough at all!
4*4 Matrix Keyboard : 8 pins
16*2 LCD: 11 pins
T0/T1,INT0/INT1 left for further used... 4 pins
Now, left only 9 I/O pins....
If I want to use a RAM....It's not enough at all!
Can someone tell me how to reduce the number of I/O pins I used?
Say, a IC can tranlate 4*4 Matrix Keyboard signal to binary number(which can reduce 4 I/O pins).
Is 8255 good? Or address registers(such as 74XXX) are better?
Or any new ideas about reducing the number of I/O pins?
I'm a newbie on microcontroller and meet with a problem.
I'm using AVR Mega16 which has 32 I/O Pins, I often fell it's not enough at all!
4*4 Matrix Keyboard : 8 pins
16*2 LCD: 11 pins
T0/T1,INT0/INT1 left for further used... 4 pins
Now, left only 9 I/O pins....
If I want to use a RAM....It's not enough at all!
Can someone tell me how to reduce the number of I/O pins I used?
Say, a IC can tranlate 4*4 Matrix Keyboard signal to binary number(which can reduce 4 I/O pins).
Is 8255 good? Or address registers(such as 74XXX) are better?
Or any new ideas about reducing the number of I/O pins?