基于51单片机的74循环码编程
基于51单片机的(7,4)循环码编译码的设计
电子信息科学与技术专业学生 王东菊
指导老师 王心水
摘The design of Encoding and Decoding of (7,4) Cyclic Code Based on the 51 SCM
Student majoring in Electronic information science and technology Wang Dongju
Tutor Wang Xinshui
Abstract: The most important problem in communication system is communication quality, and the most important measures of the quality of communication system is effectiveness and reliability. So-called effectiveness refers to the system efficiently transmit information in digital communication system .So-called reliability, refers to the system, and reliable transmission channel encoding aims at solving problems. Reliability, Previous cycle code compiler circuit with the shift register and mostly composed of two linear temporal network to accomplish. The basic circuit is simple and easy to implement. But in volume and function expansion by restrictions and cannot play a bigger role. Using (7,4) codes, make full use of the MCU software functions encoded and decoding correction, which can effectively overcome the interference from communication channel, ensure the reliability of data communication systems, the stability and the ber greatly reduced. And, just change the software algorithm, and can be used in different microcomputer, different words long need. Anyhow, this design using the software programming method (both simplified decoding process, high reliability, operation circuit faster, smaller, and may expand advantages and other functions, circuit according to need any modification, this is compared to other hardware circuit cannot abandon traditional pattern, is a new attempt.
Key words: Microcontroller;Communication;Cyclic code;Encode;Decode;Correcting code;Anti-intreferance
引 言
在数据通信中,误码率是项重要指标。误码可能发生在各个环节,大量实践证明,传输媒介是产生误码的主要来源。为了提高数据传输可靠性,人们开始广泛采用编码技术,通过编码以一定的规则产生一些附加数字(称为监督数字),使原来不相关的信息序列变为相关的新序列(称为码字或者码序),然后把新的序列发送出去。通过编码的方法使信息具有纠检差错的功能。该通信模型可以简要的用图1来表示:
近年来随着计算