>> "The DS1307 returns the seconds in hex so 59secs = 3B"
No it doesn't! The DS1307 gives you Binary Coded Decimal (BCD), so 59 seconds is %01011001 = $59
If RTCSeconds is $59 then...
UnitSeconds=RTCSeconds & $0F ' will get you your lower 4 bits = $09
TensSeconds=RTCSeconds >> 4 ' will get you your upper four bits = $05
Bookmarks