在理論分析循環碼編碼和譯碼基本原理的基礎上,提出了基于單片機系統的(24,16)循環碼軟件實現編碼、譯碼的方案。仿真結果表明(24,16)循環碼能有效地克服來自通訊信道的干擾,保證數據通信的可靠及系統的穩定,使誤碼率大幅度降低。本論文對(24,16)循環碼的研究結果表明,可以有效地降低錯誤概率和提高系統的吞吐量,實現糾錯僅需要在接收端增加有限的存儲空間和計算復雜度,具有一定的實用價值。
Abstract:
Based on analyzing the theory of encoding and decoding of cyclic code, this paper showed the schemes of encoding and decoding of(24,16)cyclic code by the software and based on microcontroller. Simulation results show that using (24,16) cyclic codes can effectively overcome the interference from communication channel, ensure the reliability and stability of data communication systems, and reduce the bit error rate greatly. The results of this paper show that by using the (24,16) cyclic code, the error rate can be reduced and the system throughput can be improved. Meanwhile, the system only needs to enlarge limited storage space and computation the complexity at the receiving end to realize error correction. Thus the (24,16) cyclic code has a practical value.
介紹了CAN總線和P87C591單片機的特點,給出了基于P87C591單片機的信號采集節點的軟、硬件設計,指出了硬件電路設計中應注意的問題,在軟件設計中重點介紹了節點初始化、報文發送和報文接收等子程序。
Abstract:
The features of CAN Bus and the microcontroller P87C591 are introduced, and the design of hardware circuit and soft configuration of the signals collection node based on P87C591 are presented. The problems in designing hardware circuit are discussed.Initialization subprogram, transmiting subprogram and receiving subprogram are emphasized in soft configuration.