Home › Magazines › 2009 › January › I2C Slave Kernel for ATtiny13 and `2313

I2C Slave Kernel for ATtiny13 and `2313

Stir in BascomAVR, add a pinch of assembly code

Published in issue 385, January 2009

I2C Slave Kernel for ATtiny13 and `2313

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!

Extra info, Updates

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

Click below to download a PDF copy of this article from Elektor magazine.

 

Downloads 

Article PDF
10 Elektor Credits
 

Order this magazine 

Magazine January 2009
UK385 (USD 6.70)
 

Free downloads 

Software

Free download

Please note. In view of the complexity of international markets, Elektor cannot guarantee the availability of components for this project.

Subscribe now

Subscribe to our free
E-weekly Newsletter!

Enter your Email address:

Follow Elektor

      

Act now!

Sponsored

FAQ

Before submitting questions, review our FAQ section!

Bestseller

Controller Area Network Projects

The aim of this book is to teach you the basic principles of CAN networks and in addition the development of microcontroller based projects using the CAN bus.

Package Deals

Elektor Bundles

Check our Package Deals and save money! Discounts up to 19% now available!

Price Slashed

Elektor OSPV

This Open Source People Vehicle is perfect for factory halls, warehouses, hospitals, colleges, schools etc.