资 源 简 介
串口控制程序一般分为查询和中断两者方式。查询方式适用于简单的应用,简单可靠,但是缺点是需要占用处理器资源,在发送或者接收数据的时候不能做其它的事情,处理器利用率低。中断方式下,在发送或者接受数据的时候处理器还可以做其它的工作,效率较高。-Serial control procedures will generally be divided into two way query and interruption. Query applied to simple applications, simple and reliable, but the drawback is the need to occupy processor resources to send or receive data at the time should not make other things, the processor utilization rate. Interrupt mode, the send or accept data when the processor can do other work, more efficient.