
如图,这两个二极管是什么作用啊?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
是两个或以上的相连的IO都同时设为输出了,而且有些输出1,有些输出0,时间长了就会损坏IO,所以可以加二极管隔离。
这种应该称为交互式\双交互式键盘,用更少的I/O口实现按键功能。但是需要的扫描时间更长,稳定性不如矩阵键盘,二极管的作用相当于开关量,高电平导通,低电平截止。另外防止电流倒灌。其实有一种方式似乎连KP_INT都不需要,不过一般在I/O口充裕的情况下,还是使用矩阵键盘更方便。