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

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

WIDE-SCREEN

  • LCD12864顯示漢字和數字(程序和電路)

    附件為:LCD12864顯示漢字和數字的程序與電路 /*  自定義延時子函數 */ void delayms(uchar z) {   int x,y;   for(x=z;x>0;x--)      for(y=110;y>0;y--); } /*      判斷LCD忙信號狀態 */ void buys() {   int dat;   RW=1;   RS=0;   do     {           P0=0x00;          E=1;    dat=P0;    E=0;    dat=0x80 & dat;   } while(!(dat==0x00)); } /*      LCD寫指令函數 */ void w_com(uchar com) {   //buys();   RW=0;   RS=0;   E=1;   P0=com;   E=0; }  /*      LCD寫數據函數 */ void w_date(uchar date) {   //buys();   RW=0;   RS=1;   E=1;   P0=date;   E=0; } /*     LCD選屏函數 */ void select_screen(uchar screen) {     switch(screen)     {         case 0:     //選擇全屏                 CS1=0;        CS2=0;           break;      case 1:     //選擇左屏                 CS1=0;        CS2=1;           break;                          case 2:     //選擇右屏                 CS1=1;        CS2=0;           break;    /*  case 3:     //選擇右屏                 CS1=1;          CS2=1;               break;    */     }           } /*   LCDx向上滾屏顯示 */ void lcd_rol() {     int x;     for(x=0;x<64;x++)        {       select_screen(0);     w_com(0xc0+x);       delayms(500);     } } /*     LCD清屏函數:清屏從第一頁的第一列開始,總共8頁,64列 */ void clear_screen(screen) {   int x,y;   select_screen(screen);     //screen:0-選擇全屏,1-選擇左半屏,2-選擇右半屏   for(x=0xb8;x<0xc0;x++)   //從0xb8-0xbf,共8頁      {    w_com(x);    w_com(0x40);   //列的初始地址是0x40    for(y=0;y<64;y++)       {            w_date(0x00);              }       }    } /*   LCD顯示漢字字庫函數 */ void lcd_display_hanzi(uchar screen,uchar page,uchar col,uint mun) {  //screen:選擇屏幕參數,page:選擇頁參數0-3,col:選擇列參數0-3,mun:顯示第幾個漢字的參數       int a;    mun=mun*32;    select_screen(screen);    w_com(0xb8+(page*2));    w_com(0x40+(col*16));    for ( a=0;a<16;a++)       {        w_date(hanzi[mun++]);       }    w_com(0xb8+(page*2)+1);    w_com(0x40+(col*16));    for ( a=0;a<16;a++)       {        w_date(hanzi[mun++]);       } }  /*   LCD顯示字符字庫函數 */ void lcd_display_zifuk(uchar screen,uchar page,uchar col,uchar mun) {  //screen:選擇屏幕參數,page:選擇頁參數0-3,col:選擇列參數0-7,mun:顯示第幾個漢字的參數       int a;    mun=mun*16;    select_screen(screen);    w_com(0xb8+(page*2));    w_com(0x40+(col*8));    for ( a=0;a<8;a++)       {        w_date(zifu[mun++]);       }    w_com(0xb8+(page*2)+1);    w_com(0x40+(col*8));    for ( a=0;a<8;a++)       {        w_date(zifu[mun++]);       } } /*   LCD顯示數字字庫函數 */ void lcd_display_shuzi(uchar screen,uchar page,uchar col,uchar mun) {  //screen:選擇屏幕參數,page:選擇頁參數0-3,col:選擇列參數0-7,mun:顯示第幾個漢字的參數       int a;    mun=mun*16;    select_screen(screen);    w_com(0xb8+(page*2));    w_com(0x40+(col*8));    for ( a=0;a<8;a++)       {        w_date(shuzi[mun++]);       }    w_com(0xb8+(page*2)+1);    w_com(0x40+(col*8));    for ( a=0;a<8;a++)       {        w_date(shuzi[mun++]);       } } /*   LCD初始化函數 */ void lcd_init() {   w_com(0x3f);   //LCD開顯示   w_com(0xc0);   //LCD行初始地址,共64行   w_com(0xb8);   //LCD頁初始地址,共8頁   w_com(0x40);   //LCD列初始地址,共64列     } /*   LCD顯示主函數 */ void main() {   //第一行       int x;    lcd_init();     //LCD初始化    clear_screen(0);    //LCD清屏幕    lcd_display_shuzi(1,0,4,5);    //LCD顯示數字    lcd_display_shuzi(1,0,5,1);    //LCD顯示數字       lcd_display_hanzi(1,0,3,0);    //LCD顯示漢字    lcd_display_hanzi(2,0,0,1);    //LCD顯示漢字    //LCD字符漢字    lcd_display_hanzi(2,0,1,2);    //LCD顯示漢字   //第二行     lcd_display_zifuk(1,1,2,0);    //LCD顯示字符    lcd_display_zifuk(1,1,3,0);    //LCD顯示字符    lcd_display_zifuk(1,1,4,0);    //LCD顯示字符    lcd_display_zifuk(1,1,5,4);    //LCD顯示字符    lcd_display_shuzi(1,1,6,8);    //LCD顯示字符    lcd_display_shuzi(1,1,7,9);    //LCD顯示字符    lcd_display_shuzi(2,1,0,5);    //LCD顯示字符    lcd_display_shuzi(2,1,1,1);    //LCD顯示字符    lcd_display_zifuk(2,1,2,4);    lcd_display_zifuk(2,1,3,1);    lcd_display_zifuk(2,1,4,2);    lcd_display_zifuk(2,1,5,3);   //第三行    for(x=0;x<4;x++)       {      lcd_display_hanzi(1,2,x,3+x);    //LCD顯示漢字    }      for(x=0;x<4;x++)       {      lcd_display_hanzi(2,2,x,7+x);    //LCD顯示漢字    }   //第四行     for(x=0;x<4;x++)       {      lcd_display_zifuk(1,3,x,5+x);    //LCD顯示漢字    }     lcd_display_shuzi(1,3,4,7);     lcd_display_shuzi(1,3,5,5);     lcd_display_shuzi(1,3,6,5);     lcd_display_zifuk(1,3,7,9);     lcd_display_shuzi(2,3,0,8);     lcd_display_shuzi(2,3,1,9);     lcd_display_shuzi(2,3,2,9);     lcd_display_shuzi(2,3,3,5);     lcd_display_shuzi(2,3,4,6);     lcd_display_shuzi(2,3,5,8);     lcd_display_shuzi(2,3,6,9);     lcd_display_shuzi(2,3,7,2);        while(1);    /* while(1)     {     //  LCD向上滾屏顯示        lcd_rol();     }    */ }

    標簽: 12864 LCD 漢字 數字

    上傳時間: 2013-11-08

    上傳用戶:aeiouetla

  • 基于8098單片機的SPWM變頻調速系統

      數字控制的交流調速系統所選用的微處理器、功率器件及產生PWM波的方法是影響交流調速系統性能好壞的直接因素。在介紹了正弦脈寬調制(SPWM)技術的基礎上,設計了一種以8098單片機作為控制器,以智能功率模塊IPM為開關器件的變頻調速系統。通過軟件編程,產生正弦脈沖寬度調制波形來控制絕緣柵雙極晶體管的導通和關斷,從而達到控制異步電動機轉速的目的。實驗結果表明,該系統可調頻率調電壓,穩定度高,調速范圍寬,具有較強的實用價值   Abstract:   AC variable speed with digital control systems used microprocessors, power devices and generate PWM wave is the direct factors of affecting the performance AC speed regulation system. On the basis of introducing the sinusoidal pulse width modulation (SPWM) technology,this paper designed variable speed system which used 8098 as a controller, intelligent power module IPM as switching device. Through software programming, resulting in sinusoidal pulse width modulation waveform to control the insulated gate bipolar transistor turn on and off, so as to achieve the purpose of speed control of induction motors. Experimental results show that the system can adjust frequency modulation voltage, high stability, wide speed range, has a strong practical value.  

    標簽: 8098 SPWM 單片機 變頻調速系統

    上傳時間: 2013-11-14

    上傳用戶:ynwbosss

  • 基于MSP430F1611單片機的音頻信號分析儀設計

      為了使音頻信號分析儀小巧可靠,成本低廉,設計了以2片MSP430F1611單片機為核心的系統。該系統將音頻信號送入八階巴特沃茲低通濾波器,對信號進行限幅放大、衰減、電平位移、緩沖,并利用一單片機負責對前級處理后的模擬信號進行采樣,將采集得到的音頻信號進行4 096點基2的FFT計算,并對信號加窗函數提高分辨率,另一單片機負責對信號的分析及控制顯示設備。此設計精確的測量了音頻信號的功率譜、周期性、失真度指標,達到較高的頻率分辨率,并能將測量結果通過紅外遙控器顯示在液晶屏上。   Abstract:   o make the audio signal analyzer cheaper, smaller and more reliable, this system sends the audio signal to the eight-order butterworth filter, and then amplifies, attenuates, buffers it in a limiting range, transfers the voltage level of the signal before utilizing two MSP430F1611 MCU to realize the audio analysis. One is charged for sampling and dealing with the processed audio signal collected by the 4096 point radix-2 FFT calculation and imposes the window function to improve the frequency resolution. The other one controls the display and realizes the spectrum, periodicity, power distortion analysis in high resolution which is displayed in the LCD screen through the infrared remote control.

    標簽: F1611 1611 430F MSP

    上傳時間: 2013-12-11

    上傳用戶:jasonheung

  • 基于AT89S52單片機的多功能音樂播放器

    介紹一種多功能音樂播放器,它是以AT89S52單片機為核心,并輔有一些外圍器件,采用匯編語言編寫程序,實現多功能音樂播放,歌曲自動循環播放和使用琴鍵自編曲目功能。此外,彩燈顯示歌曲節奏,按鍵跳轉到喜愛曲目,液晶顯示當前播英文曲目。并給出了系統軟硬件設計。 Abstract:  It introduces a multifunctional music player,taking AT89S52 single-chip microcomputer as hardware control core and using some peripheral elements.Programmes are compiled in assembly language to act as expected.There are two functional modes in this system.One is to make the music play automatically and consecutively,the other is to compose new songs through keys.In addition,lights show the pace of music and the English names can be displayed in the liquid crystal screen.With perfect combination of hardware and software,the music player can meet many music lovers’needs for multifunctional music player.And the hardware and software of the system are given.

    標簽: 89S S52 AT 89

    上傳時間: 2013-11-18

    上傳用戶:xiaodu1124

  • 基于MSP430F247和TMP275的測溫儀

    介紹了一種TI公司最新推出的MSP430F247單片機,利用它自帶的I2C模塊驅動I2C總線的溫度傳感器TMP275。TMP275是一款具有高精度、低功耗的新型溫度傳感器。由于TMP275具有可編程功能,纖小的封裝以及極大的溫度范圍,因而廣泛應用于組建超小型溫度測量裝置。 Abstract:  A new single chip microcomputer MSP430F247 which is released by TI is introduced.It can drive I2C interface digital temperature sensor TMP275 with I2C module.TMP275 is a new temperature sensor which has high accurate,low power. Because TMP275 has programmable function,small packages and wide temperature range,it is applied widely in very little temperature measurment equipment.

    標簽: 430F F247 MSP 430

    上傳時間: 2013-12-06

    上傳用戶:asdfasdfd

  • 基于C8051F020的觸摸屏驅動控制

    C8051F020單片機通過SPI接口驅動四線電阻式觸摸屏控制器TSC2046,利用中斷方式驅動TSC2046設計軟件。介紹了觸摸屏的工作原理、TSC2046工作方式以及典型應用電路。 Abstract:  The C8051F020 MCU is connected with the TSC2046 which is a 4-wire touch screen controller. The TSC2046 is controlled by interrupt mode, the? operation principle of touch screen is introduced. The operation mode of TSC2046 and typical application circuit are also discussed.

    標簽: C8051F020 觸摸屏 驅動控制

    上傳時間: 2014-12-27

    上傳用戶:hwl453472107

  • 基于單總線器件DS18B20的溫度測量儀

    針對目前采用的熱敏電阻測量方法,提出了采用單總線數字式溫度傳感器DS18B20和單片機組成的新型溫度測量儀。介紹DS18B20的結構和工作原理,以及單總線工作原理,給出了由Mega8單片機和DS18B20構成的單總線溫度測量儀的硬件電路及軟件流程圖。經試驗基于單總線器件DS18B20的溫度測量儀,具有測量準確、測溫范圍寬、體積小、控制方便等優點。 Abstract:  This paper brings forward a new temperature meter composed of 1-Wire temperature sensor DS18B20 and MCU which has advantage of the thermistor. In the article, the DS18B20's structure and controlling principles are introduced and hardware circuit and software diagram of the temperature meter are given.After been tested,the temperature meter has the advantages of accurate measurement, wide temperature range, small volume and convenient controlling.

    標簽: 18B B20 DS 18

    上傳時間: 2013-10-31

    上傳用戶:hzy5825468

  • 基于C8051F系列單片機的無線收發電路設計

    基于幅移鍵控技術ASK(Amplitude-Shift Keying),以C8051F340單片機作為監測終端控制器,C8051F330D單片機作為探測節點控制器,采用半雙工的通信方式,通過監控終端和探測節點的無線收發電路,實現數據的雙向無線傳輸。收發電路采用直徑為0.8 mm的漆包線自行繞制成圓形空心線圈天線,天線直徑為(3.4±0.3)cm。試驗表明,探測節點與監測終端的通信距離為24 cm,通過橋接方式,節點收發功率為102 mW時,節點間的通信距離可達20 cm。與傳統無線收發模塊相比,該無線收發電路在受體積、功耗、成本限制的場合有廣闊的應用前景。 Abstract:  Based on ASK technology and with the C8051F340 and C8051F330D MCU as the controller, using half-duplex communication mode, this paper achieves bi-directional data transfer. Transceiver circuit constituted by enameled wire which diameter is 0.8mm and wound into a diameter (3.4±0.3) cm circular hollow coil antenna. Tests show that the communication distance between detection and monitoring of the terminal is 24cm,the distance is up to 20cm between two nodes when using the manner of bridging and the node transceiver power is 102mW. Compared with the conventional wireless transceiver modules, the circuit has wide application prospect in small size, low cost and low power consumption and other characteristics.

    標簽: C8051F 單片機 無線收發 電路設計

    上傳時間: 2013-10-19

    上傳用戶:xz85592677

  • 基于單片機AT89C51的MP3播放系統的設計方案

    提出一種基于單片機AT89C51SND1C的MP3播放系統的設計方案。單片機集成了專用的解碼器,使用K9F1208閃存作為外存儲器,放音電路采用CS4330,存儲文件通過播放器上的USB接口設備從PC機上直接下載,液晶顯示采用LCD1602。方案設計簡單,性價比高,低功耗,易擴展。由于采用的是通用單片機實現的,可以很容易地移植到其他微控制器系統中,有很強的市場競爭能力和實用價值。 Abstract:  A MP3 player design based on microchip AT89C51SND1C was presented, which used K9F1208 Flash chip as the memory circuit and used CS4330 as play chip. Storage files were download from PC through USB interfaces player on the device,and the LCD/602 was used as display screen. This system had characteristics of simple design,low power,easy expand,low cost and high recognition. Using of universual microchip make it easy to transplant to other microcontrol system,and have strong market competitiom and practical value.

    標簽: 89C C51 MP3 AT

    上傳時間: 2014-12-27

    上傳用戶:佳期如夢

  • SN65LBC170,SN75LBC170,pdf(TRIP

    The SN65LBC170 and SN75LBC170 aremonolithic integrated circuits designed forbidirectional data communication on multipointbus-transmission lines. Potential applicationsinclude serial or parallel data transmission, cabledperipheral buses with twin axial, ribbon, ortwisted-pair cabling. These devices are suitablefor FAST-20 SCSI and can transmit or receivedata pulses as short as 25 ns, with skew lessthan 3 ns.These devices combine three 3-state differentialline drivers and three differential input linereceivers, all of which operate from a single 5-Vpower supply.The driver differential outputs and the receiverdifferential inputs are connected internally to formthree differential input/output (I/O) bus ports thatare designed to offer minimum loading to the buswhenever the driver is disabled or VCC = 0. Theseports feature a wide common-mode voltage rangemaking the device suitable for party-lineapplications over long cable runs.

    標簽: 170 LBC SN TRIP

    上傳時間: 2013-10-13

    上傳用戶:ytulpx

主站蜘蛛池模板: 慈溪市| 四子王旗| 方山县| 陇南市| 会同县| 乐业县| 横峰县| 镇江市| 元阳县| 观塘区| 福泉市| 甘德县| 延庆县| 武山县| 柳河县| 马山县| 吴江市| 三亚市| 名山县| 洪洞县| 安义县| 奇台县| 华安县| 旺苍县| 若尔盖县| 枣强县| 韩城市| 赤峰市| 连云港市| 辽源市| 荔波县| 沐川县| 盐山县| 五华县| 迭部县| 普宁市| 司法| 闻喜县| 昭觉县| 泰安市| 平乡县|