Thanks to everyone that responded!
Melanie, I still couldn't that snippet of code you supplied to work right. Using Dig 0 and Dig 1 to pick the 1's and 10's digits out of the BCD didn't give the desired results...
What finally DID work for me was to split the minutes data apart using bitwise AND (&) like so:
That got my upper and lower 4 bits separated out OK so I can increment/decrement them with the pushbuttons.Code:BCDByteH = rtcmin & %11110000 'get the high nibble BCDByteL = rtcmin & %00001111 'get the low nibble
When I'm done I put them back together into rtcmin with bitwise OR (|)
That seems to be working so far. More testing still to make sure...Code:rtcmin = BCDByteH | BCDByteL gosub settime
Anyway, thanks to all!
(Oh, and Joe S., you MUST be a married man. You seem to know the code for it pretty well.
Steve





Bookmarks