I just changed the code to work with a serial LCD and changed around the button inputs and clock working fine and I can set OK but time still lost on power cycling. I have 4v on Pin7 (28 pin pack, port a.5) from a lithium battery and monitored the clock pins and correct frequency from crystal. Should I build hardware to suit your example probramme using serial comms do you reckon...just to be singing from the same hymsheet.
Last edit: ashimotok0 2018-09-27
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Timer0 is NOT affected by the RTCC. I must not have had something set up right before.
Later,
Clint
Hi .. any update on this issue fromMicrochip support please?
@Ash.
Finally, I have sorted it out. Hopefully.
A demo https://github.com/Anobium/Great-Cow-BASIC-Demonstration-Sources/blob/master/Real%20Time%20Clock%20Solutions/RTCC_Microchip_16F19156_ANSI_SERIAL_TERMINAL_VBATEN.gcb This puts the time out to serial terminal. There, is a demo for LCD but I have not tested.
You will need the latest library. See https://sourceforge.net/p/gcbasic/code/HEAD/tree/GCBASIC/trunk/include/microchiprtcc.h
Both, together seem to work.
I have documented so that you should be able to understand what to use in other programs.
Enjoy
@Evan
I just changed the code to work with a serial LCD and changed around the button inputs and clock working fine and I can set OK but time still lost on power cycling. I have 4v on Pin7 (28 pin pack, port a.5) from a lithium battery and monitored the clock pins and correct frequency from crystal. Should I build hardware to suit your example probramme using serial comms do you reckon...just to be singing from the same hymsheet.
Last edit: ashimotok0 2018-09-27
yes. Same is good.