在线看毛片网站电影-亚洲国产欧美日韩精品一区二区三区,国产欧美乱夫不卡无乱码,国产精品欧美久久久天天影视,精品一区二区三区视频在线观看,亚洲国产精品人成乱码天天看,日韩久久久一区,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) > 設(shè)計應(yīng)用 > STC12C5A60S2.H stc單片機(jī)keil頭文件下載

            STC12C5A60S2.H stc單片機(jī)keil頭文件下載

            作者: 時間:2016-12-01 來源:網(wǎng)絡(luò) 收藏
            STC12C5A60S2.H是stc公司最新的高性能高速單片機(jī)STC12C5A60S2的頭文件,支持在keil軟件里面調(diào)用,這個軟件可是我找了半天才找到的一個真正能用的版本,大家保存好 下載地址是:http://www.51hei.com/f/STC12C5A60S2.H右鍵另存為即可下載

            下面是這個文件的內(nèi)容:
            //--------------------------------------------------------------------------------
            //新一代 1T 8051系列單片機(jī)內(nèi)核特殊功能寄存器C51 Core SFRs
            // 7 6 5 4 3 2 1 0 Reset Value
            sfr ACC = 0xE0; //Accumulator 0000,0000
            sfr B = 0xF0; //B Register 0000,0000
            sfr PSW = 0xD0; //Program Status Word CY AC F0 RS1 RS0 OV F1 P 0000,0000
            //-----------------------------------
            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;
            //-----------------------------------
            sfr SP = 0x81; //Stack Pointer 0000,0111
            sfr DPL = 0x82; //Data Pointer Low Byte 0000,0000
            sfr DPH = 0x83; //Data Pointer High Byte 0000,0000
            //--------------------------------------------------------------------------------
            //新一代 1T 8051系列單片機(jī)系統(tǒng)管理特殊功能寄存器
            // 7 6 5 4 3 2 1 0 Reset Value
            sfr PCON = 0x87; //Power Control SMOD SMOD0 LVDF POF GF1 GF0 PD IDL 0001,0000
            // 7 6 5 4 3 2 1 0 Reset Value
            sfr AUXR = 0x8E; //Auxiliary Register T0x12 T1x12 UART_M0x6 BRTR S2SMOD BRTx12 EXTRAM S1BRS 0000,0000
            //-----------------------------------
            sfr AUXR1 = 0xA2; //Auxiliary Register 1 - PCA_P4 SPI_P4 S2_P4 GF2 ADRJ - DPS 0000,0000
            /*
            PCA_P4:
            0, 缺省PCA 在P1 口
            1,PCA/PWM 從P1 口切換到P4 口: ECI 從P1.2 切換到P4.1 口,
            PCA0/PWM0 從P1.3 切換到P4.2 口
            PCA1/PWM1 從P1.4 切換到P4.3 口
            SPI_P4:
            0, 缺省SPI 在P1 口
            1,SPI 從P1 口切換到P4 口: SPICLK 從P1.7 切換到P4.3 口
            MISO 從P1.6 切換到P4.2 口
            MOSI 從P1.5 切換到P4.1 口
            SS 從P1.4 切換到P4.0 口
            S2_P4:
            0, 缺省UART2 在P1 口
            1,UART2 從P1 口切換到P4 口: TxD2 從P1.3 切換到P4.3 口
            RxD2 從P1.2 切換到P4.2 口
            GF2: 通用標(biāo)志位

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

            ADRJ:
            0, 10 位A/D 轉(zhuǎn)換結(jié)果的高8 位放在ADC_RES 寄存器, 低2 位放在ADC_RESL 寄存器
            1,10 位A/D 轉(zhuǎn)換結(jié)果的最高2 位放在ADC_RES寄存器的低2 位, 低8 位放在ADC_RESL 寄存器

            DPS: 0, 使用缺省數(shù)據(jù)指針DPTR0
            1,使用另一個數(shù)據(jù)指針DPTR1
            */
            //-----------------------------------
            sfr WAKE_CLKO = 0x8F; //附加的 SFR WAK1_CLKO
            /*
            7 6 5 4 3 2 1 0 Reset Value
            PCAWAKEUP RXD_PIN_IE T1_PIN_IE T0_PIN_IE LVD_WAKE _ T1CLKO T0CLKO 0000,0000B

            b7 - PCAWAKEUP : PCA 中斷可喚醒 powerdown。
            b6 - RXD_PIN_IE : 當(dāng) P3.0(RXD) 下降沿置位 RI 時可喚醒 powerdown(必須打開相應(yīng)中斷)。
            b5 - T1_PIN_IE : 當(dāng) T1 腳下降沿置位 T1 中斷標(biāo)志時可喚醒 powerdown(必須打開相應(yīng)中斷)。
            b4 - T0_PIN_IE : 當(dāng) T0 腳下降沿置位 T0 中斷標(biāo)志時可喚醒 powerdown(必須打開相應(yīng)中斷)。
            b3 - LVD_WAKE : 當(dāng) CMPIN 腳低電平置位 LVD 中斷標(biāo)志時可喚醒 powerdown(必須打開相應(yīng)中斷)。
            b2 -
            b1 - T1CLKO : 允許 T1CKO(P3.5) 腳輸出 T1 溢出脈沖,F(xiàn)ck1 = 1/2 T1 溢出率
            b0 - T0CLKO : 允許 T0CKO(P3.4) 腳輸出 T0 溢出脈沖,F(xiàn)ck0 = 1/2 T1 溢出率
            */
            //-----------------------------------
            sfr CLK_DIV = 0x97; //Clock Divder - - - - - CLKS2 CLKS1 CLKS0 xxxx,x000
            //-----------------------------------
            sfr BUS_SPEED = 0xA1; //Stretch register - - ALES1 ALES0 - RWS2 RWS1 RWS0 xx10,x011
            /*
            ALES1 and ALES0:
            00 : The P0 address setup time and hold time to ALE negative edge is one clock cycle
            01 : The P0 address setup time and hold time to ALE negative edge is two clock cycles.
            10 : The P0 address setup time and hold time to ALE negative edge is three clock cycles. (default)
            11 : The P0 address setup time andholdtime to ALE negative edge is four clock cycles.

            RWS2,RWS1,RWS0:
            000 : The MOVX read/write pulse is 1 clock cycle.
            001 : The MOVX read/write pulse is 2 clock cycles.
            010 : The MOVX read/write pulse is 3 clock cycles.
            011 : The MOVX read/write pulse is 4 clock cycles. (default)
            100 : The MOVX read/write pulse is 5 clock cycles.
            101 : The MOVX read/write pulse is 6 clock cycles.
            110 : The MOVX read/write pulse is 7 clock cycles.
            111 : The MOVX read/writepulseis 8 clock cycles.
            */


            上一頁 1 2 下一頁

            評論


            技術(shù)專區(qū)

            關(guān)閉