论文部分内容阅读
一种以LPC932单片机为控制核心的8路数字智能抢答器,由直流稳压电源,复位,按键检测,串行通信,驱动及动态数码显示电路组成。系统程序包括定时器,串口和外部3个中断服务函数。电源接通后,先对LPC932的I/O口,定时器T0,串口和外部中断初始化,然后判断是否有按键,如有,则执行相应的中断服务函数,从机向总线申请控制权,发送从机的地址给主机,主机再进行相应的处理。
A kind of 8-channel digital intelligent responder with LPC932 as the control core consists of DC power supply, reset, key detection, serial communication, driving and dynamic digital display circuit. The system program includes timer, serial port and external 3 interrupt service functions. After the power is turned on, first I / O port, timer T0, serial port and external interrupt LPC932 initialization, and then determine whether there are keys, if any, then the corresponding interrupt service function, the slave to the bus to apply for control, send From the machine’s address to the host, the host and then the appropriate treatment.