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

📄 main.lst

📁 温度采集显示与PID控制
💻 LST
📖 第 1 页 / 共 2 页
字号:
MPASM 03.30 Released                                 MAIN.ASM   5-9-2003  11:48:20         PAGE  1


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE

                      00001 ;*******电机驱动**********
Warning[205]: Found directive in column 1. (LIST)
                      00002 LIST         P=16F73
Warning[205]: Found directive in column 1. (INCLUDE)
                      00003 INCLUDE      "P16f73.inc"
                      00001         LIST
                      00002 ; P16F73.INC  Standard Header File, Version 1.00    Microchip Technology, Inc.
                      00320         LIST
                      00004 ;*****************************
                      00005 ;寄存器说明
  00000020            00006 i2cwead    EQU    0x20
                      00007 
                      00008 
                      00009 
                      00010 ;*****************************
Warning[205]: Found directive in column 1. (org)
0000                  00011 org     0x0000
0000   2900           00012 start   goto  main
                      00013 ;******************************
                      00014 ;中断识别
Warning[205]: Found directive in column 1. (ORG)
0004                  00015 ORG     0x0004
                      00016 
                      00017 
0004   2007           00018         call    push
                      00019 
                      00020 
                      00021 
                      00022 
                      00023 
0005   2008           00024         call    pop
0006   0009           00025         retfie
                      00026 
                      00027 
0007   0000           00028 push   nop
                      00029 
                      00030 
0008   0000           00031 pop    nop
                      00032 ;******************************
                      00033 ;主程序
Warning[205]: Found directive in column 1. (org)
0100                  00034 org     0x0100
                      00035 
0100   1683           00036 main    bsf     STATUS,RP0
                      00037         
                      00038 ;************
                      00039 ;设定i2c工作模式
                      00040         
Message[302]: Register in operand not in bank 0.  Ensure that bank bits are correct.
0101   1587           00041         bsf     TRISC,3   ;设置scl为输入
Message[302]: Register in operand not in bank 0.  Ensure that bank bits are correct.
0102   1607           00042         bsf     TRISC,4   ;设置sda为输入
0103   300D           00043         movlw   0x0d
MPASM 03.30 Released                                 MAIN.ASM   5-9-2003  11:48:20         PAGE  2


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE

0104   0094           00044         movwf   SSPCON    ;I2C主控方式工作
0105   3002           00045         movlw   0x02
Message[302]: Register in operand not in bank 0.  Ensure that bank bits are correct.
0106   0093           00046         movwf   SSPADD     ;设置i2c时钟频率
0107   138B           00047         bcf     INTCON,GIE      ;关闭全中断
0108   118C           00048         bcf     PIR1,SSPIF   ;清i2c中断
0109   1694           00049         bsf     SSPCON,SSPEN       ;打开i2c工作
                      00050         
                      00051 
                      00052 ;******************
                      00053 ;启动键盘工作
                      00054        
Message[302]: Register in operand not in bank 0.  Ensure that bank bits are correct.
010A   1786           00055        bsf     TRISB,7     ;键盘入
Message[302]: Register in operand not in bank 0.  Ensure that bank bits are correct.
010B   1706           00056        bsf     TRISB,6
Message[302]: Register in operand not in bank 0.  Ensure that bank bits are correct.
010C   1686           00057        bsf     TRISB,5
Message[302]: Register in operand not in bank 0.  Ensure that bank bits are correct.
010D   1606           00058        bsf     TRISB,4
Message[302]: Register in operand not in bank 0.  Ensure that bank bits are correct.
010E   1186           00059        bcf     TRISB,3     ;电机驱动出
Message[302]: Register in operand not in bank 0.  Ensure that bank bits are correct.
010F   1106           00060        bcf     TRISB,2
Message[302]: Register in operand not in bank 0.  Ensure that bank bits are correct.
0110   1086           00061        bcf     TRISB,1
Message[302]: Register in operand not in bank 0.  Ensure that bank bits are correct.
0111   1406           00062        bsf     TRISB,0     ;遥控入
Message[302]: Register in operand not in bank 0.  Ensure that bank bits are correct.
0112   1781           00063        bsf     OPTION_REG,7    ;输入弱上拉
                      00064        
                      00065 
                      00066 
                      00067 
                      00068 
                      00069 
                      00070 
                      00071 
                      00072 
                      00073 
                      00074 
0113   3002           00075 i2c_out   movlw    0x02
0114   00A0           00076           movwf    i2cwead          ;i2c保存
0115   1683           00077           bsf      STATUS,RP0       ;使用ram 0页
                      00078          
                      00079 
                      00080 
                      00081 
                      00082 
                      00083 
                      00084 
                      00085 
                      00086 
MPASM 03.30 Released                                 MAIN.ASM   5-9-2003  11:48:20         PAGE  3


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE

                      00087 
                      00088        
Warning[205]: Found directive in column 1. (END)
                      00089 END
MPASM 03.30 Released                                 MAIN.ASM   5-9-2003  11:48:20         PAGE  4


SYMBOL TABLE
  LABEL                             VALUE 

ADCON0                            0000001F
ADCON1                            0000009F
ADCS0                             00000006
ADCS1                             00000007
ADIE                              00000006
ADIF                              00000006
ADON                              00000000
ADRES                             0000001E
BF                                00000000
BRGH                              00000002
C                                 00000000
CCP1CON                           00000017
CCP1IE                            00000002
CCP1IF                            00000002
CCP1M0                            00000000
CCP1M1                            00000001
CCP1M2                            00000002
CCP1M3                            00000003
CCP1X                             00000005
CCP1Y                             00000004
CCP2CON                           0000001D
CCP2IE                            00000000
CCP2IF                            00000000
CCP2M0                            00000000
CCP2M1                            00000001
CCP2M2                            00000002
CCP2M3                            00000003
CCP2X                             00000005
CCP2Y                             00000004
CCPR1H                            00000016
CCPR1L                            00000015
CCPR2H                            0000001C
CCPR2L                            0000001B
CHS0                              00000003
CHS1                              00000004
CHS2                              00000005
CKE                               00000006
CKP                               00000004
CREN                              00000004
CSRC                              00000007
D                                 00000005
DATA_ADDRESS                      00000005
DC                                00000001
D_A                               00000005
F                                 00000001
FERR                              00000002
FSR                               00000004
GIE                               00000007
GO                                00000002
GO_DONE                           00000002
I2C_DATA                          00000005
I2C_READ                          00000002

⌨️ 快捷键说明

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