
CHAPTER 7 CALENDAR/CLOCK
7-9
Figure 7-1 RTC interrupt jumper W10
Use the following table to set clock interrupt 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 any interrupts
before executing ON ITR 0 and while in the interrupt
subroutine.
OUT &14D,0 :’Clear interrupt
COMMANDS
The following is a list of CAMBASIC commands for the
calendar/clock.
Command Function
CONFIG CLOCK Turns clock on or off
DATE$ Sets date
DATE$(0) Returns date
TIME$ Sets time
TIME$(0) Returns time
ON ITR 0 Responds to interrupt
Kommentare zu diesen Handbüchern