Chapter 7 calendar/clock, Commands – Remote Processing RPC-2350 User Manual
Page 42
CHAPTER 7
CALENDAR/CLOCK
7-9
Figure 7-1 RT C interrupt jumper W10
Use the following table to set clock inter rupt periods.
“Value” is written to I/O port &14E.
Interrupt interval
Value
1 second
6
1 minute
10
1 hour
14
Write these values to address &14E to set the interrupt
period.
OUT &14E,10 :’Set interrupt period to
1 minute
Write a 0 to addr ess &14D to clear an y interr upts
before executing ON ITR 0 and while in the interrupt
subroutine.
OUT &14D,0
:’Clear interrupt
COMMANDS
The following is a list of CAMBASIC com mands for the
calendar/clock.
Command
Function
C O N F I G C L OC K
Turns clock on or off
DATE$
Sets date
DAT E$(0)
Return s date
TIME$
S e ts ti m e
TIME $(0)
R e tu r n s t im e
ON ITR 0
Responds to interrupt