<?xml-stylesheet type="text/xsl" href="https://community.element14.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Blog #5 I2C Attiny 85 Communication</title><link>/challenges-projects/design-challenges/sci-pi-design-challenge/b/blog/posts/blog-5-i2c-attiny-85-communication</link><description>In this blog, I would like to discuss the limited resources available when working with a basic microcontroller like the ATtiny85. I was surprised to find that while communication is straightforward with other boards, it is not as simple when it come</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Blog #5 I2C Attiny 85 Communication</title><link>https://community.element14.com/challenges-projects/design-challenges/sci-pi-design-challenge/b/blog/posts/blog-5-i2c-attiny-85-communication</link><pubDate>Mon, 26 Jun 2023 21:42:55 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:fad726f1-f945-43e5-a5de-ec2c086b19c4</guid><dc:creator>misaz</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Congrats. For saving time buy logic analyzer.There are some expensive one, but since I2C is very slow cheepest chinese are also suitable. The most cost efective way is Aliexpress (around 9 USD nowadays): &lt;a id="" href="https://www.aliexpress.com/item/1005003375736481.html"&gt;https://www.aliexpress.com/item/1005003375736481.html&lt;/a&gt;. I bought it for 13 USD several years ago and it saved be thousands of hours of debugging (not only low level codes).&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/1280x720/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-fad726f1-f945-43e5-a5de-ec2c086b19c4/pastedimage1687815163587v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;It will show you what is happending on the I2C bus (and other signals). Mentioned samples at 24 MHz and is suitable for analysing buses up to 12 MHz which 0.4MHz I2C fully satisfy.&lt;/p&gt;
&lt;p&gt;If you cant find working library there is no better way than write your own. While you was trying several third-party software which did not work right for you, it was possibly more cost efective learn how do the I2C and ATtiny86 work and write your own software from scratch. ATtiny86 is old microcontroller and have no I2C peripheral. There is USI which can be used for implementing partialy hardware accelerated I2C slave. Library you find most probably control it in tricky way or implement I2C slave using bitband method (directly reading GPIOs and driving them). The second mentioned is simple to implement yourself.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=26293&amp;AppID=402&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>