摘要
为了实现光电火控系统模拟器仿真主机与外围模块如按键、指示灯和电流表的通信,设计了一种基于单片机C8051F020和CPLD EPM240T100I5的接口电路。详细介绍了接口电路的组成和工作原理、硬件主要功能模块以及软件设计流程。该接口电路能实现多达48路指示灯、两路电流表的控制以及32路按键的识别。实际应用表明:该电路具有价格低廉、扩展灵活、稳定可靠等优点。
In order to make electro optical fire control system simulator communicate with peripheral module such as key,LED and ampere meter,an interface circuit was designed based on C8051F020 and EPM240T100I5.Composition and principle of the interface circuit,main hardware function module and program flow were introduced in detail.The interface circuit can control forty-eight LEDs and two ampere meters,and identify thirty-two keys.The actual application shows that the interface circuit has many advantages such as low price,flexible expansibility,stability and reliability.
出处
《国外电子测量技术》
2011年第11期54-57,共4页
Foreign Electronic Measurement Technology