I have a 32.768 kHz resonator connected between the SOSCI and SOSCO pins and initialise as follows
Code: Select all
nvmkey := $55;
nvmkey := $AA;
rtcwren_bit := 1; // enable writing to rcfgcal
rcfgcal := %1010000000000000; // enable the RTC
rtcval := 0; // set seconds/minutes to zero
lposcen_bit := 1; // enable the LP-oscillator
I already played with initializing the concerned TRIS bits but no luck so far. for what it is worth i do not see any activity with a scope on the oscillator.
I am running this PIC from the internal osc with PLL, for that reason disabled the primary oscillator in the project-config.
Did anyone here get this working? I am aware of rather dramatic issue's with this RTC in the errata but still could use it to some level.