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

📄 send.lst

📁 PIC16F873模拟的SPI发送程序
💻 LST
字号:


HI-TECH Software PICC Macro Assembler V8.05PL1
Serial number: HCPIC-88888                            Tue Jan  8 15:28:41 2008

Licensed to: ONE TWO
     1                           	processor	16F877
     2                           	opt	pw 79
     3                           	psect	__Z88888RS_,global,delta=1
     4                           	psect	text1,local,class=CODE,delta=2
     5                           	psect	text2,local,class=CODE,delta=2
     6                           	psect	intcode,global,class=CODE,delta=2
     7                           	psect	intsave_0,global,ovrld,class=COMBANK,spa
      +                          ce=1,delta=1
     8                           	psect	intret,global,class=CODE,delta=2
     9                           	psect	intentry,global,class=CODE,delta=2
    10                           	psect	intsave,global,class=BANK0,space=1,delta
      +                          =1
    11  0000                     
    12  0000                     
    13  0000                     
    14  0000                     
    15  0000                     
    16  0000                     
    17  0000                     
    18  0000                     
    19  0000                     
    20  0000                     
    21                           
    22                           	psect	__Z88888RS_
    23  0190                     
    24  0190                     
    25                           
    26                           	psect	text1
    27                           ;send.c: 24: void spiinit()
    28                           ;send.c: 25: {
    29  07E2                     _spiinit
    30                           ;send.c: 26: RP0=1;
    31  07E2  1683               	bsf	3,5
    32                           ;send.c: 27: TRISC=0x18;
    33  07E3  3018               	movlw	24
    34  07E4  1683               	bsf	3,5
    35  07E5  1303               	bcf	3,6	;carry unused
    36  07E6  0087               	movwf	7	;volatile
    37                           ;send.c: 28: SSPSTAT=0X00;
    38  07E7  0194               	clrf	20	;volatile
    39                           ;send.c: 29: TRISD=0X00;
    40  07E8  0188               	clrf	8	;volatile
    41                           ;send.c: 30: TRISE=0X00;
    42  07E9  0189               	clrf	9	;volatile
    43                           ;send.c: 31: ADCON1=0X06;
    44  07EA  3006               	movlw	6
    45  07EB  009F               	movwf	31	;volatile
    46                           ;send.c: 32: TRISA=0XF0;
    47  07EC  30F0               	movlw	-16
    48  07ED  0085               	movwf	5	;volatile
    49                           ;send.c: 33: SSPIE=1;
    50  07EE  158C               	bsf	12,3
    51                           ;send.c: 35: RP1=0;
    52                           ;send.c: 36: SSPCON=0X34;
    53  07EF  3034               	movlw	52
    54  07F0  1283               	bcf	3,5
    55  07F1  0094               	movwf	20	;volatile
    56                           ;send.c: 37: PORTD=0X00;
    57  07F2  0188               	clrf	8	;volatile
    58                           ;send.c: 38: SSPIF=0;
    59  07F3  118C               	bcf	12,3
    60                           ;send.c: 39: }
    61  07F4  0008               	return
    62  07F5                     _main
    63                           ;send.c: 9: if(RA5==0)
    64  07F5  1283               	bcf	3,5
    65  07F6  1303               	bcf	3,6	;carry unused
    66  07F7  1A85               	btfsc	5,5
    67  07F8  2FFD               	goto	l1
    68                           ;send.c: 10: {
    69  07F9  27E2               	fcall	_spiinit
    70                           ;send.c: 12: GIE=1;
    71  07FA  178B               	bsf	11,7
    72                           ;send.c: 13: PEIE=1;
    73  07FB  170B               	bsf	11,6
    74                           ;send.c: 14: while(1)
    75  07FC                     l3
    76                           ;send.c: 15: {
    77  07FC  2FFC               	goto	l3
    78                           ;send.c: 19: }
    79  07FD                     l1
    80  07FD  120A  118A  2811   	ljmp	start
    81                           
    82                           	psect	intcode
    83                           ;send.c: 49: void interrupt spi()
    84                           ;send.c: 50: {
    85  0008                     _spi
    86  0008                     int_func
    87                           ;send.c: 51: SSPIF=0;
    88  0008  0183               	clrf	3	;select bank 0
    89  0009  118C               	bcf	12,3
    90                           ;send.c: 52: PORTD=SSPBUF;
    91  000A  0813               	movf	19,w	;volatile
    92  000B  0088               	movwf	8	;volatile
    93                           
    94                           	psect	intsave_0
    95  0070                     saved_w
    96  0070                     	ds	1
    97                           
    98                           	psect	intret
    99  000C                     int_restore
   100  000C  0820               	movf	saved_status,w
   101  000D  0083               	movwf	3
   102  000E  0EF0               	swapf	saved_w
   103  000F  0E70               	swapf	saved_w,w
   104  0010  0009               	retfie
   105                           
   106                           	psect	intentry
   107  0004                     int_entry
   108  0004  00F0               	movwf	saved_w
   109  0005  0803               	movf	3,w
   110  0006  0183               	clrf	3
   111  0007  00A0               	movwf	saved_status
   112  0000                     
   113  0000                     
   114  0000                     
   115  0000                     
   116  0000                     
   117  0000                     
   118  0000                     
   119  0000                     
   120  0000                     
   121  0000                     
   122  0000                     
   123  0000                     
   124  0000                     
   125  0000                     
   126  0000                     
   127  0000                     
   128  0000                     
   129  0000                     
   130  0000                     
   131  0000                     
   132  0000                     
   133  0000                     
   134  0000                     
   135  0000                     
   136  0000                     
   137  0000                     
   138  0000                     
   139  0000                     
   140  0000                     
   141  0000                     
   142  0000                     
   143  0000                     
   144  0000                     
   145  0000                     
   146  0000                     
   147  0000                     
   148  0000                     
   149  0000                     
   150  0000                     
   151  0000                     
   152  0000                     
   153  0000                     
   154  0000                     
   155  0000                     
   156  0000                     
   157  0000                     
   158  0000                     
   159  0000                     
   160  0000                     
   161  0000                     
   162  0000                     
   163  0000                     
   164  0000                     
   165  0000                     
   166  0000                     
   167  0000                     
   168  0000                     
   169  0000                     
   170  0000                     
   171  0000                     
   172  0000                     
   173  0000                     
   174  0000                     
   175  0000                     
   176  0000                     
   177  0000                     
   178  0000                     
   179  0000                     
   180  0000                     
   181  0000                     
   182  0000                     
   183  0000                     
   184  0000                     
   185  0000                     
   186  0000                     
   187  0000                     
   188  0000                     
   189  0000                     
   190  0000                     
   191  0000                     
   192  0000                     
   193  0000                     
   194  0000                     
   195  0000                     
   196  0000                     
   197  0000                     
   198  0000                     
   199  0000                     
   200  0000                     
   201  0000                     
   202  0000                     
   203  0000                     
   204  0000                     
   205  0000                     
   206  0000                     
   207  0000                     
   208  0000                     
   209  0000                     
   210  0000                     
   211  0000                     
   212  0000                     
   213  0000                     
   214  0000                     
   215  0000                     
   216  0000                     
   217  0000                     
   218  0000                     
   219  0000                     
   220  0000                     
   221  0000                     
   222  0000                     
   223  0000                     
   224  0000                     
   225  0000                     
   226  0000                     
   227  0000                     
   228  0000                     
   229  0000                     
   230  0000                     
   231  0000                     
   232  0000                     
   233  0000                     
   234  0000                     
   235  0000                     
   236  0000                     
   237  0000                     
   238  0000                     
   239  0000                     
   240  0000                     
   241  0000                     
   242  0000                     
   243  0000                     
   244  0000                     
   245  0000                     
   246  0000                     
   247  0000                     
   248  0000                     
   249  0000                     
   250  0000                     
   251  0000                     
   252  0000                     
   253  0000                     
   254  0000                     
   255  0000                     
   256  0000                     
   257  0000                     
   258  0000                     
   259  0000                     
   260  0000                     
   261  0000                     
   262  0000                     
   263  0000                     
   264  0000                     
   265  0000                     
   266  0000                     
   267  0000                     
   268  0000                     
   269  0000                     
   270  0000                     
   271  0000                     
   272  0000                     
   273  0000                     
   274  0000                     
   275  0000                     
   276  0000                     
   277  0000                     
   278  0000                     
   279  0000                     
   280  0000                     
   281  0000                     
   282  0000                     
   283  0000                     
   284  0000                     
   285  0000                     
   286  0000                     
   287  0000                     
   288  0000                     
   289  0000                     
   290  0000                     
   291  0000                     
   292  0000                     
   293  0000                     
   294  0000                     
   295  0000                     
   296  0000                     
   297  0000                     
   298  0000                     
   299  0000                     
   300  0000                     
   301  0000                     
   302  0000                     
   303  0000                     
   304  0000                     
   305  0000                     
   306  0000                     
   307  0000                     
   308  0000                     
   309  0000                     
   310  0000                     
   311  0000                     
   312  0000                     
   313  0000                     
   314  0000                     
   315  0000                     
   316  0000                     
   317  0000                     
   318  0000                     
   319  0000                     
   320  0000                     
   321  0000                     
   322  0000                     
   323  0000                     
   324  0000                     
   325  0000                     
   326  0000                     
   327  0000                     
   328  0000                     
   329  0000                     
   330  0000                     
   331  0000                     
   332  0000                     
   333  0000                     
   334  0000                     
   335  0000                     
   336  0000                     
   337  0000                     
   338  0000                     
   339  0000                     
   340  0000                     
   341  0000                     
   342  0000                     
   343  0000                     
   344  0000                     
   345  0000                     
   346  0000                     
   347  0000                     
   348  0000                     
   349  0000                     
   350  0000                     
   351  0000                     
   352  0000                     
   353  0000                     
   354  0000                     
   355  0000                     
   356  0000                     
   357  0000                     
   358  0000                     
   359  0000                     
   360  0000                     
   361  0000                     
   362  0000                     
   363  0000                     
   364  0000                     
   365  0000                     
   366  0000                     
   367  0000                     
   368                           
   369                           	psect	intsave
   370  0020                     saved_status
   371  0020                     	ds	1


HI-TECH Software PICC Macro Assembler V8.05PL1
Symbol Table                                          Tue Jan  8 15:28:41 2008

          l1 07FD            l3 07FC          _spi 0008         _main 07F5  
       start 0011       saved_w 0070     int_entry 0004      _spiinit 07E2  
saved_status 0020        status 0003      int_func 0008   int_restore 000C  

⌨️ 快捷键说明

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