摘要
在嵌入式领域内经常用到按键和指示灯,如果数量较少,可以直接用单片机的I/O口驱动,编程容易,但需要充足的I/O;如果使用数量较多,单片机的I/O口不够用,则需要用矩阵扫描驱动,此种方法编程复杂,需要及时扫描刷新,占用单片机资源较多;如果使用数量很多,上述常规方法已经不能胜任,采用天徽公司生产的TM系列芯片,设计实现一个126个LED指示灯+63个按键的混编显示控制面板。
Abstract
Buttons and lights are often used in embedded system, if the quantity is less, can be directly driven by microcontroller I/O port ,the pro-gramming is relatively easy in this condition, but need more I/O port. If uses more number of buttons and lights and microcontroller I/O port is not enough, we need drive it by the scanning matrix, although it needs complex programming, timely scanning refresh, more system resource occupancy is used in this way. If uses a large number of buttons and lights, those conventional methods can't be competent, uses a chip of TM, designs a 126 lights and 63 keys mixed display panel.
基金项目
2015年大学生实践创新训练计划项目(201512685002Y)