📄 shr2.asm
字号:
;************************************************************************
;* shr2.asm Date: 12/08 *
;************************************************************************
;*Focus bug points *
;*1.vapor finished ,but flink hadn't be turn off. *
;*2.heat up value not same as what default as . *
;************************************************************************
;------- place definition ----------
home set 1
office set 0
;------- select place --------------
;place equ home
place equ office
;------- work at home --------------
list p=16c73a
errorlevel -301
errorlevel -302
if place==home
include p16c73a.inc
include shr2.p
include shr2.h
endif
;------- work in office ------------
if place==office
include p16c73a.inc
include shr2.p
include shr2.h
endif
;------- main program --------------
org 0
b start
org 4
b timer
org 5
;----- tank temp lcd --------
tmp_lcd
movf tmp_reg,0
addwf pcl,1
retlw temp_30
retlw temp_35
retlw temp_40
retlw temp_45
;----- temp lcd value table --
ther_lcd
movlw off_set
subwf ad_idx,0
addwf pcl,1
retlw tmp_0c ;0 10k/(10k+x10k)
retlw tmp_0c ;1
retlw tmp_1c ;2
retlw tmp_1c ;3
retlw tmp_2c ;4
retlw tmp_2c ;5
retlw tmp_3c ;6
retlw tmp_3c ;7
retlw tmp_4c ;8
retlw tmp_4c ;9
retlw tmp_5c ;10
retlw tmp_5c ;11
retlw tmp_6c ;12
retlw tmp_6c ;13
retlw tmp_6c ;14
retlw tmp_7c ;15
retlw tmp_7c ;16
retlw tmp_7c ;17
retlw tmp_8c ;18
retlw tmp_8c ;19
retlw tmp_8c ;20
retlw tmp_9c ;21
retlw tmp_9c ;22
retlw tmp_9c ;23
retlw tmp_10c ;24
retlw tmp_10c ;25
retlw tmp_10c ;26
retlw tmp_11c ;27
retlw tmp_11c ;28
retlw tmp_11c ;29
retlw tmp_12c ;30
retlw tmp_12c ;31
retlw tmp_12c ;32
retlw tmp_13c ;33
retlw tmp_13c ;34
retlw tmp_13c ;35
retlw tmp_14c ;36
retlw tmp_14c ;37
retlw tmp_14c ;38
retlw tmp_15c ;39
retlw tmp_15c ;40
retlw tmp_15c ;41
retlw tmp_16c ;42
retlw tmp_16c ;43
retlw tmp_16c ;44
retlw tmp_17c ;45
retlw tmp_17c ;46
retlw tmp_17c ;47
retlw tmp_18c ;48
retlw tmp_18c ;49
retlw tmp_18c ;50
retlw tmp_19c ;51
retlw tmp_19c ;52
retlw tmp_19c ;53
retlw tmp_20c ;54
retlw tmp_20c ;55
retlw tmp_20c ;56
retlw tmp_21c ;57
retlw tmp_21c ;58
retlw tmp_22c ;59
retlw tmp_22c ;60
retlw tmp_23c ;61
retlw tmp_23c ;62
retlw tmp_24c ;63
retlw tmp_24c ;64
retlw tmp_25c ;65
retlw tmp_25c ;66
retlw tmp_26c ;67
retlw tmp_26c ;68
retlw tmp_27c ;69
retlw tmp_27c ;70
retlw tmp_28c ;71
retlw tmp_28c ;72
retlw tmp_29c ;73
retlw tmp_29c ;74
retlw tmp_30c ;75
retlw tmp_30c ;76
retlw tmp_31c ;77
retlw tmp_31c ;78
retlw tmp_32c ;79
retlw tmp_32c ;80
retlw tmp_33c ;81
retlw tmp_33c ;82
retlw tmp_34c ;83
retlw tmp_34c ;84
retlw tmp_35c ;85
retlw tmp_35c ;86
retlw tmp_36c ;87
retlw tmp_36c ;88
retlw tmp_37c ;89
retlw tmp_37c ;90
retlw tmp_38c ;91
retlw tmp_38c ;92
retlw tmp_39c ;93
retlw tmp_39c ;94
retlw tmp_40c ;95
retlw tmp_40c ;96
retlw tmp_41c ;97
retlw tmp_41c ;98
retlw tmp_42c ;99
retlw tmp_42c ;100
retlw tmp_43c ;101
retlw tmp_43c ;102
retlw tmp_44c ;103
retlw tmp_44c ;104
retlw tmp_45c ;105
retlw tmp_45c ;106
retlw tmp_46c ;107
retlw tmp_46c ;108
retlw tmp_47c ;109
retlw tmp_47c ;110
retlw tmp_48c ;111
retlw tmp_48c ;112
retlw tmp_49c ;113
retlw tmp_49c ;114
retlw tmp_50c ;115
retlw tmp_50c ;116
retlw tmp_51c ;117
retlw tmp_51c ;118
retlw tmp_52c ;119
retlw tmp_52c ;120
retlw tmp_53c ;121
retlw tmp_53c ;122
retlw tmp_54c ;123
;----- time table for vapor --
vap_time
movf vp_reg,0
addwf pcl,1
retlw min_30
retlw min_25
retlw min_20
retlw min_15
retlw min_10
;----- start -----------------
start
config
initial
main_prg
skn_func
main_esc
btfss t_count
b main_prg
bcf t_count
btfss sec_bit
b main_prg
bcf sec_bit
b main_prg
;----- key recieve port --------------------
rev_port
rev_skn
return
;----- send data subroutine ----------------
snd_data
push t1w_reg,t1s_reg
send_da
pop t1w_reg,t1s_reg
return
;----- int for timer 0 ---------------------
timer
bcf intcon,t0if
bsf intcon,gie
push t0w_reg,t0s_reg
timer0
pop t0w_reg,t0s_reg
t_end
retfie
;--------------- end ---------------------
end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -