實(shí)現(xiàn)8比特字節(jié)的RS糾錯(cuò)編碼,可以指定極性校驗(yàn)字節(jié)數(shù)目,能產(chǎn)生的最大校驗(yàn)序列長度為255字節(jié)(含極性校驗(yàn)字節(jié)).This is an implementation of a Reed-Solomon code with 8 bit bytes, and a configurable number of parity bytes. The maximum sequence length (codeword) that can be generated is 255 bytes, including parity bytes.
The Inter IC bus or I2C bus is a simple bidirectional two wire bus designed primarily for general control
and data transfer communication between ICs.
Some of the features of the I2C bus are:
• Two signal lines, a serial data line (SDA) and a serial clock line (SCL), and ground are required. A
12V supply line (500mA max.) for powering the peripherals often may be present.
• Each device connected to the bus is software addressable by a unique address and simple
master/ slave relationships exist at all times masters can operate as master-transmitters or as
master-receivers.
• The I2C bus is a true multi-master bus including collision detection and arbitration to prevent data
corruption if two or more masters simultaneously initiate data transfer systems.
• Serial, 8-bit oriented, bidirectional data transfers can be made at up to 100 KBit/s in the standard
mode or up to 400 KBit/s in the fast mode.
The SL11RIDE is a low cost, high speed Universal Serial Bus RISC based Controller board. It contains a
16-bit RISC processor with built in SL11RIDE ROM to greatly reduce firmware development efforts. Its
serial flash EEPROM interface offers low cost storage for USB device configuration and customer product
specific functions. New functions can be programmed into the I2C by downloading it from a USB Host
PC. This unique architecture provides the ability to upgrade products, in the field, without changing the
peripheral hardware.
MBUS協(xié)議
The bus communication system of EN1434-3 is commonly called M-Bus. Its application layer describes
a standard especially for meter readout. It can be used with various physical layers and with link layers
and network layers which support the transmission of variable length binary transparent telegrams.
以倉庫智能改造為背景,主要介紹單片機(jī)和上位機(jī)之間通信網(wǎng)絡(luò)和通信協(xié)議的選擇,MODBUS協(xié)議通信指令和功能碼使用,重點(diǎn)闡述了基于RS-485總線的MODBUS通信協(xié)議在上位機(jī)和單片機(jī)之間的串行通信,實(shí)現(xiàn)上位機(jī)對單片機(jī)設(shè)備的遠(yuǎn)程控制和信息采集的功能。Based on the intelligent warehouse transformation as the background,mainly introduces between MCU and PC communication network and the choice of communication protocol,instruction and the function code using the MODBUS protocol communication,expounds the MODBUS communication protocol based on RS-485 bus serial communication between PC and single chip microcomputer,PC remote control of single chip computer equipment and the function of information collection.