论文部分内容阅读
为解决小家电控制板设计过程中经常遇到单片机I/O口不够用的情况,文中以EM78P156N单片机的5个I/O口同时作为6个LED灯驱动和2个按键输入为例,给出了用较少的I/O口实现多路驱动的设计方法。该方法通过巧妙的硬件设计,把软件操作系统的分时复用思想应用到单片机编程中,然后利用软硬结合的分时复用方法实现了较少I/O口的多功能控制。
In order to solve the design process of small household appliances often encountered single-chip I / O port is not enough, the article EM78P156N SCM 5 I / O port at the same time as the 6 LED lights and 2 keystroke input as an example, given With less I / O port to achieve multiple drive design. The method through clever hardware design, the software operating system time-multiplexed ideas applied to the microcontroller programming, and then use hardware and software combined with time-division multiplexing method to achieve less I / O port multi-function control.