Hi, I have successfully got my system to do the following:
1. write the RTC hours, minutes and seconds to 3 integer files every 250 mS.
2. Reference those integers using "indirect addressing" in an ASCII string, with a colon separating them so the string looks like, for example, 11:23:48
2. Print the string (using a serial printer on Port 2)
The problem is that if the minutes or seconds are below 10, this is what prints:
11:6:7 when it should be 11:06:07
Anyone out there have any tips? I think I'm screwed.
1. write the RTC hours, minutes and seconds to 3 integer files every 250 mS.
2. Reference those integers using "indirect addressing" in an ASCII string, with a colon separating them so the string looks like, for example, 11:23:48
2. Print the string (using a serial printer on Port 2)
The problem is that if the minutes or seconds are below 10, this is what prints:
11:6:7 when it should be 11:06:07
Anyone out there have any tips? I think I'm screwed.
Last edited: