I'd also tidied up the code to put some repetitive user port calls within procedures as well.
Click here to return to Read RTC