Home › Magazines › 2000 › July › Implementing the I2C Bus

Implementing the I2C Bus

New instructions for MCS-51 BASIC

Published in issue 290, July 2000

The popular but already somewhat outdated programming language MCS-51 BASIC does not have any instructions for controlling an I2C bus. Fortunately, it’s easy to add home-made instructions to this version of BASIC.More than twelve years ago, when Intel’s development engineers made their BASIC interpreter (which was actually intended for internal, experimental use) available to the general public in the form of the mask-programmed 8052-AH-BASIC microcontroller, the development of I2C communications was still in its infancy. It’s thus no surprise that no thought was given to instructions for controlling an I2C bus. Of course, it is possible to program an I2C interface using the regular instructions, since there is no minimum clock frequency specified for I2C communications.

Free downloads

006006-1.zip

Free download

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

 

Downloads 

PDF Article (E007S86.pdf)
10 Elektor Credits
 

Free downloads 

006006-1.zip

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!

FAQ

Before submitting questions, review our FAQ section!

Bestseller

Microprocessor Design using Verilog HDL

This book is a practical guide to processor design in the real world. It presents the Verilog HDL in an easily digestible fashion and serves as a thorough introduction about reducing a computer architecture and instruction set to practice. 

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.

Elektor PCBs at 25% OFF