I really needed C code.
I will still check that link out.
thanks! Lee
----- Original Message -----From: JoeSent: Sunday, February 06, 2005 1:39 PMSubject: [AVR-Chat] Re: Hardware i2c with atmega 32
The is some code on the Bascom list.
http://groups.yahoo.com/group/bascomlist/files/
look for TWI
--- In AVR-Chat@yahoogroups.com, "Lee Leathers" <fredit@c...> wrote:
> Hello, I am toying around with an mcp23016 (i2c port expander) with
my atmega 32.
>
> I have everything hooked up right.. but lack sample code for
hardware i2c (as I have heard this is very diff from software i2c).
>
> Does anyone have any stripped down code (code just to handle 1
device on the i2c) for the avr to be the master on an i2c bus?
>
>
> thanks-Lee