Steve,
Thanks for that, which I guess is similar to some of the code posted above.
This is the section of code based on your suggestion, and it too displays the value of AlarmH1 as 21 when the rtc is displaying 21 hrs, however the led on D7 fails to light (I've tested an the hardware works)
Welcome any comments... even if it's to point out the illogical of my logical coding.Code:// Alarmh1 =(rtchour>>4)*10+(rtchour & $0F) alarmhour = 21 LCDOut ":",#(RTCMin>>4)&$0F,#RTCMin&$0F,":" LCDOut #(RTCSec>>4)&$0F,#RTCSec&$0F," " LCDOut $FE, $D4,"value = ", dec alarmh1 if alarmhour = alarmh1 then PORTD.7=1 endif
Bookmarks