EmbeddedRelated.com
Forums
Memfault Beyond the Launch

I2c master routine

Started by Bram van de Kerkhof January 28, 2004
Who has some standard working i2c routines for me.

I want to use the ds1307 and other i2c products.

Yours Bram


"Bram van de Kerkhof" <bvdkSPAMGONE@oce.nl> wrote in message
news:1075273231.374191@news-ext.oce.nl...
> Who has some standard working i2c routines for me. > > I want to use the ds1307 and other i2c products.
C? ASM? What processor? Meindert
C code for the 89c51. But most code for a 8051 processor is ok.

Bram


"Bram van de Kerkhof" <bvdkSPAMGONE@oce.nl> wrote in message
news:1075285218.733693@news-ext.oce.nl...
> C code for the 89c51. But most code for a 8051 processor is ok.
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?
http://www.keil.com/i2c/

Greetings
Ralf Neuber


On Wed, 28 Jan 2004 08:00:31 +0100, "Bram van de Kerkhof"
<bvdkSPAMGONE@oce.nl> wrote in comp.arch.embedded:

> Who has some standard working i2c routines for me. > > I want to use the ds1307 and other i2c products. > > Yours Bram >
Check out this page on the Philips web site: http://www.semiconductors.philips.com/cgi-bin/catalog/get_documents.pl?id=45992&doc_kind=applicationnotes&threshold=1 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
"Bram van de Kerkhof" <bvdkSPAMGONE@oce.nl> wrote in message
news:1075285218.733693@news-ext.oce.nl...
> C code for the 89c51. But most code for a 8051 processor is ok.
I have a C module that contains all necessary functions. Mail me if you're interested. Meindert

Memfault Beyond the Launch