;FILENAME:   STLAB071.ASM
;DATE:       March 16, 1996
;TITLE:      DS1202 Serial Timekeeper control
;HARDWARE:   MLAB-121

; JAZZ-31 utilities subroutines
CLEAR   EQU     003CH   ;clear hexbuf & dispbuf
SCAND   EQU     0096H   ;scan display
SCANK   EQU     099H
HTOS    EQU     00E4H   ;hex to segment code
; Pin Interface
RTC_DATA  EQU    P1.4
RTC_CLK   EQU    P1.5
RTC_RST   EQU    P1.6
; Variables
DISBUF  EQU     32H     ;display buffer (8 bytes segment code)
HEXBUF  EQU     3AH     ;hex buffer (3 bytes)

        ORG     8100H
START:
        LCALL   CLEAR
        CLR     RTC_RST
        SETB    RTC_CLK
        LCALL   DELAY
        LCALL   RTC_INIT        ;initial RTC
LOOP:
        LCALL   RTC_DISPLAY     ;read and show time parameters
        SJMP    LOOP
;
       $INCLUDE "STLAB07H.ASM"
;

        END


