I think it might the mod mode, I will try this tonight, basic basic basic:
Code:while RTCHour != 1 I2CRead SDApin,SCLpin,$D0,$00,[RTCSec,RTCMin,RTCHour,RTCWDay,RTCDay,RTCMonth,RTCYear,RTCCtrl] Pause 20 'Will get the time from timer chip and do a 60 min count down 'Also add interrupt if someone presses start to view the charge/discharge cycle Rest_seconds = 59 - RTCSec Rest_min = 59 - RTCMin lcdout $FE,1, "Time: ", dec2 RTCHour, ":", dec2 RTCMin, ":", dec2 RTCSec lcdout $FE,$C0, " Dif: ", dec2 RTCHour, ":", dec2 Rest_min ,":", dec2 Rest_seconds Pause 150 Wend




Bookmarks