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

📄 fasong.lst

📁 pic16f877a下与nRF905的通讯程序
💻 LST
📖 第 1 页 / 共 3 页
字号:
   239  0011' 1486               	bsf	6,1
   240                           ;fasong.c: 111: RC2=0;
   241  0012' 1107               	bcf	7,2
   242                           ;fasong.c: 112: RC1=0;
   243  0013' 1087               	bcf	7,1
   244                           ;fasong.c: 113: }
   245  0014' 0008               	return	;W free
   246                           
   247                           	psect	text4
   248  0000'                    _Config905
   249                           ;	_i assigned to ?a_Config905+0
   250  0000                     _Config905$i	set	?a_Config905
   251                           ;fasong.c: 115: void Config905(void)
   252  0000' 0183               	clrf	3	;select bank 0
   253  0001' 1007               	bcf	7,0
   254                           ;fasong.c: 119: Delay(1);
   255  0002' 3001               	movlw	1
   256  0003' 2000'              	call	_Delay
   257                           ;fasong.c: 121: for (i=0;i<11;i++)
   258  0004' 0180'              	clrf	?a_Config905
   259  0005'                    l15
   260                           ;fasong.c: 122: {
   261  0005' 0800'              	movf	?a_Config905,w
   262  0006' 3E00'              	addlw	_RFConf
   263  0007' 0084               	movwf	4
   264  0008' 1383               	bcf	3,7
   265  0009' 0800               	movf	0,w
   266  000A' 2000'              	call	_SpiReadSpiWrite
   267  000B' 0A80'              	incf	?a_Config905
   268  000C' 300B               	movlw	11
   269  000D' 0200'              	subwf	?a_Config905,w
   270  000E' 1C03               	btfss	3,0
   271  000F' 2800'              	goto	l15
   272                           ;fasong.c: 124: }
   273  0010' 1407               	bsf	7,0
   274                           ;fasong.c: 126: }
   275  0011' 0008               	return	;W free
   276                           
   277                           	psect	text5
   278  0000'                    _TxPacket
   279                           ;	_i assigned to ?a_TxPacket+0
   280  0000                     _TxPacket$i	set	?a_TxPacket
   281                           ;fasong.c: 128: void TxPacket(void)
   282  0000' 0183               	clrf	3	;select bank 0
   283  0001' 1007               	bcf	7,0
   284                           ;fasong.c: 132: Delay(1);
   285  0002' 3001               	movlw	1
   286  0003' 2000'              	call	_Delay
   287                           ;fasong.c: 133: SpiReadSpiWrite(0x20);
   288  0004' 3020               	movlw	32
   289  0005' 2000'              	call	_SpiReadSpiWrite
   290                           ;fasong.c: 134: for (i=0;i<32;i++)
   291  0006' 0180'              	clrf	?a_TxPacket
   292  0007'                    l19
   293                           ;fasong.c: 135: {
   294  0007' 0800'              	movf	?a_TxPacket,w
   295  0008' 3E00'              	addlw	_TxRxBuf
   296  0009' 0084               	movwf	4
   297  000A' 1383               	bcf	3,7
   298  000B' 0800               	movf	0,w
   299  000C' 2000'              	call	_SpiReadSpiWrite
   300  000D' 0A80'              	incf	?a_TxPacket
   301  000E' 3020               	movlw	32
   302  000F' 0200'              	subwf	?a_TxPacket,w
   303  0010' 1C03               	btfss	3,0
   304  0011' 2800'              	goto	l19
   305                           ;fasong.c: 137: }
   306  0012' 1407               	bsf	7,0
   307                           ;fasong.c: 139: Delay(1);
   308  0013' 3001               	movlw	1
   309  0014' 2000'              	call	_Delay
   310                           ;fasong.c: 140: RC0=0;
   311  0015' 1007               	bcf	7,0
   312                           ;fasong.c: 141: SpiReadSpiWrite(0x22);
   313  0016' 3022               	movlw	34
   314  0017' 2000'              	call	_SpiReadSpiWrite
   315                           ;fasong.c: 142: for (i=0;i<4;i++)
   316  0018' 0180'              	clrf	?a_TxPacket
   317  0019'                    l22
   318                           ;fasong.c: 143: {
   319  0019' 0800'              	movf	?a_TxPacket,w
   320  001A' 3E00'              	addlw	_TxAddress
   321  001B' 0084               	movwf	4
   322  001C' 1383               	bcf	3,7
   323  001D' 0800               	movf	0,w
   324  001E' 2000'              	call	_SpiReadSpiWrite
   325  001F' 0A80'              	incf	?a_TxPacket
   326  0020' 3004               	movlw	4
   327  0021' 0200'              	subwf	?a_TxPacket,w
   328  0022' 1C03               	btfss	3,0
   329  0023' 2800'              	goto	l22
   330                           ;fasong.c: 145: }
   331  0024' 1407               	bsf	7,0
   332                           ;fasong.c: 147: RC2=1;
   333  0025' 1507               	bsf	7,2
   334                           ;fasong.c: 148: Delay(1);
   335  0026' 3001               	movlw	1
   336  0027' 2000'              	call	_Delay
   337                           ;fasong.c: 149: RC2=0;
   338  0028' 1107               	bcf	7,2
   339                           ;fasong.c: 150: }
   340  0029' 0008               	return	;W free
   341                           
   342                           	psect	text6
   343  0000'                    _SetTxMode
   344                           ;fasong.c: 152: void SetTxMode(void)
   345  0000' 0183               	clrf	3	;select bank 0
   346  0001' 1107               	bcf	7,2
   347                           ;fasong.c: 155: RC1=1;
   348  0002' 1487               	bsf	7,1
   349                           ;fasong.c: 156: Delay(1);
   350  0003' 3001               	movlw	1
   351  0004' 2800'              	goto	_Delay
   352                           
   353                           	psect	text7
   354  0000'                    _TX
   355                           ;fasong.c: 159: void TX(void)
   356  0000' 2000'              	call	_SetTxMode
   357                           ;fasong.c: 162: TxPacket();
   358  0001' 2800'              	goto	_TxPacket
   359                           
   360                           	psect	text8
   361  0000'                    _StartUART
   362                           ;fasong.c: 165: void StartUART(void)
   363  0000' 3004               	movlw	4
   364  0001' 1683               	bsf	3,5
   365  0002' 1303               	bcf	3,6	;carry unused
   366  0003' 0098               	movwf	24	;volatile
   367                           ;fasong.c: 168: SPBRG=51;
   368  0004' 3033               	movlw	51
   369  0005' 0099               	movwf	25	;volatile
   370                           ;fasong.c: 169: PIE1=0;
   371  0006' 018C               	clrf	12	;volatile
   372                           ;fasong.c: 170: RCSTA=0x80;
   373  0007' 3080               	movlw	-128
   374  0008' 1283               	bcf	3,5
   375  0009' 0098               	movwf	24	;volatile
   376                           ;fasong.c: 171: TRISC=TRISC|0X80;
   377  000A' 1683               	bsf	3,5
   378  000B' 1787               	bsf	7,7	;volatile
   379                           ;fasong.c: 172: TRISC=TRISC&0XBF;
   380  000C' 1307               	bcf	7,6	;volatile
   381                           ;fasong.c: 173: TXEN=1;
   382  000D' 1698               	bsf	24,5
   383                           ;fasong.c: 174: }
   384  000E' 1283               	bcf	3,5
   385  000F' 0008               	return	;W free
   386                           
   387                           	psect	text9
   388  0000'                    _R_S_Byte
   389                           ;	_R_Byte assigned to ?a_R_S_Byte+0
   390  0000                     _R_S_Byte$R_Byte	set	?a_R_S_Byte
   391                           ;_R_Byte stored from w
   392  0000' 0183               	clrf	3	;select bank 0
   393  0001' 0080'              	movwf	?a_R_S_Byte
   394                           ;fasong.c: 176: void R_S_Byte(unsigned char R_B
      +                          yte)
   395  0002' 0099               	movwf	25	;volatile
   396                           ;fasong.c: 179: }
   397  0003' 0008               	return	;W free
   398                           
   399                           	psect	text10
   400  0000'                    _main
   401                           ;fasong.c: 181: main()
   402  0000' 30FF               	movlw	-1
   403  0001' 1283               	bcf	3,5
   404  0002' 1303               	bcf	3,6	;carry unused
   405  0003' 0089               	movwf	9	;volatile
   406                           ;fasong.c: 185: PORTD=0xbf;
   407  0004' 30BF               	movlw	-65
   408  0005' 0088               	movwf	8	;volatile
   409                           ;fasong.c: 186: StartUART();
   410  0006' 2000'              	call	_StartUART
   411                           ;fasong.c: 187: system_Init();
   412  0007' 2000'              	call	_system_Init
   413                           ;fasong.c: 188: Config905();
   414  0008' 2000'              	call	_Config905
   415                           ;fasong.c: 189: RB7=0; RB6=0; RB5=0; RB4=0;
   416  0009' 1386               	bcf	6,7
   417  000A' 1306               	bcf	6,6
   418  000B' 1286               	bcf	6,5
   419  000C' 1206               	bcf	6,4
   420                           ;fasong.c: 190: TX();
   421                           ;fasong.c: 159: void TX(void)
   422  000D' 2000'              	call	_SetTxMode
   423                           ;fasong.c: 162: TxPacket();
   424  000E' 2000'              	call	_TxPacket
   425                           ;fasong.c: 191: }
   426  000F' 0183               	clrf	3
   427  0010' 2800'              	ljmp	start
   428                           
   429                           	psect	text11
   430  0000                     
   431  0000                     
   432  0000                     
   433  0000                     
   434  0000                     
   435  0000                     
   436  0000                     
   437  0000                     
   438  0000                     
   439  0000                     
   440  0000                     
   441  0000                     
   442  0000                     
   443  0000                     
   444  0000                     
   445  0000                     
   446  0000                     
   447  0000                     
   448  0000                     
   449  0000                     
   450  0000                     
   451  0000                     
   452  0000                     
   453  0000                     
   454  0000                     
   455  0000                     
   456  0000                     
   457  0000                     
   458  0000                     
   459  0000                     
   460  0000                     
   461  0000                     
   462  0000                     
   463  0000                     
   464  0000                     
   465  0000                     
   466  0000                     
   467  0000                     
   468  0000                     
   469  0000                     
   470  0000                     
   471  0000                     
   472  0000                     
   473  0000                     
   474  0000                     
   475  0000                     
   476  0000                     
   477  0000                     
   478  0000                     
   479  0000                     
   480  0000                     
   481  0000                     
   482  0000                     
   483  0000                     

⌨️ 快捷键说明

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