From the view of a practical engineering application, this article describes a simple and feasible implementation of serial communication between DSP and the microcontroller, and the system also expands LCD and the keyboard module as the human-computer interaction interface, of which the hardware interface circuit is given in the article. The advantage is not only the number of pins of DSP and the microcontroller used is reduced, but also the design complexity of the interface circuit can be lowered greatly. In software programming, we use the idea of Multi-processor communication smartly, which increases the accuracy and reliability between the double CPUs in transferring large amounts of data. This scheme is being applied to the development item of an intelligent and dynamic var Compensation Device in low voltage systems at present.%本文从实际工程应用角度出发,介绍了一种简便可行的DSP与单片机之间实现串行通信的方法,并设计了液晶显示模块和键盘模块作为人机交互接口,给出了硬件接口的原理示意图.其优点是:不仅减少了使用DSP与单片机的I/O接口,而且降低了接口电路设计的复杂性;在软件编程上巧妙地利用"多处理器通信"的思想,提高了双CPU系统之间大数据量传输的正确性、可靠性.目前,该设计方案正应用于一个低压系统的智能、动态无功补偿装置的开发项目中.
展开▼