Hi James, > Thanks for the link Dave. It looks like a good starting point. I was > hoping to just put USI into TWI mode and just map the USI to TWI register > names and such. It looks like it's going to be quite involved and is going > to take some time to figure out. Other than the openservo project it looks > like projects needing TWI (i2c) just stayed away from the USI > implementation. I mean if professional developers are shying away from USI > implementations of TWI should I as a hobbyist? Am I just wasting my time? Not necessarily. I mean, lots of people do bit-banged i2c. Using USI allows the hardware to deal with a bunch of the bit manipulations. So using USI will consume less CPU than using bit-banged i2c. But bit-banged i2c is probably easier to understand just by looking at the code and is probably portable to many more platforms. So it all depends on what your constraints are, what type of performance you're trying to achieve and how much CPU you have. -- Dave Hylands Vancouver, BC, Canada http://www.DaveHylands.com/
Message
Re: [AVR-Chat] Looking for i2c (TWI) using USI example (AVR Butterfly ATmega169)
2006-12-19 by Dave Hylands
Attachments
- No local attachments were found for this message.