Maker Pro
Maker Pro

I2c routines for ds1307

V

Van de Kerkhof

Jan 1, 1970
0
Who has used this ic and has some example code for me.
I'm using the 89c51 but any c code is welcome.

Yours Bram
 
B

Brian Dean

Jan 1, 1970
0
Who has used this ic and has some example code for me.
I'm using the 89c51 but any c code is welcome.

I've got C code for a DS1307 here:

http://www.bdmicro.com/code/

See the 'diag' project. The files 'ds1307.c' and 'i2c.c' should help.
The code is for an AVR, but should be fairly adaptable.

-Brian
 
Top