Victory1981 said: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?
8255 if good but u can think about serial mode and do paralel
Or any new ideas about reducing the number of I/O pins?
Victory1981 said: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?
Victory1981 said:I know I2C is very hot now.
But I don't quite understand that.
What's the benefit of I2C? Just reduce I/O pins?
What's the disadvantage?
If I need high speed AD sampling(say, >500KSPS),
can I2C transfer the data to microcontroller quickly enough?
I'm a newbie on microcontroller... want your help.
Thanks in advance.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?