Yahoo Groups archive

AVR-Chat

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

Message

Re: Tiny2313 USI code to make I2C master

2009-06-10 by internetwasteland

--- In AVR-Chat@yahoogroups.com, "Dennis Clark" <dlc@...> wrote:
>
> Greetings,
> 
>   Another fellow and I are working on creating avr-gcc code to make an I2C
> master on a Tiny2313 using the USI module.  We have some code from M8 or
> M128 as a source, but those have full I2C implementations, not the
> "halfway" module in the T2313.  Has anyone implemented such a thing? 
> I'd surely love to avoid re-inventing THIS wheel.

I've written an I2C master on a Tiny24 without using the USI.  It's
actually quite easy to bit-bang I2C.  It's not in avr-gcc, but that
shouldn't be a problem.

I'll see if I can dig the source out of my archives.

Bill

Attachments

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.