I2c master routine

Jan 28, 2004 6 Replies

Who has some standard working i2c routines for me.



I want to use the ds1307 and other i2c products.



Yours Bram


C? ASM? What processor?

Meindert

C code for the 89c51. But most code for a 8051 processor is ok.

Bram

Search EDN Design Ideas for my old entry on interfacing I2C EEPROMS to '51 MPU. The code is in assembly and it's very short and efficient.

Of course you are not going to sell the code without paying the royalty to it's author, are you?

On Wed, 28 Jan 2004 08:00:31 +0100, "Bram van de Kerkhof" wrote in comp.arch.embedded:

Check out this page on the Philips web site:

formatting link

There are application notes for several of their '51 architecture parts that have on-chip i2c.

Jack Klein Home: http://JK-Technology.Com FAQs for comp.lang.c http://www.eskimo.com/~scs/C-faq/top.html comp.lang.c++ http://www.parashift.com/c++-faq-lite/alt.comp.lang.learn.c-c++ http://www.contrib.andrew.cmu.edu/~ajo/docs/FAQ-acllc.html

I have a C module that contains all necessary functions. Mail me if you're interested.

Meindert

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required