
Originally Posted by
jessey
Code:
IF hour > 12 THEN
IF Mode = am THEN
Mode = pm
ELSE
Mode = am
ENDIF
hour = 1
ENDIF
Why don't you try this:
Code:
IF hour > 12 THEN
TOGGLE Mode
hour = 1
ENDIF
For the Bit7 and Bit5, I checked again, you are right. I apologize.
Say your Bit7 and Bit5 are set correctly.
The rest, Bit4,Bit3,Bit2,Bit1 and Bit0 are consisting your hour data (in AM mode). In PM mode, Bit5 is also consisting hour data.
You are setting the hour data the same each time.
Last edited by sayzer; - 4th September 2006 at 12:16.
"If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte
Bookmarks