
; LPC936A1.A51
; Oct 7, 2010                   PCB: ?

; Features:     ?
;               ?


$mod51


RL1     bit     P2.3
RL2     bit     P2.4

                DSEG AT 20H
FLAG1:  ds      1
STACK:  ds      1


FRL1    bit     FLAG1.0                 ; Relay 1


                CSEG
                org     0H
                ajmp    Reset

                org     30H
Reset:          mov     0A5H,#0FFH

Start:          mov     c,FRL1                  ;
                mov     RL1,c
                cpl     c
                mov     FRL1,c
                mov     RL2,c

                acall   Delay0

                ajmp    Start

Delay0:         mov     R7,#250
Delay:          mov     R6,#61
Delay1:         nop
                nop
                nop
                nop
                nop

                nop
                nop
                nop
                djnz    R6,Delay1
                djnz    R7,Delay
                ret

Text:           DB      '(C) DIGIPOWER 2010'
Text0:          DB      ' LPC936A1 '

                END
