I2C Slave Kernel for ATtiny13 and `2313
Stir in BascomAVR, add a pinch of assembly code

With all the processing power under the hood of the Atmel ATtiny13 and ATtiny2313 micros, it’s not too difficult to get them interfaced to the I2C bus: some Basic and embedded assembly code will do just nicely.
The I2C bus (a.k.a. IIC or inter-IC bus) as well as integrated circuits designed to work on it, have been described numerous times in this magazine, just look at references [1] and [2] for two recent articles. Although there exist hundreds of ICs with I2C compatibility, each and every one of these will have one specific function it was designed to handle. For example, humidity sensing, relay driving, LCD controlling, data memorising, push button activity detection, keyboard decoding, bus current boosting — you mention it, it’s all available, and cheap too!
This is a MEMBER ONLY article. You need a subscription to read this article.
- Unlimited access to online Member Only articles
- 3 new editions Elektor Magazine (digital)
- More than 5000 Gerber files
- 20% member discount on e-books (at elektor.com)
- 10% member discount on Products (at elektor.com)
Available from €5.33 per month.
What is Members Only
Elektor is committed to providing high-quality content on electronics, catering to tens of thousands of paying members. As part of this commitment, Elektor has launched Premium, an initiative that offers exclusive online articles to members sometimes even before they appear in the magazine.
Every day, members can access in-depth articles that showcase the best of Elektor's premium content.
This initiative aims to reward members with early access. Once logged in, members can easily enjoy this exclusive content and engage in discussions about featured projects. While Premium adds to the existing resources available, Elektor will continue to provide a wealth of free information.
Join the Elektor community today to take advantage of Premium and other benefits!
Materials
Extra info / Update
Technical Spec
• Atmel ATtiny13 or ATtiny2313 programmed to act as a slave device on the I2C bus
• Mix of BascomAVR and assembly code
• Software open-ended and free to community
• No fixed device address
• Learning mode and hardware activation built in
Discussion (0 comments)