首页 | 本学科首页   官方微博 | 高级检索  
     

一种基于DSP的SCI外设多字节数据包的收发方法
引用本文:高玉文.一种基于DSP的SCI外设多字节数据包的收发方法[J].兵工自动化,2023,42(7).
作者姓名:高玉文
作者单位:四川航天燎原科技有限公司科研事业部
摘    要:为实现DSP与外部设备之间多字节长数据包的接收和发送,提出一种基于中断方式的接收方法和基于查询方式的发送方法。以DSP2812芯片为平台,数据包长度为48字节为例,与上位机进行数据通信;DSP接收中断一旦产生,即可启动接收状态机,自适应接收数据包;发送过程采用查询形式进行定时或者触发的方式发送,实现长数据包的发送。试验结果表明:该方法收发性能稳定可靠,非常适用于小型化低成本的应用场合,可为实际工程开发提供借鉴和帮助。

关 键 词:DSP  多字节  长数据包  上位机
收稿时间:2023/3/7 0:00:00
修稿时间:2023/4/20 0:00:00

A Method of Sending and Receiving Multi-byte Data Packets of SCI Peripherals Based on DSP
Abstract:In order to realize the receiving and sending of multi byte long data packets between DSP and external devices, a receiving method based on interrupt mode and a sending method based on query mode are proposed. With DSP2812 chip as the platform, the data packet length is 48 bytes, for example, to communicate with the upper computer. Once the DSP receive interrupt occurs, the receive state machine can be started to receive data packets adaptively. The sending process uses the query form to send the data in a timed or triggered manner to realize the sending of long data packets. The test results show that the method is stable and reliable, and is very suitable for miniaturization and low-cost applications, which can provide reference and help for practical engineering development.
Keywords:DSP  multi-bytes  long data packets  host computer
点击此处可从《兵工自动化》浏览原始摘要信息
点击此处可从《兵工自动化》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号