名稱:read2543 功能:TLC2543驅動模塊 輸入參數:port通道號 輸出參數:ad轉換值 *************************************/ uint read2543(uchar port) { uint ad=0,i CLOCK=0 _CS=0 port<<=4 for(i=0 i<12 i++) { if(D_OUT) ad|=0x01 D_IN=(bit)(port&0x80) CLOCK=1 delay(3) CLOCK=0 delay(3) port<<=1 ad<<=1 } _CS=1 ad>>=1 return(ad) }
上傳時間: 2016-01-21
上傳用戶:R50974
This program compress and recostruct using wavelets. We can select level of decomposition(here maximum 4 levels are given) of images using selected wavelet. For eg:-wavelets can be haar, db1, db2,dmey............... Decomposition can be viewed in figure. (Please note that select 256X256 image for better result.) Then compression can performed, PERFL2 give compression score. Then reconstruction can be performed. Each decompsition we can choose different threshold values. For each threshold value we can calculate mse,psnr,pq(picture quality), bit ratio etc. To get pq install pqs function .
標簽: decomposition recostruct compress wavelets
上傳時間: 2016-01-22
上傳用戶:liuchee
實用的單片機開發與應用程序,包括:中值濾波子程序,AD轉換類程序,16、32位整型數開方,單片機音樂程序--祝你平安。對初學者很有幫助的。MCU development and practical applications, including: median filter subroutine, AD converter type of proceeding, 16,32-bit integer number prescribing, SCM music program - I wish you peace. Helpful for beginners.
上傳時間: 2016-01-27
上傳用戶:sunjet
This the second tutorial of the Writing Device Drivers series. There seems to be a lot of interest in the topic, so this article will pick up where the first left off. The main focus of these articles will be to build up little by little the knowledge needed to write device drivers. In this article, we will be building on the same example source code used in part one. In this article, we will expand on that code to include Read functionality, Handle Input/Ouput Controls also known as IOCTLs, and learn a bit more about IRPs.
標簽: the interest tutorial Drivers
上傳時間: 2016-01-28
上傳用戶:lmeeworm
matlab生成m序列的函數 原來那個效率太低,主要是因為實際應用并不需要生成太長的m序列,加入了需求長度,能有效減少運行時間。25級的移位寄存器,運行了一個小時都沒有出來一周期,我僅僅需要三千bit而已。改進版:
上傳時間: 2014-01-27
上傳用戶:stampede
CHAPT13\AnsiWinTerm.cpp Class used in Win32 terminal emulation CHAPT13\AnsiWinTerm.h Header file for the AnsiWinTerm class CHAPT13\Chapt13.cpp 32-bit test program of terminal emulation CHAPT13\Chapt13.dsp Visual C++ project file CHAPT13\Chapt13.dsw Visual C++ workspace file CHAPT13\Chapt13.rc The resource file used in the test program CHAPT13\resource.h IDs defined in the resource file CHAPT13\Win32Term.cpp The Win32 general purpose terminal class CHAPT13\Win32Term.h Definition of the class CHAPT13\Debug\Chapt13.exe 32-bit executable of the test program.
標簽: AnsiWinTerm CHAPT emulation terminal
上傳時間: 2016-02-03
上傳用戶:秦莞爾w
CHAPT14\MODEM.CPP Implementation of the Modem class CHAPT14\MODEM.H Declarations of the Modem class CHAPT14\TSTMODEM.CPP 16-bit test program for the Modem class CHAPT14\TSTMODEM.EXE 16-bit executable of the test program CHAPT14\TSTMODEM.MAK Make file for use with Borland or Microsoft C
上傳時間: 2013-12-24
上傳用戶:壞天使kk
G729編碼和解碼的Matlab源程序 調用方法: 1.需要編碼時,在 Matlab命令行下輸入"G729code(speech)"(請務必保證 speech是已經存在在 Matlab工作區的一個行向量,其中是語音數據),然后你會在你的文件夾下看到一個"coding.bit"的文件。 2.需要解碼時,把"coding.bit"的文件復制到"G729 decoder"的目錄下,在Matlab命令行下輸入"G729decodermain",然后你會在文件夾下看到"syn_speech.wav",那就是重構語音。 enjoy it!
上傳時間: 2013-12-22
上傳用戶:GavinNeko
/*SPI規范:Data is always clocked into the device on the rising edge of SCK a-*/ /* nd clocked out of the device on the falling edge of SCK.All instruction-*/ /* s,addresses and data are transferred with the most significant bit(MSB) */ /* first.
上傳時間: 2016-02-19
上傳用戶:遠遠ssad
des加密的數據一般要是56bit的整數倍,本程序通過把后面不足56bit的bit反向加密得到完整的加密,而不增加加密后的長度
上傳時間: 2014-01-08
上傳用戶:2404