c8051f310xmodembootloader.rar

源代码在线查看: global.src

软件大小: 1397 K
上传用户: hz5305259
关键词: xmodembootloader 8051 310
下载地址: 免注册下载 普通下载 VIP

相关代码

				; .\global.SRC generated from: global.c
				; COMPILER INVOKED BY:
				;        C:\Keil\C51\BIN\C51.EXE global.c LARGE BROWSE DEBUG OBJECTEXTEND SRC(.\global.SRC)
				
				$NOMOD51
				
				NAME	GLOBAL
				
				CCF2	BIT	0D8H.2
				TB80	BIT	098H.3
				SPI0CKR	DATA	0A2H
				CCF3	BIT	0D8H.3
				P0	DATA	080H
				SPIEN	BIT	0F8H.0
				CCF4	BIT	0D8H.4
				P1	DATA	090H
				P2	DATA	0A0H
				ADC0CF	DATA	0BCH
				P3	DATA	0B0H
				AC	BIT	0D0H.6
				PCA0	DATA	0F9H
				EIE1	DATA	0E6H
				EA	BIT	0A8H.7
				MCE0	BIT	098H.5
				PSCTL	DATA	08FH
				CF	BIT	0D8H.7
				IT01CF	DATA	0E4H
				ADC0CN	DATA	0E8H
				D0IN	BIT	090H.4
				P0MDOUT	DATA	0A4H
				DI	BIT	0A0H.4
				D1IN	BIT	090H.5
				P1MDOUT	DATA	0A5H
				TMR2RLH	DATA	0CBH
				IE	DATA	0A8H
				P2MDOUT	DATA	0A6H
				P3MDOUT	DATA	0A7H
				TMR3RLH	DATA	093H
				EIP1	DATA	0F6H
				TRIG_OUT	BIT	0B0H.4
				W_FLG	BIT	0A0H.3
				TXBMT	BIT	0F8H.1
				PCA0CPH0	DATA	0FCH
				TMR2RLL	DATA	0CAH
				PCA0CPH1	DATA	0EAH
				TMR3RLL	DATA	092H
				DP	DATA	082H
				PCA0CPH2	DATA	0ECH
				ADC0GT	DATA	0C3H
				CR	BIT	0D8H.6
				TF2H	BIT	0C8H.7
				T2SPLIT	BIT	0C8H.3
				PCA0CPH3	DATA	0EEH
				REN0	BIT	098H.4
				PCA0CPH4	DATA	0FEH
				PCA0CPL0	DATA	0FBH
				RE	BIT	0A0H.5
				PCA0CPL1	DATA	0E9H
				PCA0CPM0	DATA	0DAH
				PCA0MD	DATA	0D9H
				PCA0CN	DATA	0D8H
				PCA0CPL2	DATA	0EBH
				PCA0CPM1	DATA	0DBH
				TF2L	BIT	0C8H.6
				PCA0CPL3	DATA	0EDH
				PCA0CPM2	DATA	0DCH
				IP	DATA	0B8H
				ADC0LT	DATA	0C5H
				X_SCK	BIT	080H.0
				ARBLOST	BIT	0C0H.2
				PCA0CPL4	DATA	0FDH
				PCA0CPM3	DATA	0DDH
				PCA0CPM4	DATA	0DEH
				INT0	BIT	080H.7
				TXBSY	BIT	0F8H.3
				CY	BIT	0D0H.7
				SI	BIT	0C0H.0
				LEDG	BIT	080H.3
				XBR0	DATA	0E1H
				SMB0CF	DATA	0C1H
				XBR1	DATA	0E2H
				EMI0CN	DATA	0AAH
				BELL	BIT	0A0H.7
				REF0CN	DATA	0D1H
				AD0INT	BIT	0E8H.5
				SP	DATA	081H
				OV	BIT	0D0H.2
				SMB0CN	DATA	0C0H
				TMR2	DATA	0CCH
				TMR3	DATA	094H
				MODF	BIT	0F8H.5
				LEDR	BIT	080H.2
				RX	BIT	080H.5
				S0MODE	BIT	098H.7
				VDM0CN	DATA	0FFH
				P0MDIN	DATA	0F1H
				CPT0MD	DATA	09DH
				CPT0CN	DATA	09BH
				P1MDIN	DATA	0F2H
				CPT1MD	DATA	09CH
				CPT1CN	DATA	09AH
				TX	BIT	080H.4
				P2MDIN	DATA	0F3H
				TF2LEN	BIT	0C8H.5
				P3MDIN	DATA	0F4H
				TRIG_IN	BIT	0B0H.3
				SPI0CN	DATA	0F8H
				W_RST	BIT	0A0H.6
				PCON	DATA	087H
				SPIF	BIT	0F8H.7
				nsel	BIT	090H.0
				TMOD	DATA	089H
				TCON	DATA	088H
				WCOL	BIT	0F8H.6
				TRIG	BIT	0A0H.1
				TMR2CN	DATA	0C8H
				P0SKIP	DATA	0D4H
				TMR3CN	DATA	091H
				nres	BIT	080H.7
				T2XCLK	BIT	0C8H.0
				P1SKIP	DATA	0D5H
				P2SKIP	DATA	0D6H
				IE0	BIT	088H.1
				CPT0MX	DATA	09FH
				IE1	BIT	088H.3
				OSCICL	DATA	0B3H
				CPT1MX	DATA	09EH
				CLKSEL	DATA	0A9H
				sdi	BIT	080H.6
				B	DATA	0F0H
				ADC0H	DATA	0BEH
				OSCICN	DATA	0B2H
				sck	BIT	080H.0
				TMR2RL	DATA	0CAH
				ADC0L	DATA	0BDH
				TMR3RL	DATA	092H
				sdo	BIT	080H.1
				ACC	DATA	0E0H
				ES0	BIT	0A8H.4
				PCA0CP0	DATA	0FBH
				AD0EN	BIT	0E8H.7
				ET0	BIT	0A8H.1
				PCA0CP1	DATA	0E9H
				ET1	BIT	0A8H.3
				TF0	BIT	088H.5
				PCA0CP2	DATA	0EBH
				D0W	BIT	090H.2
				ET2	BIT	0A8H.5
				RI0	BIT	098H.0
				TF1	BIT	088H.7
				PCA0CP3	DATA	0EDH
				D1W	BIT	090H.3
				TH0	DATA	08CH
				PCA0CP4	DATA	0FDH
				EX0	BIT	0A8H.0
				TI0	BIT	098H.1
				IT0	BIT	088H.0
				PCA0H	DATA	0FAH
				TH1	DATA	08DH
				X_CS	BIT	090H.1
				MASTER	BIT	0C0H.7
				EX1	BIT	0A8H.2
				IT1	BIT	088H.2
				P	BIT	0D0H.0
				ACK	BIT	0C0H.1
				OSCXCN	DATA	0B1H
				TL0	DATA	08AH
				PCA0L	DATA	0F9H
				TL1	DATA	08BH
				TXMODE	BIT	0C0H.6
				PS0	BIT	0B8H.4
				WIE_CK	BIT	0A0H.0
				X_SI	BIT	080H.6
				PT0	BIT	0B8H.1
				RS0	BIT	0D0H.3
				PT1	BIT	0B8H.3
				RS1	BIT	0D0H.4
				PT2	BIT	0B8H.5
				TR0	BIT	088H.4
				AD0TM	BIT	0E8H.6
				TR1	BIT	088H.6
				RELAY_OUT	BIT	0B0H.2
				TR2	BIT	0C8H.2
				PX0	BIT	0B8H.0
				PX1	BIT	0B8H.2
				X_SO	BIT	080H.1
				SLVSEL	BIT	0F8H.2
				DPH	DATA	083H
				ADC0GTH	DATA	0C4H
				DPL	DATA	082H
				ADC0GTL	DATA	0C3H
				SBUF0	DATA	099H
				ADC0LTH	DATA	0C6H
				RSTSRC	DATA	0EFH
				FLACL	DATA	0B5H
				SCON0	DATA	098H
				AMX0N	DATA	0BAH
				ADC0LTL	DATA	0C5H
				AMX0P	DATA	0BBH
				STA	BIT	0C0H.5
				D0OUT	BIT	090H.6
				SMB0DAT	DATA	0C2H
				D1OUT	BIT	090H.7
				TMR2H	DATA	0CDH
				SPI0CFG	DATA	0A1H
				TMR3H	DATA	095H
				CKCON	DATA	08EH
				IN_OUT	BIT	0A0H.2
				RXOVRN	BIT	0F8H.4
				TMR2L	DATA	0CCH
				ACKRQ	BIT	0C0H.3
				TMR3L	DATA	094H
				F0	BIT	0D0H.5
				FLSCL	DATA	0B6H
				RELAY_IN	BIT	0B0H.1
				AD0CM0	BIT	0E8H.0
				F1	BIT	0D0H.1
				STO	BIT	0C0H.4
				AD0CM1	BIT	0E8H.1
				SPI0DAT	DATA	0A3H
				ADC0	DATA	0BDH
				AD0CM2	BIT	0E8H.2
				AD0WINT	BIT	0E8H.3
				AD0BUSY	BIT	0E8H.4
				PSW	DATA	0D0H
				CCF0	BIT	0D8H.0
				RB80	BIT	098H.2
				FLKEY	DATA	0B7H
				CCF1	BIT	0D8H.1
				?C_INITSEG           SEGMENT CODE 
				?CO?GLOBAL           SEGMENT CODE 
				?XD?GLOBAL           SEGMENT XDATA 
				?BI?GLOBAL           SEGMENT BIT 
				?ID?GLOBAL           SEGMENT IDATA 
					PUBLIC	RELAY_TRIG_STATE
					PUBLIC	RELAY_TIME_OUT
					PUBLIC	wie_cout
					PUBLIC	MyID
					PUBLIC	Search_CT
					PUBLIC	event_word
					PUBLIC	power
					PUBLIC	TagID
					PUBLIC	event_relay
					PUBLIC	wiebuf_cout
					PUBLIC	wie_8bit
					PUBLIC	tagnr
					PUBLIC	TRIG_STATE
					PUBLIC	INACTIVITY_TIME
					PUBLIC	wiefmt
					PUBLIC	txdata
					PUBLIC	rxdata
					PUBLIC	RELAY_TIME_IN
					PUBLIC	wiebuf
					PUBLIC	wie_str
					PUBLIC	combuf
					PUBLIC	relay_time
					PUBLIC	SiHead
					PUBLIC	cardouttime
					PUBLIC	wie
					PUBLIC	pow
					PUBLIC	bud
					PUBLIC	fre
				
					RSEG  ?XD?GLOBAL
				         combuf:   DS   32
				         wiebuf:   DS   6
				         rxdata:   DS   32
				         txdata:   DS   32
				          tagnr:   DS   90
				    wiebuf_cout:   DS   32
				          TagID:   DS   6
				     event_word:   DS   2
				      Search_CT:   DS   1
				           MyID:   DS   4
				
					RSEG  ?BI?GLOBAL
				        wie_str:   DBIT   1
				     TRIG_STATE:   DBIT   1
				
					RSEG  ?ID?GLOBAL
				  RELAY_TIME_IN:   DS   1
				         wiefmt:   DS   1
				INACTIVITY_TIME:   DS   1
				       wie_8bit:   DS   1
				    event_relay:   DS   1
				          power:   DS   2
				       wie_cout:   DS   1
				 RELAY_TIME_OUT:   DS   1
				RELAY_TRIG_STATE:   DS   1
				
					RSEG  ?CO?GLOBAL
				fre:
					DW	0A534H
					DW	0A5B8H
					DW	0A63CH
					DW	0A6C0H
				
				bud:
					DW	0C6A3H
					DW	0C691H
					DW	0C647H
					DW	0C623H
					DW	0C611H
					DW	0C608H
					DW	0C605H
					DW	0C602H
				
				pow:
					DW	09840H
					DW	09841H
					DW	09842H
					DW	09843H
					DW	09844H
					DW	09845H
					DW	09846H
					DW	09847H
				
				wie:
					DB	01AH
					DB	020H
					DB	022H
					DB	028H
				
				cardouttime:
					DB	000H
					DB	001H
					DB	003H
					DB	005H
					DB	00AH
					DB	014H
					DB	028H
					DB	03CH
				
				SiHead:
					DB	0AAH
					DB	02DH
					DB	0D4H
					DB	0FAH
				
				relay_time:
					DB	002H
					DB	003H
					DB	005H
					DB	00AH
					DB	014H
					DB	028H
					DB	03CH
					DB	064H
				
				
					RSEG  ?C_INITSEG
					DB	0C1H, wie_str + 000H	; bit-init
				
					DB	0C1H, TRIG_STATE + 000H	; bit-init
				
					DB	046H
					DW	wiebuf
					DB	012H
					DB	034H
					DB	056H
					DB	078H
					DB	090H
					DB	0ABH
				
					DB	001H
					DB	event_relay
					DB	001H
				
					DB	042H
					DW	event_word
					DW	00000H
				
					DB	041H
					DW	Search_CT
					DB	000H
				
					DB	001H
					DB	wie_8bit
					DB	008H
				
					DB	001H
					DB	wie_cout
					DB	000H
				
					DB	044H
					DW	MyID
					DB	000H
					DB	000H
					DB	000H
					DB	001H
				
					DB	001H
					DB	wiefmt
					DB	000H
				
					DB	002H
					DB	power
					DW	00000H
				
					DB	001H
					DB	INACTIVITY_TIME
					DB	000H
				
					DB	001H
					DB	RELAY_TIME_IN
					DB	000H
				
					DB	001H
					DB	RELAY_TIME_OUT
					DB	000H
				
					DB	001H
					DB	RELAY_TRIG_STATE
					DB	000H
				
				; #include "global.h"
				; 
				; #define  GLOBAL_GLOBALS	  
				; bit wie_str=0;
				; bit TRIG_STATE=0;                                         //触发标记
				; /******************************************************************************
				; ** Global CONSTANTS	 全局变量统一编译管理
				; ******************************************************************************/
				; 
				; 
				; UINT  code   fre[4]={0xa534,0xa5b8,0xa63c,0xa6c0};
				;                  // {433.33,433.66,433.99,434.32}Mhz
				; 
				; UINT  code   bud[8]={0xc6a3,0xc691,0xc647,0xc623,0xc611,0xc608,0xc605,0xc602};
				;                  // {1200  ,2400  ,4800  ,9600  ,19200 ,38400 ,57600 ,115200,}bps/s
				; 
				; UINT  code   pow[8]={0x9840,0x9841,0x9842,0x9843,0x9844,0x9845,0x9846,0x9847};
				;                  // {0     ,-3    ,-6    ,-9    ,-12   ,-15   ,-18   ,-21   ,}dBm
				; 
				; UCHAR code   wie[4]={26,32,34,40};
				; 
				; UCHAR code   cardouttime[8]={0,1,3,5,10,20,40,60};			    
				; 
				; UCHAR code   SiHead[4]={0xaa,0x2d,0xd4,0xfa};             //发送同步头
				; 
				; UCHAR code   relay_time[8]={2,3,5,10,20,40,60,100};       //8字节继电器延时
				; 
				; UCHAR xdata  wiebuf[6]={0x12,0x34,0x56,0x78,0x90,0xab};   //6字节卡号
				; 
				; 
				; 
				; UCHAR xdata  TagID[6];                                    //标签号
				; 
				; 
				; 
				; SAVE_ID  xdata     tagnr[10] ;	                          //设置多个标签进入区域的登记
				; UCHAR    idata     event_relay=1;                         //继电器动作
				; UINT     volatile  event_word=0;  		                  //时间片轮流命令
				; UCHAR    volatile  Search_CT=0 ;		                  //时序0-9
				; UCHAR    idata     wie_8bit=8;							  //8bit
				; UCHAR    idata     wie_cout=0;                            //wiegnad脉冲计数
				; UCHAR    xdata     wiebuf_cout[32];                       //wiegand脉冲数据0or1
				; 
				; 
				; UCHAR    xdata     combuf[32];							  //命令缓冲区
				; UCHAR    xdata     txdata[32];	                          //发送缓冲区
				; UCHAR    xdata     rxdata[32];	                          //接收缓冲区
				; 
				; UCHAR    xdata     MyID[4]={0x00,0x00,0x00,0x01};
				; UCHAR    idata     wiefmt=0;                              //韦根格式
				; UINT     idata     power=0;                               //SI4421功率
				; UCHAR    idata     INACTIVITY_TIME=0;                     //卡号输出间隔
				; UCHAR    idata     RELAY_TIME_IN  =0;                     //进门继电器延时
				; UCHAR    idata     RELAY_TIME_OUT =0;                     //出门继电器延时
				; UCHAR    idata     RELAY_TRIG_STATE =0;                   //继电器触发状态 1=in 0=out;
				; 
				; 
				; 
				; *** sync lost ***
					END
							

相关资源