Position: Index > Unclassified >

TWI (I2C) interface on AVR

2017-12-22 07:00  
Declaration:We aim to transmit more information by carrying articles . We will delete it soon, if we are involved in the problems of article content ,copyright or other problems.

Two wire serial interfaces are included in following AVR microcontroller families: ATmega8x, ATmega16x, ATmega163x, ATmega32x, ATmega323x, ATmega64x, and ATmega128x. TWI interface is a “Philips”? standard I2C. Using TWI interface you can connect up to 128 devices using only two wires: clock (SCL) and data (SDA). Only two pull-up resistors on each line are needed this interface to work properly.

TWI (I2C) interface on AVR

I2C interface circuit is open collector. This means if one of all devices has low level signal on a line, then it is ’0′?, and if all devices have high impedance state, then signal is considered to be high ’1′?. More details about TWI interface you can find on any ATmega datasheet.

One of my examples Interfacing AD7416 digital temperature sensor you can find here: Analog Devices Digital temperature sensor AD7416

Reprinted Url Of This Article: