Page 1 of 1

RTC registers

Posted: Sat Apr 04, 2015 10:33 pm
by basicchip
>from help line
I am running out of program memory in my ARMmite app. I am currently wasting a 4K sector just to store 3 values that need to be recovered on start up. Looking at the RTC in the User Manual I see it has three 32 bit "General Purpose Registers" that are R/W. I have battery back up installed for the clock. As far as I can see in your 2103 library these registers are not defined and therefore probably not used. Is that correct ? Is there any reason I can't use them for my application ?

Re: RTC registers

Posted: Sat Apr 04, 2015 10:33 pm
by basicchip
The BASIC firmware does not use those registers so they are available to you.

Re: RTC registers

Posted: Sun Apr 05, 2015 12:14 am
by basicchip
I went ahead and programmed the use of these registers. I just used your code for HOUR by analogy. It seems to work fine, no side effects I have detected yet and it solves my problem beautifully.

I suggest this is a useful enough general purpose capability it would be worth adding to your library.
TestGPReg.bas
(268 Bytes) Downloaded 812 times
GPRegisters.bas
(562 Bytes) Downloaded 863 times