As environmental concerns over traditional lighting increaseand the price of LEDs decreases, high power LEDsare fast becoming a popular lighting solution for offl ineapplications. In order to meet the requirements of offl inelighting—such as high power factor, high effi ciency, isolationand TRIAC dimmer compatibility—prior LED driversused many external discrete components, resulting incumbersome solutions. The LT®3799 solves complexity,space and performance problems by integrating all therequired functions for offl ine LED lighting.
上傳時間: 2013-10-13
上傳用戶:dongqiangqiang
附件為: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(); } */ }
上傳時間: 2013-11-08
上傳用戶:aeiouetla
CLK:時鐘信號 CMD:雙向命令和響應信號 DAT0-3:雙向數據信號 VDD,VSS:電源和地信號 SD模式下允許有一個主機, 多個從機(即多個卡), 主機可以給從機分別地址. 主機發 命令有些命令是發送給指定的從機,有些命令可以以廣播形式發送. SD模式下可以選擇總線寬度, 即選用幾根DAT信號線, 可以在主機初始化后設置
標簽: 協議
上傳時間: 2013-10-11
上傳用戶:daxigua
This application note describes how to decode standard DTMF tones using the minimum number of external discrete components and a PIC. The two examples use a PIC which has an 8 bit timer and either a comparator or an ADC, although it can be modified for use on a PIC which has only digital I/O. The Appendices have example code for the 16C662 (with comparator) and 16F877 (using the ADC). As the majority of the Digital Signal Processing is done in software, little is required in the way of external signal conditioning. Software techniques are used to model the individual elements of a DTMF Decoder IC.
上傳時間: 2013-11-21
上傳用戶:zhaoke2005
51單片機及其應用:1.1.1 電子計算機的問世及其經典結構1946年2月15日,第一臺電子數字計算機問世,這標志著計算機時代的到來。(CALCULATOR)ENIAC(“埃尼阿克”)◆ENIAC是電子管計算機,時鐘頻率僅有100 KHz,但能在1秒鐘的時間內完成5000次加法運算。◆與現代的計算機相比,有許多不足,但它的問世開創了計算機科學技術的新紀元,對人類的生產和生活方式產生了巨大的影響 。 匈牙利籍數學家馮·諾依曼在方案的設計上做出了重要的貢獻。1946年6月,他又提出了“程序存儲”和“二進制運算”的思想,進一步構建了計算機由運算器、控制器、存儲器、輸入設備和輸出設備組成這一計算機的經典結構。(EDVAC-ELECTRONIC DISCRETE VARIABLE AUTOMATIC COMPUTER)二、微型計算機的應用形態 從應用形態上,微機可以分成三種:
標簽: 51單片機
上傳時間: 2013-12-20
上傳用戶:d815185728
#include <reg51.h>#include<intrins.h> #define BUSY1 (DQ1==0) sbit DQ1 = P0^4; unsigned char idata TMP; unsigned char idata TMP_d; unsigned char f; void wr_ds18_1(char dat);unsigned char rd_ds18_1(); /***************延時程序,單位us,大于10us*************/void time_delay(unsigned char time){ time=time-10; time=time/6; while(time!=0)time--;} /*****************************************************//* reset ds18b20 *//*****************************************************/void ds_reset_1(void){ unsigned char idata count=0; DQ1=0; time_delay(240); time_delay(240); DQ1=1; return;}
上傳時間: 2013-10-29
上傳用戶:sssnaxie
一款處理漢字點陣字庫的軟件,處理后的點陣字庫可用于點陣液晶、LED漢顯等領域。 支持 1024x1024以內的任意點陣漢字支持 所有Windows字體支持 漢字大小調整支持 漢字位置調整支持 單個漢字字模生成支持 海量漢字批量字模生成支持 按漢語拼音排序支持 橫掃縱掃兩種掃描方式生成數據支持 8bit(字節)"ZN"掃描方式支持 4-32bit多種數據長度分組選擇支持 字模數據取反支持 字節按位倒置支持 漢語拼音自動命名C語言數組格式支持 漢語拼音自動命名匯編語言DB表格式支持 自動編號數組命名及自動編號匯編DB表命名方式支持 圖片Logo點陣數據生成支持 二進制數據字庫DAT和BIN文件的生成支持 二進制字庫文件索引(兩個字節索引)支持 GB2312 字符集選擇導入及字庫生成支持 GBK字符集選擇導入及字庫生成(僅供參考)支持 繁簡字體自由轉換支持 單字節字符支持RS232串口通訊、可把字模數據發送到移動存儲設備,集成漢字自動識別功能,清除非漢字字符,提取漢字功能,漢字字模點陣數據批量生成工具可用作開發輔助工具,得到精減漢字庫,節約有限的ROM空間資源。也可用作帶點陣LCD顯示系統的漢化工具或其它需要漢字點陣數據的地方。
上傳時間: 2014-01-24
上傳用戶:menggesimida
§1、安裝: SPB15.2 CD1~3,安裝1、2,第3為庫,不安裝 License安裝: 設置環境變量lm_license_file D:\Cadence\license.dat 修改license中SERVER yyh ANY 5280為SERVER zeng ANY 5280 §2、用Design Entry CIS(Capture)設計原理圖 進入Design Entry CIS Studio 設置操作環境\Options\Preferencses: 顏色:colors/Print 格子:Grid Display 雜項:Miscellaneous .........常取默認值
上傳時間: 2013-11-13
上傳用戶:wangchong
全能音頻格式轉換器為歌迷朋友提供了優秀的音頻格式轉換解決方案,可以幫您實現不同音頻格式的轉換,從視頻中提取音頻轉換為MP3、WMA、WAV、MP2、AAC、AMR等音頻格式。 全能音頻格式轉換器可以從視頻中提取音頻,支持幾乎所有的視頻格式包括AVI、MPEG、WMV、ASF、FLV、MKV、MP4、3GP、H.264、DAT、VOB、MTS、F4V、MOD、TOD、DV、M2TS等視頻格式。 您可以在轉換輸出音頻時,自由設置音頻采樣率、音頻品質等音頻參數,指定時間轉換輸出喜歡的音頻片段。提供免費下載旭日全能音頻格式轉換器,來體驗一下高質量的音頻轉換。
標簽: 音頻格式轉換器
上傳時間: 2014-12-31
上傳用戶:Aidane
通過以太網遠程配置Nios II 處理器 應用筆記 Firmware in embedded hardware systems is frequently updated over the Ethernet. For embedded systems that comprise a discrete microprocessor and the devices it controls, the firmware is the software image run by the microprocessor. When the embedded system includes an FPGA, firmware updates include updates of the hardware image on the FPGA. If the FPGA includes a Nios® II soft processor, you can upgrade both the Nios II processor—as part of the FPGA image—and the software that the Nios II processor runs, in a single remote configuration session.
上傳時間: 2013-11-22
上傳用戶:chaisz