Get System Clock; Set System Clock - Husky MP2500 Manual

Hide thumbs Also See for MP2500:
Table of Contents

Advertisement

If the RTC alarm is set, when the alarm time is reached it is reported via the
event handling mechanism. It will also power MP2500 up if it is powered
down when the alarm goes off, providing convenient automatic operation in
applications such as data logging.
Note that when the system clock is set, the MP2500 BIOS also sets the
RTC clock, and vice versa.

Get system clock

Entry
Exit
Description

Set system clock

Entry
Exit
Description
286
AH=00H
CX=high part
DX=low part
AL=overrun (0=not past midnight, 1=past midnight)
Reads the counter maintained by the BIOS. This
indicates the number of 'ticks' since midnight. This
count
is
incremented
(approximately), by BIOS interrupt 8. If counting past
midnight, AL is set to non-zero.
The 'Get RTC date' and 'Get RTC time' functions
described below are more useful!
AH=01H
CX=high part
DX=low part
Returns nothing
Sets the clock count.
Setting the system clock with this function also sets the
RTC clock so that the two do not get out of step.
every
H
MP2500 System Developer's Guide
USKY
54.95mSec

Advertisement

Table of Contents
loading

Table of Contents