Hi,everyone Are you using a keyboard management IC? Which one is the best? Take 4 X 4 keyboard for a example! Discuss it!
But if a additional IC is ued,the port could be saved. Now,I'm using a ZLG7189 which is produced by Guangdong Zhouligong in China.It has a I2C-like interface. Only 4 port line is used and tow of them could be shared. And it could scan keyboard automatically,in fact,it could manage 64 keys and 8 7-seg LED. Maybe others are using a better IC.If you let the MCU scan keyboards,it will also take much CPU time.
hi, If you let the MCU scan keyboards,it will also take much CPU time Here it is implemented via 1/50s interrupt and takes about 30 assembly commands with total time about 20mks - 0.1% of processor time (= good days!