在线看毛片网站电影-亚洲国产欧美日韩精品一区二区三区,国产欧美乱夫不卡无乱码,国产精品欧美久久久天天影视,精品一区二区三区视频在线观看,亚洲国产精品人成乱码天天看,日韩久久久一区,91精品国产91免费

<menu id="6qfwx"><li id="6qfwx"></li></menu>
    1. <menu id="6qfwx"><dl id="6qfwx"></dl></menu>

      <label id="6qfwx"><ol id="6qfwx"></ol></label><menu id="6qfwx"></menu><object id="6qfwx"><strike id="6qfwx"><noscript id="6qfwx"></noscript></strike></object>
        1. <center id="6qfwx"><dl id="6qfwx"></dl></center>

            新聞中心

            EEPW首頁 > 嵌入式系統(tǒng) > 設計應用 > 頭文件AT89x051.H

            頭文件AT89x051.H

            作者: 時間:2011-05-06 來源:網絡 收藏

            本文引用地址:http://www.biyoush.com/article/172811.htm

            /*--------------------------------------------------------------------------

            Header file for the Atmel 89C1051U, 89C2051, 89C4051.
            Copyright (c) 1995-2000 Keil Software, Inc. All rights reserved.
            --------------------------------------------------------------------------*/

            #ifndef AT89CX051_HEADER_FILE
            #define AT89CX051_HEADER_FILE 1

            /*------------------------------------------------
            Byte Registers
            ------------------------------------------------*/
            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 P1 = 0x90;
            sfr SCON = 0x98;
            sfr SBUF = 0x99;
            sfr IE = 0xA8;
            sfr P3 = 0xB0;
            sfr IP = 0xB8;
            sfr PSW = 0xD0;
            sfr ACC = 0xE0;
            sfr B = 0xF0;

            /*------------------------------------------------
            PCON Bit Values
            ------------------------------------------------*/
            #define IDL_ 0x01
            #define STOP_ 0x02
            #define EWT_ 0x04
            #define EPFW_ 0x08
            #define WTR_ 0x10
            #define PFW_ 0x20
            #define POR_ 0x40
            #define SMOD_ 0x80

            /*------------------------------------------------
            TCON Bit Registers
            ------------------------------------------------*/
            sbit IT0 = 0x88;
            sbit IE0 = 0x89;
            sbit IT1 = 0x8A;
            sbit IE1 = 0x8B;
            sbit TR0 = 0x8C;
            sbit TF0 = 0x8D;
            sbit TR1 = 0x8E;
            sbit TF1 = 0x8F;

            /*------------------------------------------------
            TMOD Bit Values
            ------------------------------------------------*/
            #define T0_M0_ 0x01
            #define T0_M1_ 0x02
            #define T0_CT_ 0x04
            #define T0_GATE_ 0x08
            #define T1_M0_ 0x10
            #define T1_M1_ 0x20
            #define T1_CT_ 0x40
            #define T1_GATE_ 0x80

            #define T1_MASK_ 0xF0
            #define T0_MASK_ 0x0F

            /*------------------------------------------------
            P1 Bit Registers
            ------------------------------------------------*/
            sbit P1_0 = 0x90;
            sbit P1_1 = 0x91;
            sbit P1_2 = 0x92;
            sbit P1_3 = 0x93;
            sbit P1_4 = 0x94;
            sbit P1_5 = 0x95;
            sbit P1_6 = 0x96;
            sbit P1_7 = 0x97;

            sbit AIN0 = 0x90; /* + Analog comparator input */
            sbit AIN1 = 0x91; /* - Analog comparator input */

            /*------------------------------------------------
            SCON Bit Registers
            ------------------------------------------------*/
            sbit RI = 0x98;
            sbit TI = 0x99;
            sbit RB8 = 0x9A;
            sbit TB8 = 0x9B;
            sbit REN = 0x9C;
            sbit SM2 = 0x9D;
            sbit SM1 = 0x9E;
            sbit SM0 = 0x9F;

            /*------------------------------------------------
            IE Bit Registers
            ------------------------------------------------*/
            sbit EX0 = 0xA8; /* 1=Enable External interrupt 0 */
            sbit ET0 = 0xA9; /* 1=Enable Timer 0 interrupt */
            sbit EX1 = 0xAA; /* 1=Enable External interrupt 1 */
            sbit ET1 = 0xAB; /* 1=Enable Timer 1 interrupt */
            sbit ES = 0xAC; /* 1=Enable Serial port interrupt */
            sbit ET2 = 0xAD; /* 1=Enable Timer 2 interrupt */

            sbit EA = 0xAF; /* 0=Disable all interrupts */


            上一頁 1 2 下一頁

            關鍵詞: AT89x051.H 文件

            評論


            相關推薦

            技術專區(qū)

            關閉