RTC registers

Questions about the BASICtools and MakeItC
Post Reply
basicchip
Posts: 1090
Joined: Fri Oct 19, 2012 2:39 am
Location: Weeki Watchee, FL
Contact:

RTC registers

Post 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 ?



basicchip
Posts: 1090
Joined: Fri Oct 19, 2012 2:39 am
Location: Weeki Watchee, FL
Contact:

Re: RTC registers

Post by basicchip »

The BASIC firmware does not use those registers so they are available to you.

basicchip
Posts: 1090
Joined: Fri Oct 19, 2012 2:39 am
Location: Weeki Watchee, FL
Contact:

Re: RTC registers

Post 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

Post Reply