one test only version ...
Hi,
May be we could simplify ...
RTCSEC is ALWAYS >= 0 with PbP ... huh ...
IF ( RTCSEC & $F0) = 0 or 3 ... AND
IF RTCSEC & $0F < 8 ... PortB.7 = 1
Else Portb.7 = 0
so,
IF (( rtcsec & $F0 = 0 ) OR (rtcsec & $F0 = $30 )) AND ( rtcsec & $0F < 8 ) THEN
PORTB.7 = 1
ELSE
PORTB.7 = 0
ENDIF
...
Alain
PS: Hi Sayzer ... you've also got one point !!!
Last edited by Acetronics2; - 19th June 2007 at 12:52.
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
Bookmarks