Design of Multi-machine Communication System Based on TWI
Zhu Zhengwei, Zhao Hui-hui, Lin Fang Shen · 2010
TWI (Two-wire Serial Interface) bus is simple but powerful and flexible. It supports master and slave operation. The system is based on TWI, with a couple of ATmega32 as masters and a LPC2478 chip as a slave to achieve communication among nine different MCU, which greatly increase the efficiency of LPC2478 and the whole system. The communication nodes in the system can be dynamically added or removed. The system can not only successfully manage to avoid bus confusion, but also greatly simplify the software design by using "a line" to connect the special pins of the slave and the masters. By using 1-byte parity bit, the system can effectively improve the reliability of data transmission. And communication speed of the system is faster than 2.5ms per time, which means better real-time.