Quote Originally Posted by Melanie View Post
Last three lines of my post Malcolm...
Mel,

I've used your example but still can't make the LED go high

Code:
AlarmH1=(RTCHour>>4)
AlarmH1=(AlarmH1&$03)*10
AlarmH1=AlarmH1+(RTCHour&$0F)
    
alarmhour = 21
	
	LCDOut ":",#(RTCMin>>4)&$0F,#RTCMin&$0F,":"
	LCDOut #(RTCSec>>4)&$0F,#RTCSec&$0F," "
	LCDOut $FE, $D4,"value = ",  # AlarmH1

    if AlarmH1 = alarmhour then
     PORTD.7=1
    endif
The LCD displays 21 as the value for AlarmH1

what am I doing wrong ???