Yahoo Groups archive

AVR-Chat

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

Message

Re: [AVR-Chat] I2C / TWI

2007-06-27 by Ranjit Puri

Hi Dave,

Heres some bit banged TWI code for you.
http://ranjit.puri.googlepages.com/I2C_AVR_sampleC.zip

Regards
Ranjit

On 6/27/07, David VanHorn <microbrix@gmail.com> wrote:
>
>   > For bit banged ASM stuff look at AVR300 and AVR302, I have used the
> > master and it works very well. Some people think that there may be
> > some merits on using the bit banged TWI as they suspect some hardware
> > issue with the hardware TWI. I have some more bits if you get stuck,
> > I have partially translated the C code for AVR315 (Master) into ASM but
> > it is not pretty yet.
>
> I'd prefer to use the TWI hardware. I need this fast, and I'm in a
> very limited environment, one master, and exactly four slaves.
> I already implemented a "broken comms" timer, so that it will restart
> if the comms hangs. Only a truly hung hardware (broken) would stop
> me.
>  
>



-- 
Ranjit


[Non-text portions of this message have been removed]

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.