Who has some standard working i2c routines for me.
I want to use the ds1307 and other i2c products.
Yours Bram
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?
Greetings Ralf Neuber
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:
There are application notes for several of their '51 architecture parts that have on-chip i2c.
I have a C module that contains all necessary functions. Mail me if you're interested.
Meindert
Have something to add? Share your thoughts — no account required.
Ask the community — no account required