摘要
基于DSP的漏水检测仪器在实现漏点定位时需要使用无线通信模块,TI公司的TMS320VC5402只提供了同步串行接口McBSP,而无线模块XBee为异步串口。本文采用16倍过采样的方法,结合直接存储器访问(DMA),通过对相关寄存器的适当配置,将McBSP软件模拟成通用异步接收/发送器(UART),从而实现DSP与XBee模块的连接通信。再通过对XBee模块的适当配置,可将从机检测信号无线传给主机,在主机中处理两路信号,从而确定出漏点位置。试验得到的漏点位置在误差范围内,证明了该法的可行性。
The wireless communication module should be needed when the leak detector is finding leak location. The DSP TMS320VC5402 of TI Company only provides synchronous serial port McBSP, but the XBee module provides an asyn- chronous serial port. This paper provides an over-sampled method. According to this method, combining DMA and configu- ring relative registers properly, the McBSP can be configured a UART, which can be connected with XBee directly. Then, configuring Xbee module appropriately can help to find leak location. According to some tests, leak location is within the er- ror range, which indicates the method is feasible.
出处
《计算技术与自动化》
2013年第4期33-36,共4页
Computing Technology and Automation
基金
广东省科技计划项目(2011B080701045)
惠州市产学研结合项目(2011C010002004)