Yahoo Groups archive

AVR-Chat

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

Message

Re: [AVR-Chat] Re: Tiny2313 USI code to make I2C master

2009-06-18 by dlc

Bill,

   I got the file.  The code looks stupid simple, how well does it work 
and with what devices have you tried it?  The code seems pretty obvious, 
but the demo routines in there don't seem complete, for instance:
    if (!I2CPut(atod_reg, 2))

atod_reg is never set to anything, it will be two bytes of zeros.

   I'll give it a whirl, I've seen some code that uses the USI interface 
to do I2C and it is about 10x more complex and isn't even interrupt 
driven (based on Atmel app note).  I'm not terribly impressed with the 
USI interface...

Again, thanks,
DLC

internetwasteland wrote:
> --- In AVR-Chat@yahoogroups.com, dlc <dlc@...> wrote:
> 
>> Thanks, that sounds useful.
> 
> I've tried to upload the file I2C.ZIP to the files area.
> 
> I'll check later to see if it came through.
> 
> Bill
> 
> 
> 
> 
> ------------------------------------
> 
> Yahoo! Groups Links
> 
> 
> 

-- 
-------------------------------------------------
Dennis Clark          TTT Enterprises
www.techtoystoday.com
-------------------------------------------------

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.