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

正文內(nèi)容

基于單片機(jī)的同步電子時(shí)鐘設(shè)計(jì)(已改無(wú)錯(cuò)字)

2023-07-20 12:53:04 本頁(yè)面
  

【正文】 ,與楊傳猛等同學(xué)有益討論使我受益匪淺。 最后感謝生我育我的父母!感謝你們一直以來(lái)對(duì)我的無(wú)私關(guān)愛(ài)和默默奉獻(xiàn)。 附 錄 一、 PCB板主機(jī)PCB板 從機(jī)PCB板 二、主機(jī)程序代碼頭文件/*Header file for generic 80C52 and 80C32 microcontroller.Copyright (c) 19882002 Keil Elektronik GmbH and Keil Software, Inc.All rights reserved.*/ifndef __REG52_H__define __REG52_H__/* BYTE Registers */sfr P0 = 0x80。sfr P1 = 0x90。sfr P2 = 0xA0。sfr P3 = 0xB0。sfr PSW = 0xD0。sfr ACC = 0xE0。sfr B = 0xF0。sfr SP = 0x81。sfr DPL = 0x82。sfr DPH = 0x83。sfr PCON = 0x87。sfr TCON = 0x88。sfr TMOD = 0x89。sfr TL0 = 0x8A。sfr TL1 = 0x8B。sfr TH0 = 0x8C。sfr TH1 = 0x8D。sfr IE = 0xA8。sfr IP = 0xB8。sfr SCON = 0x98。sfr SBUF = 0x99。/* 8052 Extensions */sfr T2CON = 0xC8。sfr RCAP2L = 0xCA。sfr RCAP2H = 0xCB。sfr TL2 = 0xCC。sfr TH2 = 0xCD。/* BIT Registers *//* PSW */sbit CY = PSW^7。sbit AC = PSW^6。sbit F0 = PSW^5。sbit RS1 = PSW^4。sbit RS0 = PSW^3。sbit OV = PSW^2。sbit P = PSW^0。 //8052 only/* TCON */sbit TF1 = TCON^7。sbit TR1 = TCON^6。sbit TF0 = TCON^5。sbit TR0 = TCON^4。sbit IE1 = TCON^3。sbit IT1 = TCON^2。sbit IE0 = TCON^1。sbit IT0 = TCON^0。/* IE */sbit EA = IE^7。sbit ET2 = IE^5。 //8052 onlysbit ES = IE^4。sbit ET1 = IE^3。sbit EX1 = IE^2。sbit ET0 = IE^1。sbit EX0 = IE^0。/* IP */sbit PT2 = IP^5。sbit PS = IP^4。sbit PT1 = IP^3。sbit PX1 = IP^2。sbit PT0 = IP^1。sbit PX0 = IP^0。/* P3 */sbit RD = P3^7。sbit WR = P3^6。sbit T1 = P3^5。sbit T0 = P3^4。sbit INT1 = P3^3。sbit INT0 = P3^2。sbit TXD = P3^1。sbit RXD = P3^0。/* SCON */sbit SM0 = SCON^7。sbit SM1 = SCON^6。sbit SM2 = SCON^5。sbit REN = SCON^4。sbit TB8 = SCON^3。sbit RB8 = SCON^2。sbit TI = SCON^1。sbit RI = SCON^0。/* P1 */sbit T2EX = P1^1。 // 8052 onlysbit T2 = P1^0。 // 8052 only /* T2CON */sbit TF2 = T2CON^7。sbit EXF2 = T2CON^6。sbit RCLK = T2CON^5。sbit TCLK = T2CON^4。sbit EXEN2 = T2CON^3。sbit TR2 = T2CON^2。sbit C_T2 = T2CON^1。sbit CP_RL2 = T2CON^0。endif初始化程序$NOMOD51。 This file is part of the C51 Compiler package。 Copyright (c) 19882002 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 0IDATALEN EQU 80H 。 the length of IDATA memory in bytes.。XDATASTART EQU 0H 。 the absolute startaddress of XDATA memoryXDATALEN EQU 0H 。 the length of XDATA memory in bytes.。PDATASTART EQU 0H 。 the absolute startaddress of PDATA memoryPDATALEN 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.。PPAGE_SFR DATA 0A0H 。 SFR that supplies uppermost address byte。 (most 8051 variants use P2 as uppermost address byte)。 Standard SFR Symbols ACC DATA 0E0HB DATA 0F0HSP DATA 81HDPL DATA 82HDPH 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 0?C_STARTUP: LJMP STARTUP1 RSEG ?C_C51STARTUPSTA
點(diǎn)擊復(fù)制文檔內(nèi)容
語(yǔ)文相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1