⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 controll.lst

📁 应用松翰母体写的一款电磁炉
💻 LST
字号:
     1  000000             ;******************************************************
     2  000000             ;name:mncontroll
     3  000000             ;function:用于整个工作状态控制
     4  000000             ;input:
     5  000000             ;output:
     6  000000             ;influece:
     7  000000             ;*******************************************************
     8  000000             mncontroll:
     9  000000             	jb1	stoprunflag,mncontroll90
    10  000000             	jb0	operateflag,mncontroll90
    11  000000             	call	buzzercontroll
    12  000000             	call	fancontroll
    13  000000             	call	malfunction
    14  000000             ;-----
    15  000000             mncontroll90:
    16  000000             	ret
    17  000000             ;******************************************************
    18  000000             ;name:buzzercontroll
    19  000000             ;function:用于控制蜂鸣器输出
    20  000000             ;input:
    21  000000             ;output:
    22  000000             ;influece:
    23  000000             ;*******************************************************
    24  000000             buzzercontroll:
    25  000000             /*
    26  000000             ;//	b0bts1	buzzerflag
    27  000000             	jmp	buzzercontroll90
    28  000000             ;-----
    29  000000             	b0bts0	loadfrequentflag
    30  000000             	jmp	buzzercontroll80
    31  000000             ;//	b0bts1	buzfrequentflag
    32  000000             	jmp	buzzercontroll90
    33  000000             ;//	bclr	buzfrequentflag
    34  000000             ;---
    35  000000             	notbit	ptbuzzer
    36  000000             	ret
    37  000000             ;-----
    38  000000             buzzercontroll80:
    39  000000             	mov	a,buzzercnt
    40  000000             	b0bts0	fz
    41  000000             	jmp	buzzercontroll90	
    42  000000             	decms	buzzercnt
    43  000000             	jmp	buzzercontroll90
    44  000000             	bclr	buzzerflag
    45  000000             */
    46  000000             ;-----
    47  000000             buzzercontroll90:
    48  000000             	ret
    49  000000             	
    50  000000             ;******************************************************
    51  000000             ;name:fancontroll
    52  000000             ;function:用于控制风扇运转
    53  000000             ;input:
    54  000000             ;output:
    55  000000             ;influece:
    56  000000             ;*******************************************************
    57  000000             fancontroll:
    58  000000             	b0bts1	operateflag
    59  000000             	jmp	fancontroll90
    60  000000             ;-----
    61  000000             	bset	ptfan
    62  000000             fancontroll90:
    63  000000             	ret
    64  000000             	
    65  000000             ;******************************************************
    66  000000             ;name:malfunction
    67  000000             ;function:故障控制程序
    68  000000             ;input:
    69  000000             ;output:
    70  000000             ;influece:
    71  000000             ;*******************************************************
    72  000000             malfunction:
    73  000000             	b0bts0	abnormalvoltfalg
    74  000000             	jmp	checkagaincvolt	 ;市电电压不正常报警
    75  000000             	b0bts0	nocookerflag
    76  000000             	jmp	checkagaincooker ;无锅报警
    77  000000             	b0bts0	popvalueflag
    78  000000             	jmp	popvaluedata
    79  000000             ;-----
    80  000000             malfunction10:
    81  000000             	b0bts1	malfunctionflag
    82  000000             	jmp	malfunction80
    83  000000             	jmp	startbuzzer
    84  000000             ;-----
    85  000000             popvaluedata:
    86  000000             	bclr	popvalueflag
    87  000000             	mov_	seg1buf,seg1temp
    88  000000             	mov_	seg2buf,seg2temp
    89  000000             	jmp	malfunction10
    90  000000             ;-----
    91  000000             checkagaincvolt:
    92  000000             	b0bts0	secondflag
    93  000000             	jmp	startbuzzer
    94  000000             	bset	secondflag
    95  000000             	bclr	ADCstartflag
    96  000000             	bclr	ADCendflag
    97  000000             	bset	popvalueflag
    98  000000             	bset	volADCflag
    99  000000             	jmp	startbuzzer
   100  000000             ;-----
   101  000000             checkagaincooker:
   102  000000             	b0bts0	secondflag
   103  000000             	jmp	startbuzzer
   104  000000             	bset	secondflag
   105  000000             	bclr	detecttimeflag
   106  000000             	bclr	checkcookerflag
   107  000000             	bclr	cyclestartflag
   108  000000             	bclr	onecycleflag
   109  000000             	bset	popvalueflag
   110  000000             	jmp	startbuzzer
   111  000000             ;-----
   112  000000             startbuzzer:
   113  000000             	b0bts0	startflag
   114  000000             	jmp	malfunction70
   115  000000             ;------------------------
   116  000000             	bset	startflag
   117  000000             	bset	Igbtstartupflag
   118  000000             	bclr	ledfrequentflag
   119  000000             	bclr	loadfrequentflag
   120  000000             ;//	bclr	buzfrequentflag
   121  000000             ;-----
   122  000000             	bclr	ptcout		;close IGBT
   123  000000             	bclr	fpwm1out
   124  000000             	bclr	ftc1enb		;stop t1 count
   125  000000             	bclr	fp01ien
   126  000000             ;-----
   127  000000             	bclr	t1sflag
   128  000000             	mov_	timer1s,#60
   129  000000             	mov_	timerbuf1,#2
   130  000000             	ret	
   131  000000             ;------------------------
   132  000000             malfunction70:
   133  000000             	b0bts1	t1sflag
   134  000000             	jmp	malfunction90
   135  000000             ;----
   136  000000             	bclr	t1sflag
   137  000000             	decms	timerbuf1
   138  000000             	jmp	malfunction90
   139  000000             ;----
   140  000000             	mov_	timerbuf1,#2
   141  000000             	notbit	buzzerflag
   142  000000             	ret
   143  000000             ;------------------------
   144  000000             malfunction80:
   145  000000             	b0bts1	startflag
   146  000000             	jmp	malfunction90
   147  000000             ;-----
   148  000000             	bset	fp01ien
   149  000000             	bclr	startflag
   150  000000             	bclr	Igbtstartupflag
   151  000000             malfunction90:
   152  000000             	ret
   153  000000             	
   154  000000             
   155  000000             
   156  000000             

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -