click here for more info

MMA7660FC Breakout Solder CompressedMeticilous breakout of accelerometer to breadboard

There are a few libraries out there for doing I²C (I2C) using the USI or TWI hardware for AVRs. Unfortunately documentation that explains exactly what is happening is hard to come by. There are a number of well done explanations on what it is, and extensive examples for PICs, though few for AVRs and much less for ATTiny45s.

So I decided to do a simple bit-banged version for my own project. Click one of the links for the full article.

Here is a link to an excellent explanation of I2C and it’s general protocol (no need to re-explain it). It sounds rather simple to implement, though the method and code to make it work on AVR is a little counter intuitive.

click here for more info

Leave a Reply




You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>