Remote Processing RPC-210 User Manual
Page 37

REAL TIME CLOCK
BASIC
SECTION 7
Page 7-3
Other software type interrupts that require CPU
processing such as ONTICK, ON LINE, ON COUNT,
or ON KEY PAD ar e NOT active.
IDLE 1 w ill work with interrupt 0 only if a CONF IG
BAUD 1,. .. or ON ITR 0 sta tement w as previo usly
executed.
SQUARE WAVE OUTPUT
The real time clock can generate square w aves in the
frequency range of 2Hz to 8192 H z. Output is at J7-4.
Application progr am RT C-3. BAS gener ates outputs
based on a us er selecte d input.
READING CLOCK SERIAL NUMBER
The r eal time cloc k has a unique serial num ber. This
serial number may be used in conjunction with a
program to protect against unauthorized copying.
The ser ial numbe r is rea d using RT C-4. BAS. This
example shows how the serial number may be read and
compared to determ ine if the software matches the
b o ar d . W h en u se d in c on ju n ct io n wi th th e H ID E
comm and, copying you r pro duct becom es virtually
impossible.
PROGRAMMABLE INTERRUPTS
The real time clock may be programmed to generate an
interrupt at a preset time. This time may be every
minute, hour, or day. Interrupts are similar to power
down modes described above except in this mode power
is always on.
Program RTC-5. BAS requests the hour, m inute, and
second the interrupt will occur. The hour , m inute, or
second may be “ ignored” if desired.
NOTE: When real time clock interrupts use INT 0 (J7-
3), CO M 1 is not available.
The interrupt line can be brought to one of the lines on
J 3 . R PB A SI C - 52 ' s O N L I N E or O N C O U N T
comm ands can be used to detect the interru pt.
APPLICATION PROGRAMS
The following program s are in the BASIC52 directory.
RTC-5. BAS has a routine for formatting time that may
be useful when using the DISPLAY command.
N a m e
Function
RTC-1.BAS
Initialize real time clock
RTC-2.BAS
Set wake up time.
RTC-3.BAS
Output square wave at J7-4
RTC-4.BAS
Reads ser ial numbe r and co mpar es it
t o n u m be r in p r og r a m .
RTC-5.BAS
Enables periodic interrupt based on
time.
1
Tadiran is in Port Washington, NY. Ph: 516 621
4980