温度自动控制系统原理图及源程序 第5页

温度自动控制系统原理图及源程序 第5页

  mov column2,#32
       mov pagef2,#2
       mov code,55H
       lcall writeright

       mov column2,#40
       mov pagef2,#2             ;.
       mov code,#11
       lcall writeright

       mov column2,#48
       mov pagef2,#2
       mov code,56H
       lcall writeright
       RET
      
DISPLAY4:                              ;显示"实际温度"
       mov column3,#16            ;实
       mov pagef3,#4
       mov code,#10
       lcall writeleft2
       LCALL DELAY1

       mov column3,#32           ;际
       mov pagef3,#4
       mov code,#11
       lcall writeleft2
       LCALL DELAY1

       mov column3,#48          ;温
       mov pagef3,#4
       mov code,#0
       lcall writeleft2
       LCALL DELAY1

       mov column3,#0          ;度
       mov pagef3,#4
       mov code,#1
       lcall writeright2
       LCALL DELAY1
        RET

DISPLAY5:                            ;显示实际的温度
      MOV A,29H
      MOV C,40H  ;28的位地址
      RRC A
      MOV C,41H
      RRC A
      MOV C,42H
      RRC A
      MOV C,43H
      RRC A
      MOV 51H,A
      ANL 29H,#0FH
      MOV A,29H
      MOV B,#6
      MUL AB
      MOV 50H,A

      mov a,51H
      mov b,#10
      div ab
      mov 43H,a
      mov 42H,b

      MOV A,50H
      MOV B,#10
      DIV AB
      MOV 41H,A
       MOV 40H,B

       mov column2,#16
       mov pagef2,#4
       mov code,#10
       lcall writeright

       mov column2,#24            ;实际温度
       mov pagef2,#4
       mov code,43h
       lcall writeright

       mov column2,#32
       mov pagef2,#4
       mov code,42h
       lcall writeright

       mov column2,#40
       mov pagef2,#4             ;.
       mov code,#11
       lcall writeright

       mov column2,#48
       mov pagef2,#4
       mov code,41h
       lcall writeright
       RET
      
DISPLAY6:
       mov column3,#24
       mov pagef3,#6             ;状
       mov code,#13
       lcall writeleft2
       LCALL DELAY1

       mov column3,#40
       mov pagef3,#6             ;态
       mov code,#14
       lcall writeleft2
       LCALL DELAY1

       mov column,#56
       mov pagef,#6             ; :
       mov code,#10
       lcall writeleft
       LCALL DELAY1

       mov column4,#0
       mov pagef4,#6             ;加
       mov code,#15
       lcall writeright2
       LCALL DELAY1

       mov column4,#16
       mov pagef4,#6             ;热
       mov code,#16
       lcall writeright2
       LCALL DELAY1

       mov column4,#32
       mov pagef4,#6             ; !
       mov code,#19

上一页  [1] [2] [3] [4] [5] [6] [7] [8] [9] [10]  ... 下一页  >> 

Copyright © 2007-2012 www.chuibin.com 六维论文网 版权所有