I am reading / replying on phone; please understand the difficulty of studying closely your code. It would appear to me that counter variables may exceed byte value assigned? Var WORD to take values greater than 254.
I too am recently working with clock and found it complex and clumsy to work between decimal and BCD; perhaps you too would find it simpler to make the conversion only when reading/ writing registers and therefore all other interactions are simplified by being common value without effort?
Bookmarks