亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

蟲蟲首頁| 資源下載| 資源專輯| 精品軟件
登錄| 注冊

long-awaited

  • 模擬 PWM 輸出控制燈的 10 個亮度級別

    LED 一般是恒流操作的,如何改變 LED 的亮度呢?答案就是 PWM 控制。在一定的 頻率的方波中,調整高電平和低電平的占空比,即可實現。比如我們用低電平點亮一個 LED 燈,我們假設把一個頻率周期分為 10 個時間等份,如果方波中的高低電平占空比是 9:1, 這是就是一個比較暗的亮度,如果方波中高低電平占空比是 10:0,這時,全部是高電平, 燈是滅的。如果占空比是 5:5,就是一個中間亮度,如果高低比是 1:9,是一個比較亮的 亮度,如果高低是 0:10,這時全部是低電平,就是最亮的。  實際上應用中,電視屏幕墻中的幾十百萬 LED 象素都是這樣控制的,而且每一個象素 都有紅綠藍 3 個 LED,每個 LED 可以變化的亮度是幾百到幾萬或者更多的級別,以實現真 彩色的顯示。還有在您的手機中,背光燈的亮度如果是可以變化的,也應該是這種工作方式。 目前的城市彩燈也有很多都使用了 LED,需要控制亮度是也是 PWM 控制。  下面來分析我們的例程,在這個例程中,我們將定時器 2 溢出定為 1/1200 秒。每 10 次脈沖輸出一個 120HZ 頻率。這每 10 次脈沖再用來控制高低電平的 10 個比值。這樣,在 每個 1/120 秒的方波周期中,我們都可以改變方波的輸出占空比,從而控制 LED 燈的 10 個 級別的亮度。  為什么輸出方波的頻率要 120HZ 這么高?因為如果頻率太低,人眼就會看到閃爍感 覺。一般起碼要在 60HZ 以上才感覺好點,120HZ 就基本上看不到閃爍,只能看到亮度的變 化了。  下面請看程序,程序中有比較多的注釋:  ―――――――――――――――――――――――  #define uchar unsigned char //定義一下方便使用  #define uint unsigned int  #define ulong unsigned long  #include <reg52.h> //包括一個 52 標準內核的頭文件    sbit P10 = P1^0; //要控制的 LED 燈  sbit K1= P3^2; //按鍵 K1    uchar scale;//用于保存占空比的輸出 0 的時間份額,總共 10 份    char code dx516[3] _at_ 0x003b;//這是為了仿真設置的  //模擬 PWM 輸出控制燈的 10 個亮度級別  void main(void) // 主程序  {   uint n;     RCAP2H =0xF3; //賦 T2 的預置值,溢出 1 次是 1/1200 秒鐘   RCAP2L =0x98;   TR2=1; //啟動定時器   ET2=1; //打開定時器 2 中斷   EA=1; //打開總中斷   while(1) //程序循環   { ;//主程序在這里就不斷自循環,實際應用中,這里是做主要工作   for(n=0;n<50000;n++); //每過一會兒就自動加一個檔次的亮度   scale++;   if(scale==10)scale=0;   }  }  //1/1200 秒定時器 2 中斷  timer2() interrupt 5  {   static uchar tt; //tt 用來保存當前時間在一秒中的比例位置   TF2=0;     tt++;   if(tt==10) //每 1/120 秒整開始輸出低電平   {   tt=0;     if(scale!=0) //這里加這一句是為了消除滅燈狀態產生的鬼影   P10=0;   }     if(scale==tt) //按照當前占空比切換輸出高電平   P10=1;    }  ――――――――――――――――――  在主程序中,每延時一段時間,就自動換一個占空比,以使亮度自動變化,方便觀察。  編譯,運行,看結果。  可以看到,LED 的亮度以每種亮度 1 秒左右不斷變化,共有 10 個級別。

    標簽: PWM 10 模擬 控制燈 亮度 輸出

    上傳時間: 2017-11-06

    上傳用戶:szcyclone

  • 用于鋰 - 硫電池的納米結構金屬氧化物和硫化物(1)

    Lithium–sulfur (Li–S) batteries with high energy density and long cycle life are considered to be one of the most promising next-generation energy-storage systems beyond routine lithium-ion batteries. Various approaches have been proposed to break down technical barriers in Li–S battery systems. The use of nanostructured metal oxides and sulfides for high sulfur utilization and long life span of Li–S batteries is reviewed here. The relationships between the intrinsic properties of metal oxide/sulfide hosts and electrochemical performances of Li–S batteries are discussed. Nanostructured metal oxides/ sulfides hosts used in solid sulfur cathodes, separators/interlayers, lithium- metal-anode protection, and lithium polysulfides batteries are discussed respectively. Prospects for the future developments of Li–S batteries with nanostructured metal oxides/sulfides are also discussed.

    標簽: 電池 納米結構 硫化物 金屬氧化物

    上傳時間: 2017-11-23

    上傳用戶:653357637

  • 單片機用精度除法函數

    精度除法函數。 調用函數,并輸入被除數、除數和精確到小數點后多少位。即可得到商的整數部分和小數部分。 /*************************精度除法函數********************************/ //======================================================================== // 函數: Void chufa(unsigned long beichushu,unsigned long chushu, unsigned char wei) // 描述: 精度除法 // 參數: unsigned long beichushu,  被除數 // unsigned long chushu,   除數 // unsigned char wei   精確到小數點后多少位 // 返回: 無. // 版本: V1.0, 2017-8-3 //========================================================================

    標簽: 單片機 函數 精度 除法

    上傳時間: 2018-04-16

    上傳用戶:qibao9891

  • Fundamental Limits on a Class of Secure

    Abstract—In the future communication applications, users may obtain their messages that have different importance levels distributively from several available sources, such as distributed storage or even devices belonging to other users. This scenario is the best modeled by the multilevel diversity coding systems (MDCS). To achieve perfect (information-theoretic) secrecy against wiretap channels, this paper investigates the fundamental limits on the secure rate region of the asymmetric MDCS (AMDCS), which include the symmetric case as a special case. Threshold perfect secrecy is added to the AMDCS model. The eavesdropper may have access to any one but not more than one subset of the channels but know nothing about the sources, as long as the size of the subset is not above the security level. The question of whether superposition (source separation) coding is optimal for such an AMDCS with threshold perfect secrecy is answered. A class of secure AMDCS (S-AMDCS) with an arbitrary number of encoders is solved, and it is shown that linear codes are optimal for this class of instances. However, in contrast with the secure symmetric MDCS, superposition is shown to be not optimal for S-AMDCS in general. In addition, necessary conditions on the existence of a secrecy key are determined as a design guideline.

    標簽: Fundamental Limits Secure Class on of

    上傳時間: 2020-01-04

    上傳用戶:kddlas

  • 3G,+4G+and+Beyond–BRINGING NETWORKS

    In recent years, cellular voice networks have transformed into powerful packet-switched access networks for both voice communication and Internet access. Evolving Universal Mobile Telecommunication System (UMTS) networks and first Long Term Evolution (LTE) installations now deliver bandwidths of several megabits per second to individual users, and mobile access to the Internet from handheld devices and notebooks is no longer perceived as slower than a Digital Subscriber Line (DSL) or cable connection. Bandwidth and capacity demands, however, keep rising because of the increasing number of people using the networks and because of bandwidth-intensive applications such as video streaming. Thus, network manufacturers and network operators need to find ways to continuously increase the capacity and performance of their cellular networks while reducing the cost.

    標簽: BRINGING NETWORKS Beyond and 3G 4G

    上傳時間: 2020-05-26

    上傳用戶:shancjb

  • Cognitive+Radio,+Software+Defined+Radio

    Today’s wireless services have come a long way since the roll out of the conventional voice-centric cellular systems. The demand for wireless access in voice and high rate data multi-media applications has been increasing. New generation wireless communication systems are aimed at accommodating this demand through better resource management and improved transmission technologies.

    標簽: Radio Cognitive Software Defined

    上傳時間: 2020-05-26

    上傳用戶:shancjb

  • Cooperative+Communications

    Cooperation is not a natural characteristic attributed to humans. The typical human horizon is focused on short-term gains, which might be due to our instinct-driven subconscious occupying a grander importance than we dare to admit [1]. Cooperating with other individuals or entities, however, usually means that short-term losses may translate into long-term gains – something history has proved to hold true but humans for some reason rarely ever understand. 

    標簽: Communications Cooperative

    上傳時間: 2020-05-27

    上傳用戶:shancjb

  • Core+and+Metro+Networks

    It is commonly accepted today that optical fiber communications have revolutionized telecommunications. Indeed, dramatic changes have been induced in the way we interact with our relatives, friends, and colleagues: we retrieve information, we entertain and educate ourselves, we buy and sell, we organize our activities, and so on, in a long list of activities. Optical fiber systems initially allowed for a significant curb in the cost of transmission and later on they sparked the process of a major rethinking regarding some, generation-old, telecommunication concepts like the (OSI)-layer definition, the lack of cross-layer dependency, the oversegmentation and overfragmentation of telecommunica- tions networks, and so on.

    標簽: Networks Metro Core and

    上傳時間: 2020-05-27

    上傳用戶:shancjb

  • GSM System Engineering

    Cellular communications is one of the fastest growing and most challenging telecom- munication applications ever. Today, it represents a large and continuously increasing percentage of all new telephone subscribers around the world. In the long term, cellular digital technology may become the universal way of communication.

    標簽: Engineering System GSM

    上傳時間: 2020-05-27

    上傳用戶:shancjb

  • History of Wireless

    The  motivation to write about the History  of  Wireless comes from Auguste Comte (1798-1857), a French philosopher who is termed the father  of  positivism and modem sociology  [Les Maximes d'Auguste Comte  (Auguste Comte's Mottos),  http://www.membres.lycos.fr/clotilde/l: On  ne connaitpas complgtement une science tant qu'on n'en saitpas l'histoire. (One does not know completely a science as long as one does not  know  its history.)

    標簽: Wireless History of

    上傳時間: 2020-05-27

    上傳用戶:shancjb

主站蜘蛛池模板: 建湖县| 汕头市| 柏乡县| 樟树市| 和顺县| 东阳市| 河南省| 沿河| 永新县| 平凉市| 盖州市| 涡阳县| 营口市| 桃源县| 白沙| 兰州市| 县级市| 凤山县| 孙吴县| 四川省| 玉山县| 邵阳县| 措美县| 教育| 南昌市| 资兴市| 望城县| 普兰县| 日照市| 资兴市| 灯塔市| 石阡县| 绥江县| 仪陇县| 罗田县| 库尔勒市| 策勒县| 南丰县| 张家口市| 澄迈县| 南宫市|