freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內容

基于單片機的數(shù)字鐘的設計--畢業(yè)設計(論文)(參考版)

2025-06-11 02:14本頁面
  

【正文】 XDATASTART EQU 0。 the absolute startaddress of IDATA memory is always 0 IDATALEN EQU 80H 。 。 With the following EQU statements the initialization of memory 。 Userdefined PowerOn Initialization of Memory 。 。 BL51 your object file list, controls 。 BL51 invocation: 。 。 。 。 。 This file is part of the C51 Compiler package 。 init bank mechanism to code bank 0 LJMP C_START END 鬧鈴程序 $NOMOD51 。 EXTRN CODE (B_SWITCH0) 。 Standard SFR Symbols ACC DATA 0E0H B DATA 0F0H SP DATA 81H DPL DATA 82H DPH DATA 83H NAME C_STARTUP ?C_C51STARTUP SEGMENT CODE ?STACK SEGMENT IDATA RSEG STACK DS 1 EXTRN CODE (?C_START) PUBLIC C_STARTUP CSEG AT 0x8000 ?C_STARTUP: LJMP STARTUP1 RSEG C_C51STARTUP STARTUP1: IF IDATALEN 0 MOV R0,IDATALEN 1 CLR A IDATALOOP: MOV R0,A DJNZ R0,IDATALOOP ENDIF IF XDATALEN 0 MOV DPTR,XDATASTART MOV R7,LOW (XDATALEN) IF (LOW (XDATALEN)) 0 MOV R6,(HIGH (XDATALEN)) +1 ELSE MOV R6,HIGH (XDATALEN) ENDIF CLR A XDATALOOP: MOVX DPTR,A INC DPTR DJNZ R7,XDATALOOP DJNZ R6,XDATALOOP ENDIF IF PPAGEENABLE 0 MOV P2,PPAGE ENDIF IF PDATALEN 0 MOV R0,PDATASTART MOV R7,LOW (PDATALEN) CLR A PDATALOOP: MOVX R0,A INC R0 DJNZ R7,PDATALOOP ENDIF IF IBPSTACK 0 EXTRN DATA (C_IBP) MOV C_IBP,LOW IBPSTACKTOP ENDIF IF XBPSTACK 0 EXTRN DATA (C_XBP) MOV C_XBP,HIGH XBPSTACKTOP MOV C_XBP+1,LOW XBPSTACKTOP ENDIF IF PBPSTACK 0 EXTRN DATA (C_PBP) MOV C_PBP,LOW PBPSTACKTOP ENDIF MOV SP,?STACK1 。 。 set to 1 if pdata object are used. PPAGE EQU 0 。 in the linker invocation. 。 The following EQU statements define the xdata page used for pdata 。 Page Definition for Using the Compact Model with 64 KByte xdata RAM 。 。 set top of stack to highest location+1. 。 Stack Space for reentrant functions in the COMPACT model. PBPSTACK EQU 0 。 set top of stack to highest location+1. 。 Stack Space for reentrant functions in the LARGE model. XBPSTACK EQU 0 。 set top of stack to highest location+1. 。 Stack Space for reentrant functions in the SMALL model. IBPSTACK EQU 0 。 functions and initialized it: 。 。 。 runtime routines must be set to zero. 。 Notes: The IDATA space overlaps physically the DATA and BIT areas of the 。 the length of PDATA memory in bytes. 。 PDATASTART EQU 0H 。 the absolute startaddress of XDATA memory XDATALEN EQU 0H 。 the length of IDATA memory in bytes. 。 。 at processor reset can be defined: 。 。 。 。 。 To link the modified file to your application use the following 。 A51 。 To translate this file use A51 with the following invocation: 。 : This code is executed after processor reset. 。 Copyright (c) 19882021 Keil Elektronik GmbH and Keil Software, Inc. 。 。正確無誤后,就可以對程序進行仿真調試了。 仿真時選擇第一種工作方式,真正實現(xiàn) 功能時選擇第二種工作方式,由于要實現(xiàn)功能所以選擇第二種工作方式。 此后,即可將 DP51PRO實驗儀與 Keil C51集成開發(fā)環(huán)境進行聯(lián)合仿真調試。Vision2調試器設置成 硬件模擬仿真。但是 Keil C51集成開發(fā)環(huán)境也提供了一個外設窗口來模擬外設動作,對于簡單的應用程序基本上也夠用了。 在純軟件模擬工作方式下,上述( 1) ~( 5)步均可省略,用戶程序仍定位于 0000H,源程序的起始定位也不需變。Vision2調試器設置成軟件模擬仿真,它只能對程序的語法及 其結構做一般性的分析,與硬件沒有聯(lián)系。 源程序開頭也要用 ORG 偽指令進行相應的調整。 DelayNS(1)。i8。 DelayNS(10)。 DelayNS(10)。 DelayNS(1)。 } void main() { unsigned char i,KEY。 j++)。 i++) for(j=0。 no) { for(i=0。 //延時參數(shù) for(。 sbit KEY_INT=P3^2。 } } ZLG7290軟件包 另外,還要增加 ZLG7290軟件包中開頭包含“ ”文件頭的“ ”文件加人到 keil C51的項目中。 while(1) { IRcvStr(PCF8563,RDADDR,rd,0x3)。 //定義接收緩沖區(qū) ISendStr(PCF8563,WRADDR,td,0x5)。 } void main() { unsigned char td[5]={0x00,0x12,0x00,0x30,0x12}。 j++)。 i++) for(j=0。 no) { for(i=0。 //延時參數(shù) for(。修改“ ” 文件中的“ sbit SDA=P1^ 7;”和“ bit SCL=P1^ 6。 /*結束總線 */ return(1)。 Ack_I2c(1)。 /*發(fā)送就答位 */ s++。i++) { *s=RcvByte()。 for(i=0。 SendByte(sla+1)。 /*發(fā)送器件子地址 */ if(ack==0)return(0)。 /*發(fā)送器件地址 */ if(ack==0)return(0)。 Start_I2c()。 /*結束總線 */ return(1)。 /*讀取數(shù)據(jù) */ Ack_I2c(1)。 /*發(fā)送器件地址 */ if(ack==0)return(0)。 } bit IRcvByte(uchar sla,uchar *c) { Start_I2c()。 } Stop_I2c()。 /*發(fā)送數(shù)據(jù) */ if(ack==0)return(0)。ino。 /*發(fā)送器件子地址 */ if(ack==0)return(0)。 /*發(fā)送器件地址 */ if(ack==0)return(0)。 Start_I2c()。 /*結束總線 */ return(1)。 /*發(fā)送數(shù)據(jù) */ if(ack==0)return(0)。 /*發(fā)送器件地址 */ if(ack==0)return(0)。 } bit ISendByte(uchar sla,uchar c) { Start_I2c()。 /*清時鐘線,鉗住 I2C總線以便繼續(xù)接收 */ _Nop()。 _Nop()。 /*時鐘低電平周期大于 4μ s*/ _Nop()。 _Nop()。 _Nop()。 _Nop()。 } void Ack_I2c(bit a) { if(a==0)SDA=0。 _Nop()。 } SCL=0。 /*讀數(shù)據(jù)位 ,接收的數(shù)據(jù)位放入 retc中 */ _Nop()。 retc=retc1。 /*置時鐘線為高使數(shù)據(jù)線上數(shù)據(jù)有效 */ _Nop()。 _Nop()。 /*時鐘低電平周期大于 s*/ _Nop()。 /*置時鐘線為低,準備接收數(shù)據(jù)位 */ _Nop()。BitCnt++) { _Nop()。 /*置數(shù)據(jù)線為輸入方式 */ for(BitCnt=0。 retc=0。 } uchar RcvByte() { uchar retc。 _Nop()。 else ack=1。 _Nop()。 _Nop()。 _Nop()。 SDA=1。 } _Nop()。 _Nop()。 /*保證時鐘高電平周期大于 4μ s*/ _Nop()。 /*置時鐘線為高,通知被控器開始接收數(shù)據(jù)位 */ _Nop()。 _Nop()。0x80)SDA=1。BitCnt8。 } void SendByte(uchar c) { uchar BitCnt。 _Nop()。 /*發(fā)送 I2C總線結束信號 */ _Nop()。 _Nop()。 _Nop()。 /*結束條件建立時間大于 4μ s*/
點擊復制文檔內容
畢業(yè)設計相關推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1