;FILENAME:   STLAB101.ASM
;TITLE:      Basic LED matrix control, ON/OFF and flash
;HARDWARE:   MLAB-121
;DATE:       March 16, 1996

; JAZZ-31 utilities subroutine
DTSEC   EQU    0042H    ;delay 1/10 routine

; MAX7219 Interface declaration
DATAI   EQU     P1.4    ;DATA IN pin
LOADX   EQU     P1.5    ;LOAD pin
CLOCK   EQU     P1.6    ;CLOCK pin
;
        ORG     8100H
START:
        CLR     CLOCK
        CLR     LOADX
        LCALL   INIT_7219
LOOP:
        LCALL   OFF_LEDS      ;all LEDs of every digit off
        LCALL   DELAY
        LCALL   ON_LEDS       ;all LEDs of every digit on
        LCALL   DELAY
        SJMP    LOOP
;
        $INCLUDE "STLAB10H.ASM"
        END
