Hi Astro,

I did a search of this forum using "DS1302" in the search field and found that on March 10, 2006, Travin77 posted code for using the DS1302. You should be able to use the same code just setup the correct config fuses for the 18F452. I recently used code for the DS1337 that was posted back in 2004 I think and used the same program on both a 16F877A and a 18F452. Same program just different configuration setups. They work great on both PICs. The one thing that I didn't do was pay real close attention to the fine print on the data sheets regarding the type of crystal to use. It turns out I had one with too much capacitance and it is making the clock time faster. Changing to the correct crystal and now everything is okay.

Try it out!

BobK