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

正文內(nèi)容

基于單片機(jī)的數(shù)字鐘的設(shè)計(jì)--畢業(yè)設(shè)計(jì)(論文)-資料下載頁

2025-06-07 02:14本頁面
  

【正文】 。i8。i++) { ZLG7290_SendCmd(0x60+i,KEY)。 DelayNS(1)。 } } } } 1 先在 select decive for target“ target1”中選擇單片機(jī) P80/87C52X2 如圖 65 圖 65 選擇單片機(jī)型號 圖 66單片機(jī)選擇 2 然后設(shè)置 options for target“ target1”中的 target、 C5 debug、 target setup如圖 67 圖 67設(shè)置工程 圖 68設(shè)置工程 Target選項(xiàng)的設(shè)置: DP51PRO實(shí)驗(yàn)儀處在調(diào)試狀態(tài)時(shí), MON51監(jiān)控程序?qū)⒄? 用 0000H- 7FFFH之間的程序存儲(chǔ)單元,用戶程序位于 8000HBFFFH之間的 SRAM單元(offchip Code memory 和 offchip Xdata memory設(shè)置 )。 源程序開頭也要用 ORG 偽指令進(jìn)行相應(yīng)的調(diào)整。 如圖 68 圖 69設(shè)置工程 圖 610設(shè)置工程 第一種工作方式,選擇其中 Use Simlator選項(xiàng),將 181。Vision2調(diào)試器設(shè)置成軟件模擬仿真,它只能對程序的語法及 其結(jié)構(gòu)做一般性的分析,與硬件沒有聯(lián)系。在此模式下不需要實(shí)際的目標(biāo)硬件就可以模擬 80C51微控制器的很多功 能,在準(zhǔn)備硬件之前就可以測試您的應(yīng) 用程序,這是很有用的。 在純軟件模擬工作方式下,上述( 1) ~( 5)步均可省略,用戶程序仍定位于 0000H,源程序的起始定位也不需變。 當(dāng)然,因?yàn)槭擒浖M調(diào)試,程序中對外設(shè)的訪問就無法通過 DP51PRO實(shí)驗(yàn)儀來觀察運(yùn)行效果,如燈亮、電機(jī)轉(zhuǎn)等。但是 Keil C51集成開發(fā)環(huán)境也提供了一個(gè)外設(shè)窗口來模擬外設(shè)動(dòng)作,對于簡單的應(yīng)用程序基本上也夠用了。 第二種工作方式是: 在圖 Debug調(diào)試模式設(shè)置窗口中,選擇 use, 將181。Vision2調(diào)試器設(shè)置成 硬件模擬仿真。對于 DP51PRO單片機(jī)綜合仿真實(shí)驗(yàn)儀的軟硬系統(tǒng)聯(lián)合調(diào)試而言,應(yīng)該選擇 ”Keil Monitor- 51 Driver”。 此后,即可將 DP51PRO實(shí)驗(yàn)儀與 Keil C51集成開發(fā)環(huán)境進(jìn)行聯(lián)合仿真調(diào)試。 至于其它的選項(xiàng)用戶可按默認(rèn)值進(jìn)行設(shè)置或不用設(shè)置,最后點(diǎn)擊確定加以確認(rèn)。 仿真時(shí)選擇第一種工作方式,真正實(shí)現(xiàn) 功能時(shí)選擇第二種工作方式,由于要實(shí)現(xiàn)功能所以選擇第二種工作方式。 如圖 610 再點(diǎn)擊 setting,設(shè)置 Target Setup,把端口 Port 從 1改成 2 如圖 611 圖 61設(shè)置 工程 ( build target) 如圖 612 圖 612建立目標(biāo)工程 設(shè)置完畢執(zhí)行 Rebuild all target files命令對項(xiàng)目文件進(jìn)行重新編譯(匯編)、 連接。正確無誤后,就可以對程序進(jìn)行仿真調(diào)試了。 匯編語言: 顯示的: $NOMOD51 。 。 This file is part of the C51 Compiler package 。 Copyright (c) 19882021 Keil Elektronik GmbH and Keil Software, Inc. 。 。 : This code is executed after processor reset. 。 。 To translate this file use A51 with the following invocation: 。 。 A51 。 。 To link the modified file to your application use the following 。 BL51 invocation: 。 。 BL51 your object file list, controls 。 。 。 。 Userdefined PowerOn Initialization of Memory 。 。 With the following EQU statements the initialization of memory 。 at processor reset can be defined: 。 。 。 the absolute startaddress of IDATA memory is always 0 IDATALEN EQU 80H 。 the length of IDATA memory in bytes. 。 XDATASTART EQU 0H 。 the absolute startaddress of XDATA memory XDATALEN EQU 0H 。 the length of XDATA memory in bytes. 。 PDATASTART EQU 0H 。 the absolute startaddress of PDATA memory PDATALEN EQU 0H 。 the length of PDATA memory in bytes. 。 。 Notes: The IDATA space overlaps physically the DATA and BIT areas of the 。 8051 CPU. At minimum the memory space occupied from the C51 。 runtime routines must be set to zero. 。 。 。 Reentrant Stack Initilization 。 。 The following EQU statements define the stack pointer for reentrant 。 functions and initialized it: 。 。 Stack Space for reentrant functions in the SMALL model. IBPSTACK EQU 0 。 set to 1 if small reentrant is used. IBPSTACKTOP EQU 0FFH+1 。 set top of stack to highest location+1. 。 。 Stack Space for reentrant functions in the LARGE model. XBPSTACK EQU 0 。 set to 1 if large reentrant is used. XBPSTACKTOP EQU 0FFFFH+1。 set top of stack to highest location+1. 。 。 Stack Space for reentrant functions in the COMPACT model. PBPSTACK EQU 0 。 set to 1 if pact reentrant is used. PBPSTACKTOP EQU 0FFFFH+1。 set top of stack to highest location+1. 。 。 。 。 Page Definition for Using the Compact Model with 64 KByte xdata RAM 。 。 The following EQU statements define the xdata page used for pdata 。 variables. The EQU PPAGE must conform with the PPAGE control used 。 in the linker invocation. 。 PPAGEENABLE EQU 0 。 set to 1 if pdata object are used. PPAGE EQU 0 。 define PPAGE number. 。 。 。 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 。 This code is required if you use with Banking Mode 4 。 EXTRN CODE (B_SWITCH0) 。 CALL ?B_SWITCH0 。 init bank mechanism to code bank 0 LJMP C_START END 鬧鈴程序 $NOMOD51 。 。 This file is part of the C51 Compiler package 。 Copyright (c) 19882021 Keil Elektronik GmbH and Keil Software, Inc. 。 。 : This code is executed after processor reset. 。 。 To translate this file use A51 with the following invocation: 。 。 A51 。 。 To link the modified file to your application use the following 。 BL51 invocation: 。 。 BL51 your object file list, controls 。 。 。 。 Userdefined PowerOn Initialization of Memory 。 。 With the following EQU statements the initialization of memory 。 at processor reset can be defined: 。 。 。 the absolute startaddress of IDATA memory is always 0 IDATALEN EQU 80H 。 the length of IDATA memory in bytes. 。 XDATASTART EQU
點(diǎn)擊復(fù)制文檔內(nèi)容
畢業(yè)設(shè)計(jì)相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1