
Operating Functions
Chapter 5
5–68
Use this routine to set the following wall clock time functions:
H = hours (0 to 23)
M = minutes (0 to 59)
S = seconds(0-59)
Example:
Program the wall clock for 1:35 pm (13:35 on a 24 hour clock).
u10 H=13: M=35: S=00 :REM HOURS=13; MINUTES=35; SECONDS=00
u20 PUSH H,M,S :REM PUSH HOURS, MINUTES, SECONDS
u30 CALL 40 :REM CALL THE ROUTINE TO SET THE WALL CLOCK TIME
Use this routine to set the following wall clock functions:
D = day
M = month
Y = year
Three values are PUSHed and none POPed.
Example:
Program the wall clock for the 16th day of June, 1985
u10 D=16: M=06: Y=85 :REM DAY OF MONTH = 16, MONTH = 6, YEAR = 85
u20 PUSH D,M,Y :REM PUSH DAY OF MONTH, MONTH, YEAR
u30 CALL 41 :REM CALL THE ROUTINE TO SET THE WALL CLOCK DATE
CALL 42 sets the day of the week. Sunday is day 1. Saturday is day 7.
Example:
uPUSH 3 : CALL 42 REM DAY IS TUESDAY.
5.9.1
Setting the W
all Clock T
ime
(Hour, Minute, Second) –
CALL 40
5.9.2
Setting the W
all Clock Date
(Day, Month, Y
ear) –
CALL 41
5.9.3
Set W
all Clock – Day of W
eek
– CALL 42
Comentarios a estos manuales