摘要
一种以LPC932单片机为控制核心的8路数字智能抢答器,由直流稳压电源,复位,按键检测,串行通信,驱动及动态数码显示电路组成。系统程序包括定时器,串口和外部3个中断服务函数。电源接通后,先对LPC932的I/O口,定时器T0,串口和外部中断初始化,然后判断是否有按键,如有,则执行相应的中断服务函数,从机向总线申请控制权,发送从机的地址给主机,主机再进行相应的处理。
Based on LPC932 SCM, a kind of 8-route intelligent calling implement which consists of DC of voltage stabilization, reset, keys test, serial communication, drive and dynamic numeral display circuit. The program includes three kinds of ISR--Timer, UART and EINT. After powering, it firstly initializes I/O port, timer TO, UART and EINT, then tests whether someone puts down key; if there is, it runs corresponding ISR, the slave applies for bus control and sends its address to the master, then the master takes corresponding process.
出处
《兵工自动化》
2007年第7期70-71,共2页
Ordnance Industry Automation
关键词
单片机
抢答器
抗干扰
SCM
Calling implement
Anti-interference