Ds1302 with simple ide
kodaleshen
Posts: 15
I was wondering if anyone has had any success or found any examples of code for the ds1302. If so any info is appreciated.
Thanks,
Thanks,
Comments
You did not specify the Microprocessor that you need code for. BS1, BS2, Propeller?
If you go to the upper right "Search" box and type in DS1302, you will find quite a lot of information and code.
Stop back if you can't find the specific information you need.
Here is something:
https://code.google.com/p/propgcc/issues/attachmentText?id=28&aid=280000006&name=c_sample.c&token=uxAlcWq_g4grqyz7XmoNPHMQk9o:1329328564639
And an earlier version of ICC:
http://forums.parallax.com/discussion/111670/iccprop-imagecraft-c-library-for-maxim-ds1302-real-time-clock
DISCLOSURE:I don't do C at all, so it may not be of any use.
Turnaround time will be longer for that one. It's on my list now...
I have a question for somebody that understands "C". I would liked to have put the closing bracket for the void ds3202Clock method below the two methods that read or write a register, but the compiler wouldn't allow it: something about the read/write methods definitions. If someone could explain that and tell me how to fix it (or alternately pat my head and say don't worry), I would be forever grateful.
tc