Shop OBEX P1 Docs P2 Docs Learn Events
Repost with errors corrected for clock qstn — Parallax Forums

Repost with errors corrected for clock qstn

ArchiverArchiver Posts: 46,084
edited 2003-01-05 12:30 in General Discussion
I have noticed that the original code makes the time for the clock
setting a decimal number by preceding the constants with a $ sign,
so i tried the following :-

SERIN 3\12, 16468, [noparse][[/noparse]dec hours]
SERIN 3\12, 16468, [noparse][[/noparse]dec minutes]
SERIN 3\12, 16468, [noparse][[/noparse]dec day]
'hours = $13
'minutes = $14
'day = $7
Month = $12
Date = $03
Year = $02
Seconds = $00
GOSUB SetTimeAndDate

I have noticed that the original code makes the time for the clock
setting a hex number suitable for the ds1302 by preceding the
constants with a $ sign,
so i tried the following :-

SERIN 3\12, 16468, [noparse][[/noparse]hex hours]
SERIN 3\12, 16468, [noparse][[/noparse]hex minutes]
SERIN 3\12, 16468, [noparse][[/noparse]hex day]
'hours = $13
'minutes = $14
'day = $7
Month = $12
Date = $03
Year = $02
Seconds = $00
GOSUB SetTimeAndDate

I also tried this at the serout end.

Nothing Works [noparse]:([/noparse]

Can anybody help me

Regards,

Dwain.



To UNSUBSCRIBE, just send mail to:
basicstamps-unsubscribe@yahoogroups.com
from the same email address that you subscribed. Text in the
Subject and Body of the message will be ignored.


Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/




To UNSUBSCRIBE, just send mail to:
basicstamps-unsubscribe@yahoogroups.com
from the same email address that you subscribed. Text in the
Subject and Body of the message will be ignored.


Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
Sign In or Register to comment.