摘要
详细介绍了串口通信的基本原理和实现方法,在上位机和DSP之间实现3种通信方式,即查询方式、标准SCI模式的中断方式、FIFO模式下的中断方式;同等条件下,接收和发送同等数据量数据,使用FIFO中断方式用时最少,通信效率最高,节省了CPU的机时资源;当数据量越大时,采用该方式,其优越性越明显。在FIFO中断方式中,针对上位机与DSP之间存在的上电时序问题,提出了一种找帧头重排序方法,经过实验,验证了该方法的可靠性。
This paper illustrates the key principle and method of serial interface communication. Achieving the three kinds of communication methods, namely query methods, standard SCI interrupt mode, FIFO interrupt mode between PC and DSP. Under the same conditions, with receiving and transmitting the same data, using the FIFO interrupt mode is the least, is the most efficient communication efficiency and saves the CPU resources, when the data size is large, using this method is superior. In the interrupt FIFO method, in view of the power on sequence problem between PC and DSP, this paper proposes a method for reordering. After the experiment, the reliability of the method is verified.
出处
《计算机测量与控制》
北大核心
2014年第7期2301-2303,共3页
Computer Measurement &Control
关键词
串口通信
FIFO中断方式
上电时序
重排序方法
serial interface communication
FIFO interrupt mode
power on sequence
a method for reordering