针对TI的DSP没有集成UART异步通信121,不能直接和PC机进行通信的困难,对故障诊断仪中的PC机和DSP的通信需求进行了详细的分析,提出了PC机和DSP的可靠通信方案,包括通信部分硬件电路组成,通信协议的制定,DSP软件串口部分程序的结构和Windows下VB串口程序的实现;应用表明,故障诊断仪中通信能够稳定可靠地运行,由于其实现方法简单,编程思路清晰,并且在其它通信程序中有非常大的借鉴价值,具有很大的实用性和推广价值。
Aiming at the problem that some TI DSPs cannot communicate with PC directly which is caused by the lack of integration of UART, a solution is proposed for a faultless communication between PC and DSP after a detail analysis of the communication requirement in fault diagnosis equipment, including the circuit configuration, the presentation of the communication protocol, the structures of the serial port communication program in DSP and Windows VB program in PC. The application to fault diagnosis equipment shows that the commu nication works stably and reliably. The method is simple in implementation and easy in coding, and it could be applied to other eornmunica tion system. And it is practical and worthy of using abroad.