资源描述:
《单片机温湿度监控装置汇编语言源程序清单.doc》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、温湿度监控装置汇编语言源程序清单.doc;*************************************************WDATDATA40HRDATDATA41HLdataDATA42HHdataDATA43HP0M1DATA84HP0M2DATA85HP1M1DATA91HP1M2DATA92HP2M1DATA0A4HP2M2DATA0A5HTRIMDATA96HSSTATDATA0BAHIEN0DATA0A8HIEN1DATA0E8HWDLDATA0C1HWFEED1DATA0C2HWFEED2DATA0C3HWDCONDATA0A7HFMCONDATA0E4H
2、FMDATADATA0E5HFMADRLDATA0E6HFMADRHDATA0E7HSPSTATDATA0E1HSPCTLDATA0E2HSPDATDATA0E3HRTCCONDATA0D1HRTCHDATA0D2HRTCLDATA0D3H;定义FLASH控制命令字;*************************************************LOADEQU00H;加载数据PROGEQU48H;编程ERS_PROGEQU68H;擦除编程ERS_SEQU71H;擦除扇区ERS_PEQU70H;擦除页AN1BITP1.5;按扭1AN2BITP1.3;按扭2AN3BITP1
3、.2;按扭3Read_PBITP1.4;读数据口outBITP0.0;负载输出;----变量定义区------;*************************************************FLAGEQU63HU8comdataEQU64HU8T_data_HEQU65HU8T_data_LEQU66HU8RH_data_HEQU6AHU8RH_data_LEQU6BHU8checkdataEQU6CHU8tempEQU6DHtempEQU6EH;*************************************************ORG0000HAJMP
4、INIT_0ORG000BHLJMPT0ZDORG001BHLJMPT1ZDORG0023HLJMPCYKZDORG0053HLJMPRTCIORG0060HDB0FCHDB60HDB0DAHDB0F2HDB66HDB0B6HDB0BEHDB0E0HDB0FEHDB0F6HDB1CH;LDB6EH;HDB00H;消隐DB00HDB00HDB1AH;cDB0BCH;GDB3AH;oDB7AH;dDB2EH;hDB9EH;E;*************************************************ORG0080HINIT_0:MOV22H,#03HMOV25H,#0
5、0HMOV2AH,#00HMOV2DH,#00HMOV2CH,#00HMOV30H,#00HMOV31H,#00HMOV32H,#00HMOV33H,#00HMOV34H,#00HMOV35H,#00HMOV3DH,#35HMOV42H,#09HMOV43H,#01HMOV45H,#00HMOV46H,#00HMOV47H,#00HMOV48H,#00HMOV49H,#00HMOV4BH,#0FHMOV4CH,#02HMOV4DH,#0FHMOV50H,#00HMOV51H,#0BCHMOV52H,#3AHMOV53H,#3AHMOV54H,#7AHMOV55H,#00HMOV5BH,#
6、5MOV5DH,#58HMOVP0M1,#00HMOVP0M2,#3DHMOVP1M1,#20HMOVP1M2,#03HMOVP1,#0FFHMOVTCON,#05H;;;;;;;#55HMOVTMOD,#11HMOVSCON,#00H;;;;;;;#10H;MOVTL0,#0B4H;MOVTH0,#3CHMOVTL1,#88HMOVTH1,#98HMOVRTCL,#7FHMOVRTCH,#70HMOVRTCCON,#63HMOVIEN0,#0DAHINIT_2:MOVAcc,WDCONSETBAcc.2MOVWDL,#0FFHCLREAMOVWDCON,AccMOVWFEED1,#0A
7、5HMOVWFEED2,#5AHSETBEAINIT_3:MOV2EH,#00HMOV2FH,#00HMOVDPTR,#7F1HLCALLRFLASHMOV31H,RDATMOVDPTR,#7F2HLCALLRFLASHMOV32H,RDATMOVDPTR,#7F6HLCALLRFLASHMOV26H,RDAT;*************************************************MAIN:CLR2AH;