PLC 877
PLC 877
PLC 877
ORG 0x20
call
BANCO_0
call call
DEFAULT_PA CALC_K1
call call
CALC_K2 CONF_INT
BUC_P
call
BANCO_0
movlw 0x03 movwf PAUSA bcf btfss goto INTCON,GIE SCREEN,0 SKIP_UNO
; ---------------------------------------call TRANS_SP_A
clrf
BARGB1
movlw 0x83 movwf BEXP movlw 0x20 movwf BARGB0 clrf call call call BARGB1 FPM24 DISP_6 FLOAT_ASCII
;-------------------------SKIP_UNO call call call call call call call call call call call call call bcf ANALOG_IN CONV_PF TRANS_A_IN TRANS_A_B TRANS_SP_A FPS24 TRANS_A_D TRANS_K1_B FPM24 TRANS_A_GN TRANS_C_A TRANS_BE_B FPS24 STATUS,Z
movlw 0x80 movwf BEXP movlw 0x40 movwf BARGB0 clrf bcf BARGB1 STATUS,Z
movlw 0xFF andwf AEXP,0 btfss call call call call call call call call STATUS,Z FPM24 TRANS_D_B FPA24 TRANS_K2_B FPM24 TRANS_GN_B TRANS_SP_B FPA24
movlw 0x81 subwf AEXP,0 btfsc goto btfss goto bcf STATUS,C SI_SUP STATUS,Z NO_SUP STATUS,Z
movlw 0x20 subwf AARGB0,0 btfss goto btfss goto bcf STATUS,C SI_SUP STATUS,Z NO_SUP STATUS,Z
movlw 0x00 subwf AARGB1,0 btfss goto btfss goto SI_SUP movlw 0x81 movwf Y_EXP movwf AEXP movlw 0x20 movwf Y_B0 movwf AARGB0 movlw 0x00 movwf Y_B1 movwf AARGB1 goto CARGA_0 LAB_1 clrf AEXP STATUS,C SI_SUP STATUS,Z NO_SUP
AARGB0 AARGB1
TRANS_A_Y
movlw 0x84 movwf BEXP movlw 0x4C movwf BARGB0 clrf call call BARGB1 FPM24 INT2416
movf AARGB1,0 movwf PORTD call call call bsf goto CONF_INT call bcf bcf bcf bsf bsf clrf bsf bsf bsf BANCO_1 OPTION_REG,T0CS OPTION_REG,PSA OPTION_REG,PS2 OPTION_REG,PS1 OPTION_REG,PS0 INTCON INTCON,RBIE INTCON,T0IE INTCON,GIE TRANS_BE_AE TRANS_CE_BE TRANS_DE_CE INTCON,GIE BUC_P
RETURN
INI_PORTS call clrf clrf clrf clrf bsf bcf bcf bcf bcf call BANCO_0 PORTA PORTB PORTC PORTD ADCON0,ADCS1 ADCON0,ADCS0 ADCON0,CHS2 ADCON0,CHS1 ADCON0,CHS0 BANCO_1
movlw b'10001110' movwf ADCON1 movwf TRISA clrf call bsf call bsf TRISD BANCO_0 ADCON0,ADON BANCO_1 OPTION_REG,NOT_RBPU
RETURN
bcf
STATUS,RP0
STATUS,RP1
bsf
STATUS,RP0
STATUS,RP1
bcf
STATUS,RP0
STATUS,RP1
bsf
STATUS,RP0
STATUS,RP1
CALC_K1 call call call call call call call call TRANS_KP_A TRANS_TN_B FPM24 TRANS_T_B FPM24 TRANS_KP_B FPA24 TRANS_A_K1
RETURN
RETURN
RETURN
movlw 0x77 movwf BEXP movlw 0x20 movwf BARGB0 movlw 0x28 movwf BARGB1 call FPM24
RETURN
movlw 0x85 movlw 0x48 movwf BARGB0 clrf call call clrf clrf movlw movwf ;---------------call FXD1616U BARGB1 FPM24 INT24 BARGB0 BEXP 0x0A BARGB1
movf REMB1,W
movf REMB1,W movwf DECIMA movlw 0x30 addwf DECIMA,1 ;---------------call FXD1616U
movf REMB1,W movwf DECENA movlw 0x30 addwf DECENA,1 movf DECENA,0 movwf LETRA call call WrtData BANCO_0
call
BANCO_0
RETURN
INCLUDE
<I2C.ASM>