Hi Tom,
yesterday morning I have read your linked articles, but then I have concentrated on other things about my problem. So when I have written on forum, I haven't answered your questions...Sorry...
However, I write the registers as 32bits, I had already encountered this issue...
Regarding 9.4 Initialization/Application Information
I think that if you want to read an RTC address location, you must:
- do a read in an address that isn't an RTC address,
- do a read in an RTC address, but is not the wanted RTC address,
- do a read of the wanted RTC address.
About the procedure of RTC initialization
I have tried to do the same things wrote in the manual, but the RTC didn't start however. I have solved my problem only with the procedure that I have explained to you. The value RTCGOCL = 0x00001FFF, doesn't make sense, I have assigned 0x00002000 to the RTCGOCL register.
About the USB, I have forgotten to explain to you 2 things:
-When I disconnect power supply of device (230Vac), I can supply it by USB. In this case there is about 2.5V on chip.
-I use the USB to load the software, after that I disconnect the USB cable.
Given that when I connect only USB there is 2.5V on chip, I have thought that if I do this procedure:
-connect only USB (2.5V on chip),
-connect power supply (3V3 on chip),
-load the software,
-disconnect USB
and the RTC works. Since the RTC works and the voltage on chip pass from 2,5V to 3.3V, maybe I must to do a power-up procedure?What do you think about?
Diego