📄 baojian.lst
字号:
220 4 TR0=0;
221 4 mode=0x00;
222 4 bell=0;
223 4 time_count=0x00;
224 4 P3M1=_bin(1,0,1,0,1,1,0,0);
225 4 P3M0=_bin(0,0,0,0,0,0,0,0);
226 4 P1M1=_bin(1,1,1,0,0,0,0,0);
227 4 P1M0=_bin(1,0,0,0,0,0,0,0);
228 4 _nop_();
229 4 strong_key=mid_key=lack_key=1;
230 4 }
231 3 }
232 2 if(liaocheng>=3)
233 2 {
234 3 TR1=1;
235 3 TR0=0;
236 3 power_flag=0;
237 3 heathigh=0;
238 3 //time_count++;
239 3 /*
240 3 if(time_count>10)
241 3 {
C51 COMPILER V7.07 BAOJIAN 10/12/2007 13:39:15 PAGE 5
242 3 larmlight=~larmlight;
243 3 time_count=0x00;
244 3 }
245 3 */
246 3 bell_style=0x02;
247 3 P3M1=_bin(1,0,1,0,1,1,0,0);
248 3 P3M0=_bin(0,0,0,0,0,0,0,0);
249 3 P1M1=_bin(1,1,1,0,0,0,0,0);
250 3 P1M0=_bin(1,0,0,0,0,0,0,0);
251 3 _nop_();
252 3 strong_key=mid_key=lack_key=1;
253 3 mode=0x00;
254 3 }
255 2
256 2 }
257 1 }
258 //*********************************************
259 //power();
260 //************************************************
261 void power(void)
262 {
263 1 if(power_flag)
264 1 {
265 2 // P3M1=_bin(0,0,0,0,0,0,0,0);
266 2 D1=D2=D3=D4=1;
267 2 power_flag=0;
268 2 on_off=1;
269 2 TR0=0;
270 2 TR1=0;
271 2 bell=0;
272 2 strong_key=mid_key=lack_key=1;
273 2 step=0x00;
274 2 mode=0x00;
275 2 larmlight=1;
276 2 time_count=0x00;
277 2 liaocheng=0x00;
278 2 heatlow=0;heathigh=0;
279 2 }
280 1 else
281 1 {
282 2 // P3M1=_bin(1,0,1,1,1,1,0,0);
283 2 D1=D2=D3=D4=0;
284 2 on_off=1;
285 2 TR0=0;
286 2 TR1=0;
287 2 bell=0;
288 2 time_count=0x00;
289 2 strong_key=mid_key=lack_key=1;
290 2 power_flag=1;
291 2 heatlow=1;
292 2
293 2 }
294 1 }
295 //**********************************************
296 //working()
297 //**********************************************
298 void working(void)
299 {
300 1 switch(mode)
301 1 {
302 2 case 0x01:
303 2 {
C51 COMPILER V7.07 BAOJIAN 10/12/2007 13:39:15 PAGE 6
304 3 switch(step)
305 3 {
306 4 case 0x01:
307 4 {
308 5
309 5 P3M1=_bin(1,0,1,0,1,1,0,0);
310 5 heathigh=1;
311 5 time_fly=time_start;
312 5 if(time_start>(_15S-time_fly1))
313 5 {
314 6 TR0=0;
315 6 heathigh=0;
316 6 time_start=0x00;
317 6 time_fly=0x00;
318 6 step++;
319 6 TR0=1;
320 6 }
321 5 break;
322 5 }
323 4 case 0x02:
324 4 { P3M1=_bin(1,0,1,0,1,1,0,0);
325 5 if(time_start>_20S)
326 5 {
327 6 heathigh=1;
328 6 time_start=0x00;
329 6 step++;
330 6 }
331 5 break;
332 5 }
333 4 case 0x03:
334 4 { P3M1=_bin(1,0,1,0,1,1,0,0);
335 5 if(time_start>_6S)
336 5 {
337 6 heathigh=0;
338 6 time_start=0x00;
339 6 step++;
340 6 }
341 5 break;
342 5 }
343 4
344 4 case 0x04:
345 4 { P3M1=_bin(1,0,1,0,1,1,0,0);
346 5 if(time_start>_12S)
347 5 {
348 6 heathigh=1;
349 6 time_start=0x00;
350 6 step++;
351 6 }
352 5 break;
353 5 }
354 4
355 4 case 0x05:
356 4 { P3M1=_bin(1,0,1,0,1,1,0,0);
357 5 if(time_start>_2S)
358 5 {
359 6 heathigh=0;
360 6 time_start=0x00;
361 6 step++;
362 6 }
363 5 break;
364 5 }
365 4 case 0x06:
C51 COMPILER V7.07 BAOJIAN 10/12/2007 13:39:15 PAGE 7
366 4 { P3M1=_bin(1,0,1,0,1,1,0,0);
367 5 if(time_start>_60S)
368 5 {
369 6 heathigh=1;
370 6 time_start=0x00;
371 6 step=0x03;
372 6 }
373 5 break;
374 5 }
375 4 default : break;
376 4 }
377 3 break;
378 3 }
379 2
380 2 case 0x02:
381 2 {
382 3 switch(step)
383 3 {
384 4 case 0x01:
385 4 {
386 5
387 5 P3M1=_bin(1,0,1,0,1,1,0,0);
388 5 heathigh=1;
389 5 time_fly1=time_start;
390 5 if(time_start>(_20S-time_fly)) //
391 5 {
392 6 TR0=0;
393 6 heathigh=0;
394 6 time_start=0x00;
395 6 time_fly1=0x00;
396 6 step++;
397 6 TR0=1;
398 6 }
399 5 break;
400 5 }
401 4 case 0x02:
402 4 { P3M1=_bin(1,0,1,0,1,1,0,0);
403 5 if(time_start>_20S)
404 5 {
405 6 heathigh=1;
406 6 time_start=0x00;
407 6 step++;
408 6 }
409 5 break;
410 5 }
411 4 case 0x03:
412 4 { P3M1=_bin(1,0,1,0,1,1,0,0);
413 5 if(time_start>_6S)
414 5 {
415 6 heathigh=0;
416 6 time_start=0x00;
417 6 step++;
418 6 }
419 5 break;
420 5 }
421 4 case 0x04:
422 4 { P3M1=_bin(1,0,1,0,1,1,0,0);
423 5 if(time_start>_60S)
424 5 {
425 6 heathigh=1;
426 6 time_start=0x00;
427 6 step=0x03;
C51 COMPILER V7.07 BAOJIAN 10/12/2007 13:39:15 PAGE 8
428 6 }
429 5 break;
430 5 }
431 4 default : break;
432 4 }
433 3 break;
434 3 }
435 2 case 0x03:
436 2 {
437 3 switch(step)
438 3 {
439 4 case 0x01:
440 4 {
441 5
442 5 P3M1=_bin(1,0,1,0,1,1,0,0);
443 5 heathigh=1;
444 5
445 5 if(time_start>(_05S)) //-time_fly
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -