This is a file from my SmartWatch Disk Basic & OS-9 package. The 
Disk Basic software is not included here. RG

                 OS-9 SmartWatch (R) Software
                      Copyright 1990
                            by
                       Robert Gault

	This disk contains your OS-9 and Disk Basic SmartWatch(R) 
drivers. The programs have been written to complement each other 
so that there will not be interference between the OS-9 and Disk 
Basic operation.
	The OS-9 software is Swset, Swread, and a new Date module which 
can be used to replace the stock date. The new date reports in 12 
hour (AM/PM) time regardless of how the SmartWatch has been set. 
Day of the week is also supported. If you want to see the time in 
24 hour mode, do not use the new date module.
	Swset enables setting or disabling the SmartWatch from OS-9; 
both 12 and 24 hour modes are supported. A timer mode is also 
possible in which the date and time are zeroed out and elapsed 
time is kept. Swset will automatically run Swread when the clock 
is set so make sure that both Swset and Swread are in your command 
directory.
	Swread polls the SmartWatch and sets the system direct page 
date and time bytes. Since there are many modules that make use of 
the time, swread converts the time to 24 hour mode regardless of 
how the SmartWatch is set. This keeps things compatible for both 
OS-9 and Disk Basic. You can have the watch set for 12 hour time 
and reported as such in Disk Basic, have 24 hour time for the OS-9 
system, and have date/time reported as desired by choosing either 
stock or the new date module. Swread also supports day of the 
week.

                    HOW SWREAD WORKS

	I prefer not to burden the system with excessive clock reads. 
There is no reason to do so as precise time is never needed. What 
is needed, is adequate correction to compensate for disk I/O where 
halt controllers clobber the system time.
	Swread, therefore, can be run on command when ever you wish to 
update the system time, ex. swread (enter). Swread can also be run 
as a background task with preset update intervals, ex. swread 5& 
(enter). This will cause swread to pole the watch every 5 minutes. 
The interval is selectable from 1 to 60 minutes. 
	For best results, place a call to swread in your startup file 
and remove the setime call. I like to use the following syntax:
swread 5 <>>>/2&

                   MPI COMPATIBILITY

	Both the OS-9 and Disk Basic programs do not care in which slot 
he watch is located; so you don't need to either. Mount the 
SmartWatch either in the disk controller or some other ROM pack; I 
like to use the RS-232 Pak.
	Swset and Swread will check each MPI slot and find your watch. 
In he event that the watch can not be found, you will be notified 
and vectored into setime. When Swread is run in background, 
overhead is reduced by storing the MPI slot value once found. The 
MPI is searched only once.
 
