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

📄 i2c_yj.lst

📁 PIC单片机I2C接口(硬件模块和软件模拟)PCF8583实例
💻 LST
📖 第 1 页 / 共 5 页
字号:


HI-TECH Software PICC-18 Macro Assembler V8.20PL4
Serial number: HCPIC18-33794                           Wed Jul  2 10:42:10 2008

Licensed to: DRAGON LONG
     1                           	processor	18F458
     2                           	opt	pw 80
     3                           	psect	__Z33794RS_,global,delta=1
     4                           	psect	text,global,reloc=2,class=CODE,delta=1
     5                           	psect	bss,global,class=RAM,space=1,delta=1
     6                           	psect	bigbss,global,class=BIGRAM,space=1,delta=
      +                          1
     7                           	psect	temp,global,ovrld,common,class=COMRAM,spa
      +                          ce=1,delta=1
     8                           	psect	intsave_regs,global,class=BIGRAM,space=1,
      +                          delta=1
     9  0000                     
    10  0000                     
    11  0000                     
    12  0000                     
    13  0000                     
    14  0000                     
    15  0000                     
    16  0000                     
    17  0000                     
    18  0000                     
    19  0000                     
    20  0000                     
    21  0000                     
    22  0000                     
    23  0000                     
    24  0000                     
    25  0000                     
    26  0000                     
    27  0000                     
    28  0000                     
    29  0000                     
    30  0000                     
    31  0000                     
    32  0000                     
    33  0000                     
    34  0000                     
    35  0000                     
    36  0000                     
    37  0000                     
    38  0000                     
    39  0000                     
    40  0000                     
    41  0000                     
    42  0000                     
    43  0000                     
    44  0000                     
    45  0000                     
    46  0000                     
    47  0000                     
    48  0000                     
    49  0000                     
    50  0000                     
    51  0000                     
    52  0000                     
    53  0000                     
    54  0000                     
    55  0000                     
    56  0000                     
    57  0000                     
    58  0000                     
    59  0000                     
    60  0000                     
    61  0000                     
    62  0000                     
    63  0000                     
    64  0000                     
    65  0000                     
    66  0000                     
    67  0000                     
    68  0000                     
    69  0000                     
    70  0000                     
    71  0000                     
    72  0000                     
    73  0000                     
    74  0000                     
    75  0000                     
    76  0000                     
    77  0000                     
    78  0000                     
    79  0000                     
    80  0000                     
    81  0000                     
    82  0000                     
    83  0000                     
    84  0000                     
    85  0000                     
    86  0000                     
    87  0000                     
    88  0000                     
    89  0000                     
    90  0000                     
    91  0000                     
    92  0000                     
    93  0000                     
    94  0000                     
    95  0000                     
    96  0000                     
    97  0000                     
    98                           
    99                           	psect	__Z33794RS_
   100  0004                     
   101  0000                     _delay_us$j	set	?_delay_us
   102  0004                     
   103                           
   104                           	psect	text
   105  0034  00F7               	dw	?_delay_us
   106                           ;	_dd assigned to ?a_main+23
   107  0000                     _main$dd	set	?a_main+23
   108                           ;	_timer assigned to ?a_main+11
   109  0000                     _main$timer	set	?a_main+11
   110                           ;	_aa assigned to ?a_main+2
   111  0000                     _main$aa	set	?a_main+2
   112                           ;	_hour assigned to ?a_main+0
   113  0000                     _main$hour	set	?a_main
   114                           ;       param _n assigned to ?_Read_8583+2
   115  0000                     _Read_8583$n	set	?_Read_8583+2
   116                           ;i2c_yj.c: 219: void Read_8583(unsigned char add
      +                          ress,unsigned char *str,unsigned char n)
   117                           ;i2c_yj.c: 220: {
   118                           ;       param _str assigned to ?_Read_8583+0
   119  0000                     _Read_8583$str	set	?_Read_8583
   120                           ;       param _n assigned to ?_Initial_8583+2
   121  0000                     _Initial_8583$n	set	?_Initial_8583+2
   122                           ;i2c_yj.c: 190: void Initial_8583(unsigned char 
      +                          address,unsigned char *str,unsigned char n)
   123                           ;i2c_yj.c: 191: {
   124                           ;       param _str assigned to ?_Initial_8583+0
   125  0000                     _Initial_8583$str	set	?_Initial_8583
   126                           ;	_str1 assigned to ?a_itoa+1
   127  0000                     _itoa$str1	set	?a_itoa+1
   128                           ;	_j assigned to ?a_itoa+0
   129  0000                     _itoa$j	set	?a_itoa
   130                           ;i2c_yj.c: 115: void itoa(int x)
   131                           ;i2c_yj.c: 116: {
   132                           ;       param _x assigned to ?_itoa+0
   133  0000                     _itoa$x	set	?_itoa
   134                           ;	_xline assigned to ?a_dis_str+0
   135  0000                     _dis_str$xline	set	?a_dis_str
   136                           ;       param _number assigned to ?_dis_str+3
   137  0000                     _dis_str$number	set	?_dis_str+3
   138                           ;       param _str assigned to ?_dis_str+1
   139  0000                     _dis_str$str	set	?_dis_str+1
   140  0036                     _delay_us:
   141  0036  FFFF               	dw	65535
   142  0038                     f14402:
   143  0000                     
   144                           ;i2c_yj.c: 25: unsigned int ch;
   145  0038                     l2:
   146                           ;i2c_yj.c: 29: }
   147  0038  0100               	movlb	__Lparam shr (0+8)
   148  003A  51F7               	movf	?_delay_us^(__Lparam& (0+65280)),w
   149  003C  6E00               	movwf	btemp
   150  003E  51F8               	movf	(?_delay_us+1)^(__Lparam& (0+65280)),w
   151  0040  6E01               	movwf	btemp+1
   152  0042  07F7               	decf	?_delay_us^(__Lparam& (0+65280)),f
   153  0044  0E00               	movlw	0
   154  0046  5BF8               	subwfb	(?_delay_us+1)^(__Lparam& (0+65280)),f
   155  0048  5001               	movf	btemp+1,w
   156  004A  1000               	iorwf	btemp,w
   157  004C  B4D8               	btfsc	status,2,c
   158  004E  D007               	goto	u10
   159                           ;i2c_yj.c: 27: {
   160  0050  2AF3               	incf	prodl,f,c
   161  0052  0E00               	movlw	0
   162  0054  22F4               	addwfc	prodh,f,c
   163  0056  06F3               	decf	prodl,f,c
   164  0058  A0D8               	btfss	status,0,c
   165  005A  06F4               	decf	prodh,f,c
   166  005C  D7ED               	goto	l2
   167  005E                     u10:
   168                           ;i2c_yj.c: 30: }
   169  005E  0012               	return	
   170  0060  FFFF               	dw	65535
   171  0062  D7EA               	goto	f14402
   172                           ;i2c_yj.c: 32: void bit8_serial_input(unsigned c
      +                          har ix)
   173                           ;i2c_yj.c: 33: {
   174  0064                     _bit8_serial_input:
   175  0064  FFFF               	dw	65535
   176  0066                     f14412:
   177  0000                     
   178                           ; _ix loaded to prodh
   179  0066  6EF4               	movwf	prodh,c
   180                           ;i2c_yj.c: 34: unsigned char i,j,nc,ab;
   181  0068  0E80               	movlw	128
   182  006A  6EE1               	movwf	fsr1l,c
   183                           ;i2c_yj.c: 36: RD6=0;
   184  006C  9C83               	bcf	3971,6,c	;volatile
   185                           ;i2c_yj.c: 37: RD5=0;
   186  006E  9A83               	bcf	3971,5,c	;volatile
   187                           ;i2c_yj.c: 38: for(i=0;i<8;i++)
   188  0070  6AD9               	clrf	fsr2l,c
   189  0072                     l6:
   190                           ;i2c_yj.c: 39: {
   191                           ;i2c_yj.c: 40: if(ix&ab)RD6=1;
   192  0072  50E1               	movf	fsr1l,w,c
   193  0074  14F4               	andwf	prodh,w,c
   194  0076  B4D8               	btfsc	status,2,c
   195  0078  D002               	goto	l9
   196  007A  8C83               	bsf	3971,6,c	;volatile
   197                           ;i2c_yj.c: 41: else RD6=0;
   198  007C  D001               	goto	l10
   199  007E                     l9:
   200  007E  9C83               	bcf	3971,6,c	;volatile
   201  0080                     l10:
   202                           ;i2c_yj.c: 42: ab>>=1;
   203  0080  90D8               	bcf	status,0,c
   204  0082  32E1               	rrcf	fsr1l,f,c
   205                           ;i2c_yj.c: 43: RD5=1;
   206  0084  8A83               	bsf	3971,5,c	;volatile
   207                           ;i2c_yj.c: 44: for(j=0;j<44;j++) nc=0;
   208  0086  6AE9               	clrf	fsr0l,c
   209  0088                     l11:
   210  0088  6AF3               	clrf	prodl,c
   211  008A  2AE9               	incf	fsr0l,f,c
   212  008C  0E2B               	movlw	43
   213  008E  64E9               	cpfsgt	fsr0l,c
   214  0090  D7FB               	goto	l11
   215                           ;i2c_yj.c: 45: RD5=0;
   216  0092  9A83               	bcf	3971,5,c	;volatile
   217                           ;i2c_yj.c: 46: RD6=0;
   218  0094  9C83               	bcf	3971,6,c	;volatile
   219                           ;i2c_yj.c: 47: for(j=0;j<4;j++) nc=0;
   220  0096  6AE9               	clrf	fsr0l,c
   221  0098                     l14:
   222  0098  6AF3               	clrf	prodl,c
   223  009A  2AE9               	incf	fsr0l,f,c
   224  009C  0E03               	movlw	3
   225  009E  64E9               	cpfsgt	fsr0l,c
   226  00A0  D7FB               	goto	l14
   227                           ;i2c_yj.c: 48: }

⌨️ 快捷键说明

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