摘要
TMS320DM642(DM642)作为一款高性能的多媒体DSP有着广泛的应用。由于不具备通用异步串行收发接口(UART),使得与其他UART设备之间的通信存在困难。本文分析了异步串行通信的特点和其数据帧结构,利用片上同步多通道缓冲串行口(McBSP)和增强型直接存储器存取(EDMA)实现了UART功能。重点论述了McBSP与EDMA相关寄存器的初始化设置,发送接收数据的编解码软件处理等。该方法无需其他外部器件,硬件实现简单,程序流程简洁,丰富了DM642的接口功能,提高了其使用的灵活性。
TMS320DM642(DM642) has been widely used as a high performance DSP for digital media applications. As with no universal asynchronous receiver and transmitter (UART) provided, it is difficult to communicate with other UART devices. In this paper, a method using the on-chip multichannel buffered serial port (McBSP) and enhanced direct memory access (EDMA) to emulate software UART is provided. The initialization of the McBSP and EDMA and the data coding/decoding in process of transmitting/receiving are discussed in detail. This method can be implemented with easy program flow and no other device. It enriches the DM642's interface function and extends its application as well.
出处
《电子测量技术》
2008年第2期103-105,136,共4页
Electronic Measurement Technology