Yahoo Groups archive

AVR-Chat

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

Thread

RE: [AVR-Chat] Hardware i2c with atmega 32

RE: [AVR-Chat] Hardware i2c with atmega 32

2005-02-07 by Dave Hylands

Hi Lee,
This library: http://hubbard.engr.scu.edu/embedded/avr/avrlib/ has some i2c routines to support both interrupt driven and non-interrupt driven hardware TWI.
I was able to get it up and working fairly easily.

--
Dave Hylands
Vancouver, BC, Canada
http://www.DaveHylands.com/

Show quoted textHide quoted text
-----Original Message-----
From: Lee Leathers [mailto:fredit@charter.net]
Sent: Saturday, February 05, 2005 8:18 PM
To: AVR-Chat@yahoogroups.com
Subject: [AVR-Chat] Hardware i2c with atmega 32

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

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.