5 августа 2008 г.

I2C (TWI) Sniffer

I2C (TWI) Sniffer If problems on the I2C bus occur, it was needed to see all data transfer on it. The easiest way was using an AVR and send data over the UART. But no ATmega can be used, because they can not listen only, not signal a start and not receive different addresses. So only the Attiny with USI can be used. Thus the sniffer use the ATtiny85. The output was done as text (hex numbers) at 115200 baud with 255 byte FIFO. A crystal of 14.7456MHz was used to match the baud rate. Version 2 added with some improvements. The C source can work with up to 230400 baud, the assembler source up to 460800 baud.
A second UART in software
ATMega Bootloader
DCF77 clock with LCD on ATTINY12
fast tiny & mega UART bootloader
I2C (TWI) Sniffer
LCD over one wire with ATtiny25
Multiple DS18[B]20 on LCD
SW-UART up to 460800 Baud

Комментариев нет: