Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Thread

I2C between two AVR MCUs

I2C between two AVR MCUs

2005-08-21 by behrooz_hariri

Hi

I want to use I2C between two AVR mcus.  I wonder how to assign 
hardware address to any of them. 

If you have any sample code that works, please let me know.

tnx,
Behrooz Hariri

Re: I2C between two AVR MCUs

2005-08-21 by Don Kinzer

--- In AVR-Chat@yahoogroups.com, "behrooz_hariri" 
<behrooz_hariri@y...> wrote:
> I want to use I2C between two AVR mcus.  I wonder how to assign 
> hardware address to any of them. 

If there are going to be no other I2C devices on the bus then it 
doesn't matter what the address is - just pick one.  If there are 
other devices, choose an address that doesn't conflict with any of 
them.

As for sample code, get the AVR311 and AVR315 app notes from the Atmel 
website for examples of TWI slave and master code respectively.

Don

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.