AtomSoft
Well-Known Member
Hey im using a DS1306 and im supposed to convert from BCD to binary.
I know the max i can get from the seconds is 59 which in BCD would be:
0 - tens- ones
------------------
0 - 101 - 1001 = 5 - 9 = 59
The issue is sometimes i get a 1100(12) in the ones field. any thoughts?
Thanks again!
I searched on the forum and tried a bunch of code and could not get none to work.
Some just skipped like 1,2,3,4,6,12, etc...
and some showed me 255,254,253 etc...
I know the max i can get from the seconds is 59 which in BCD would be:
0 - tens- ones
------------------
0 - 101 - 1001 = 5 - 9 = 59
The issue is sometimes i get a 1100(12) in the ones field. any thoughts?
Thanks again!
I searched on the forum and tried a bunch of code and could not get none to work.
Some just skipped like 1,2,3,4,6,12, etc...
and some showed me 255,254,253 etc...