the 1302 seems to have no defined por register settings, so why not write a couple of bytes to the rtc's ram when you set the time . on subsequent pic boot ups check the rtc ram for those bytes , if...
I seem to be doing everything correct, I even had MAXIM have a look at what I was doing, and they said it all looked good, that is why I am at such a loss having to program the device...
Yes I am connecting as per the datasheet, I am using a DS1302
Are you using a battery backup on the RTC that is isolated from the rest of the power supply?
some rtc's power on reset to a set value eg ds1307 power on default is 01/01/00 01 .
you can look for this value when your pic powers up and if its something else then assume the time is still...
I am battling with a RTC Clock that keeps re-setting after I loose power. I have done a few things which has helped the RTC keep the time when the power is off.
Please see code below:
I'm not really sure what this means , its rather ambiguous
perhaps a schematic diagram (or a photo) of your setup would be in order
I am very interested in test the programs but I am still waiting to receive the PCF expander.
It will arrive here after my summer holidays. I will let you know.
Thanks for all.
thanks for your help.
i suspect st wrong,
i test the whole port b. it runs well (8 leds) - FOSC_INTIO67 (16x4mhz)
However, when attaching portb to the 74hc595 - then 1 of the port pin lost...
The conf. has changed from #4
also you said
If it works for single leds then it works and all of your code needs checking. So please post your code so we can help.