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]
Message
Re: [AVR-Chat] I2C / TWI
2007-06-27 by Ranjit Puri
Attachments
- No local attachments were found for this message.