摘要
根据某型号雷达模拟器研制需要,设计了基于STC89C52RC单片机数字键盘。先分析了STC89C52RC单片机的特性,随后给出了硬件电路和利用C语言和VisualC++的软件设计方法。根据设计要求,在Keil软件平台下使用扫描法编写程序对单片机进行控制,并对键盘响应进行处理,随后送入用C++编写的接收程序进行读取根据键值的不同进行相应的处理,并解决了硬件电路中存在的漏扫和震荡问题,最后对此设计方法进行了测试,并给出了测试结果。测试结果表明,键盘出错率低,响应迅速,符合设计要求。
Because of demand of a type of radar simulator,a digital keyboard is designed based on real arming radar.This paper analysis the characteristics of STC89C52RC SCM and presents the hardware circuit and the way to design the software.Scanning method is used to control the SCM under the platform of Keil software.The answer of the keyboard is sent to the receiving program to deal with.It resolves the leakage scanning and the shaking problem in hardware circuit,and then test and analyses the system.The keyboard has advantages to have less fault and respond rapidly.
出处
《电子测试》
2011年第10期55-57,共3页
Electronic Test