Lorne,
You are doing something very wrong. The simulator does a reasonable job of simulating the hardware RTC clock mechanism. I can set the time.
I have attached a demo program that runs in the simulator. Run it and click on "View" and you will set the current time on the 4x20 LCD display. Click on the RELAY Set and the current values of the variables A,B and C will be load the Hours, Minutes and second registers.
This is the code to display the RTC time:
T = Status(18)
S = T MOD 100
T = T/100
M = T MOD 100
H = T/100
SetLCD 1,1,str$(H,2)+":"+str$(M,2)+":"+str$(s,2)
This is the code to change the RTC registers:
' SetTime - set RTC from the variables A:B:C
'
TIME[1] = A ' set the hours
TIME[2] = B ' set the minutes
TIME[3] = C ' set the minutes
After you run the code, the question that you need to ask is why did I use Status(18) to read the time registers. If you ask, I will tell you why.
Best regards,
Gary Dickinson