www.pudn.com > FM1702SL_Source.rar > RFMeter.inc, change:2005-05-30,size:2435b


TempG				equ	0x2c 
TempH				equ	0x2d 
TempI				equ	0x2e 
TempJ				equ	0x2f 
Temp0				equ	0x30 
Temp1				equ	0x31 
Temp2				equ	0x32 
Temp3				equ	0x33 
Temp4				equ	0x34 
Temp5				equ	0x35 
Temp6				equ	0x36 
Temp7				equ	0x37 
Temp8				equ	0x38 
Temp9				equ	0x39 
TempA				equ	0x3a 
TempB				equ	0x3b 
TempC				equ	0x3c 
TempD				equ	0x3d 
TempE				equ	0x3e 
TempF				equ	0x3f 
 
System_Flag		 	Equ     0X7b	;系统标志 
#Define		Logic_Status		System_Flag,00H 
#Define		Set_Cnt_Flag		System_Flag,01H 
#Define		Cnt_Low			System_Flag,02H 
#Define		Destination_Irp		System_Flag,03H 
#Define		Source_Irp		System_Flag,04H 
#Define		Temp_Gie		System_Flag,05H 
 
Send_Buf			equ	low 0x1b0	;RF buf 
;============================================== 
;FM1702SL控制寄存器定义 
;============================================== 
#define		Page_Reg		00H 
#define		Command_Reg		01H 
#define		FIFO_Reg		02H 
#define		FIFOLength_Reg		04H 
#define		SecondaryStatus_Reg	05H 
#define		InterruptEn_Reg		06H 
#define		InterruptRq_Reg		07H 
#define		Control_Reg		09H 
#define		ErrorFlag_Reg		0AH 
#define		BitFraming_Reg		0FH 
#define		TxControl_Reg		11H 
#define		CwConductance_Reg	12H 
#define		RxControl2_Reg		1EH 
#define		RxWait_Reg		21H 
#define		ChannelRedundancy_Reg	22H 
;============================================== 
;FM1702SL发送命令代码 
;============================================== 
#define		WriteEE			01H 
#define		LoadKeyE2		0BH 
#define         Transmit                1AH  
#define		Transceive		1EH 
#define		Authent1		0CH 
#define		Authent2		14H 
;============================================== 
#define		Poll_1702SL_TimeOut	0x10 
;============================================== 
#define		SPIMasterSDI		PORTA,0 
#define		SPIMasterSCLK		PORTA,1 
#define		SPIMasterSDO		PORTA,2 
#define		FM1702SL_RST		PORTB,6 
#define		SPIMasterCS		PORTA,3 
#define		Beep_Cnt		PORTB,7 
 
SpiAddress	equ		0xd0		;SPI地址寄存器		 
TxRx_Buf	equ		0xd1		;命令寄存器缓冲区 
comm_set	equ		0xd2		;命令码暂存器 
ReadLength	equ		0xd3		;读到的数据长度 
Send_Length	equ		0xd4		;发送,接收数据长度 
Src		equ		0xd5		;数据操作原地址指针		 
Dst		equ		0xd6		;数据操作目的地址指针 
loop_count	equ		0xd7		;代操作数据个数 
Block_num	equ		0xd8		;待读卡片中的块号 
Card_Status	equ		0xd9		;射频卡片状态 
DB_Flag		equ		0xda		;控制字暂存器 
Card_UID	equ		0xdb		;卡序列号暂存器[0xdb~0xdf] 
 
temp_1		equ		0xe0 
temp_2		equ		0xe1 
temp_3		equ		0xe2 
temp_4		equ		0xe3 
temp_5		equ		0xe4