--- 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