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.
上傳時(shí)間: 2013-10-13
上傳用戶:dongqiangqiang
附件為:LCD12864顯示漢字和數(shù)字的程序與電路 /* 自定義延時(shí)子函數(shù) */ void delayms(uchar z) { int x,y; for(x=z;x>0;x--) for(y=110;y>0;y--); } /* 判斷LCD忙信號(hào)狀態(tài) */ void buys() { int dat; RW=1; RS=0; do { P0=0x00; E=1; dat=P0; E=0; dat=0x80 & dat; } while(!(dat==0x00)); } /* LCD寫(xiě)指令函數(shù) */ void w_com(uchar com) { //buys(); RW=0; RS=0; E=1; P0=com; E=0; } /* LCD寫(xiě)數(shù)據(jù)函數(shù) */ void w_date(uchar date) { //buys(); RW=0; RS=1; E=1; P0=date; E=0; } /* LCD選屏函數(shù) */ 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清屏函數(shù):清屏從第一頁(yè)的第一列開(kāi)始,總共8頁(yè),64列 */ void clear_screen(screen) { int x,y; select_screen(screen); //screen:0-選擇全屏,1-選擇左半屏,2-選擇右半屏 for(x=0xb8;x<0xc0;x++) //從0xb8-0xbf,共8頁(yè) { w_com(x); w_com(0x40); //列的初始地址是0x40 for(y=0;y<64;y++) { w_date(0x00); } } } /* LCD顯示漢字字庫(kù)函數(shù) */ void lcd_display_hanzi(uchar screen,uchar page,uchar col,uint mun) { //screen:選擇屏幕參數(shù),page:選擇頁(yè)參數(shù)0-3,col:選擇列參數(shù)0-3,mun:顯示第幾個(gè)漢字的參數(shù) 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顯示字符字庫(kù)函數(shù) */ void lcd_display_zifuk(uchar screen,uchar page,uchar col,uchar mun) { //screen:選擇屏幕參數(shù),page:選擇頁(yè)參數(shù)0-3,col:選擇列參數(shù)0-7,mun:顯示第幾個(gè)漢字的參數(shù) 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顯示數(shù)字字庫(kù)函數(shù) */ void lcd_display_shuzi(uchar screen,uchar page,uchar col,uchar mun) { //screen:選擇屏幕參數(shù),page:選擇頁(yè)參數(shù)0-3,col:選擇列參數(shù)0-7,mun:顯示第幾個(gè)漢字的參數(shù) 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初始化函數(shù) */ void lcd_init() { w_com(0x3f); //LCD開(kāi)顯示 w_com(0xc0); //LCD行初始地址,共64行 w_com(0xb8); //LCD頁(yè)初始地址,共8頁(yè) w_com(0x40); //LCD列初始地址,共64列 } /* LCD顯示主函數(shù) */ void main() { //第一行 int x; lcd_init(); //LCD初始化 clear_screen(0); //LCD清屏幕 lcd_display_shuzi(1,0,4,5); //LCD顯示數(shù)字 lcd_display_shuzi(1,0,5,1); //LCD顯示數(shù)字 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(); } */ }
標(biāo)簽: 12864 LCD 漢字 數(shù)字
上傳時(shí)間: 2013-11-08
上傳用戶:aeiouetla
CLK:時(shí)鐘信號(hào) CMD:雙向命令和響應(yīng)信號(hào) DAT0-3:雙向數(shù)據(jù)信號(hào) VDD,VSS:電源和地信號(hào) SD模式下允許有一個(gè)主機(jī), 多個(gè)從機(jī)(即多個(gè)卡), 主機(jī)可以給從機(jī)分別地址. 主機(jī)發(fā) 命令有些命令是發(fā)送給指定的從機(jī),有些命令可以以廣播形式發(fā)送. SD模式下可以選擇總線寬度, 即選用幾根DAT信號(hào)線, 可以在主機(jī)初始化后設(shè)置
標(biāo)簽: 協(xié)議
上傳時(shí)間: 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.
標(biāo)簽: Decoding DTMF with PIC
上傳時(shí)間: 2013-11-21
上傳用戶:zhaoke2005
51單片機(jī)及其應(yīng)用:1.1.1 電子計(jì)算機(jī)的問(wèn)世及其經(jīng)典結(jié)構(gòu)1946年2月15日,第一臺(tái)電子數(shù)字計(jì)算機(jī)問(wèn)世,這標(biāo)志著計(jì)算機(jī)時(shí)代的到來(lái)。(CALCULATOR)ENIAC(“埃尼阿克”)◆ENIAC是電子管計(jì)算機(jī),時(shí)鐘頻率僅有100 KHz,但能在1秒鐘的時(shí)間內(nèi)完成5000次加法運(yùn)算。◆與現(xiàn)代的計(jì)算機(jī)相比,有許多不足,但它的問(wèn)世開(kāi)創(chuàng)了計(jì)算機(jī)科學(xué)技術(shù)的新紀(jì)元,對(duì)人類的生產(chǎn)和生活方式產(chǎn)生了巨大的影響 。 匈牙利籍?dāng)?shù)學(xué)家馮·諾依曼在方案的設(shè)計(jì)上做出了重要的貢獻(xiàn)。1946年6月,他又提出了“程序存儲(chǔ)”和“二進(jìn)制運(yùn)算”的思想,進(jìn)一步構(gòu)建了計(jì)算機(jī)由運(yùn)算器、控制器、存儲(chǔ)器、輸入設(shè)備和輸出設(shè)備組成這一計(jì)算機(jī)的經(jīng)典結(jié)構(gòu)。(EDVAC-ELECTRONIC DISCRETE VARIABLE AUTOMATIC COMPUTER)二、微型計(jì)算機(jī)的應(yīng)用形態(tài) 從應(yīng)用形態(tài)上,微機(jī)可以分成三種:
標(biāo)簽: 51單片機(jī)
上傳時(shí)間: 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(); /***************延時(shí)程序,單位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;}
標(biāo)簽: 18b20 C51 芯片 溫度測(cè)量
上傳時(shí)間: 2013-10-29
上傳用戶:sssnaxie
一款處理漢字點(diǎn)陣字庫(kù)的軟件,處理后的點(diǎn)陣字庫(kù)可用于點(diǎn)陣液晶、LED漢顯等領(lǐng)域。 支持 1024x1024以內(nèi)的任意點(diǎn)陣漢字支持 所有Windows字體支持 漢字大小調(diào)整支持 漢字位置調(diào)整支持 單個(gè)漢字字模生成支持 海量漢字批量字模生成支持 按漢語(yǔ)拼音排序支持 橫掃縱掃兩種掃描方式生成數(shù)據(jù)支持 8bit(字節(jié))"ZN"掃描方式支持 4-32bit多種數(shù)據(jù)長(zhǎng)度分組選擇支持 字模數(shù)據(jù)取反支持 字節(jié)按位倒置支持 漢語(yǔ)拼音自動(dòng)命名C語(yǔ)言數(shù)組格式支持 漢語(yǔ)拼音自動(dòng)命名匯編語(yǔ)言DB表格式支持 自動(dòng)編號(hào)數(shù)組命名及自動(dòng)編號(hào)匯編DB表命名方式支持 圖片Logo點(diǎn)陣數(shù)據(jù)生成支持 二進(jìn)制數(shù)據(jù)字庫(kù)DAT和BIN文件的生成支持 二進(jìn)制字庫(kù)文件索引(兩個(gè)字節(jié)索引)支持 GB2312 字符集選擇導(dǎo)入及字庫(kù)生成支持 GBK字符集選擇導(dǎo)入及字庫(kù)生成(僅供參考)支持 繁簡(jiǎn)字體自由轉(zhuǎn)換支持 單字節(jié)字符支持RS232串口通訊、可把字模數(shù)據(jù)發(fā)送到移動(dòng)存儲(chǔ)設(shè)備,集成漢字自動(dòng)識(shí)別功能,清除非漢字字符,提取漢字功能,漢字字模點(diǎn)陣數(shù)據(jù)批量生成工具可用作開(kāi)發(fā)輔助工具,得到精減漢字庫(kù),節(jié)約有限的ROM空間資源。也可用作帶點(diǎn)陣LCD顯示系統(tǒng)的漢化工具或其它需要漢字點(diǎn)陣數(shù)據(jù)的地方。
標(biāo)簽: 5.3 漢字 字模 數(shù)據(jù)
上傳時(shí)間: 2014-01-24
上傳用戶:menggesimida
§1、安裝: SPB15.2 CD1~3,安裝1、2,第3為庫(kù),不安裝 License安裝: 設(shè)置環(huán)境變量lm_license_file D:\Cadence\license.dat 修改license中SERVER yyh ANY 5280為SERVER zeng ANY 5280 §2、用Design Entry CIS(Capture)設(shè)計(jì)原理圖 進(jìn)入Design Entry CIS Studio 設(shè)置操作環(huán)境\Options\Preferencses: 顏色:colors/Print 格子:Grid Display 雜項(xiàng):Miscellaneous .........常取默認(rèn)值
上傳時(shí)間: 2013-11-13
上傳用戶:wangchong
全能音頻格式轉(zhuǎn)換器為歌迷朋友提供了優(yōu)秀的音頻格式轉(zhuǎn)換解決方案,可以幫您實(shí)現(xiàn)不同音頻格式的轉(zhuǎn)換,從視頻中提取音頻轉(zhuǎn)換為MP3、WMA、WAV、MP2、AAC、AMR等音頻格式。 全能音頻格式轉(zhuǎn)換器可以從視頻中提取音頻,支持幾乎所有的視頻格式包括AVI、MPEG、WMV、ASF、FLV、MKV、MP4、3GP、H.264、DAT、VOB、MTS、F4V、MOD、TOD、DV、M2TS等視頻格式。 您可以在轉(zhuǎn)換輸出音頻時(shí),自由設(shè)置音頻采樣率、音頻品質(zhì)等音頻參數(shù),指定時(shí)間轉(zhuǎn)換輸出喜歡的音頻片段。提供免費(fèi)下載旭日全能音頻格式轉(zhuǎn)換器,來(lái)體驗(yàn)一下高質(zhì)量的音頻轉(zhuǎn)換。
標(biāo)簽: 音頻格式轉(zhuǎn)換器
上傳時(shí)間: 2014-12-31
上傳用戶:Aidane
通過(guò)以太網(wǎng)遠(yuǎn)程配置Nios II 處理器 應(yīng)用筆記 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.
標(biāo)簽: Nios 遠(yuǎn)程 處理器 應(yīng)用筆記
上傳時(shí)間: 2013-11-22
上傳用戶:chaisz
蟲(chóng)蟲(chóng)下載站版權(quán)所有 京ICP備2021023401號(hào)-1