%S50 set but %SW50-52 keep changing
Probably misunderstanding something. I set %S50, but the registers %SW50-52 keep changing. Should they not 'disconnect' from the system so I can change them?
- confused
You have to use system bit %S50 and words %SW49-%SW53 for this.
When you want change time, set bit %S50 first, then copy new time to system words %SW49-%SW53. (Use integer to BCD conversion before copy) and set bit %S50 to "0" for updating time to RTC.
To get hours and minutes separate, you can use Rotate right and left instructions. Not easiest way, but it is possible
For reading time from system words, use first BCD to integer conversion and then rotate left/right instructions.
Probably misunderstanding something. I set %S50, but the registers %SW50-52 keep changing. Should they not 'disconnect' from the system so I can change them?
- confused