unsigned char WriteInData(unsigned char Address,unsigned char DataByte) { unsigned char mark WREN() Write_Byte(0x02) Write_Byte(Address) Write_Byte(DataByte) //NOP() X25_cs=1 lag(3000) mark=Read_Byte(Address) if(DataByte==mark) SystemError=0 if(mark!=DataByte) SystemError=1 // return(SystemError) } //虽然是一读一写,但是其中暗藏杀机,让人很难调通。一定注意接口的位置!呵呵!不信你就按普通的SPI程序方法写写试试!
标签: unsigned char WriteInData DataByte
上传时间: 2016-12-14
上传用户:invtnewer
简易文本编辑器。在出现的界面中输入任意文本内容,利用DEL键、BACKSPACE键、HOME键、END键、上下左右光标键对文本进行全屏幕编辑,按f1键激活菜单file,下移光标,选择save,输入文件名。也可以选择FILE菜单的其他菜单项,他们的功能均可实现。按f10激活帮助,按ESC键退出帮助。
上传时间: 2014-01-16
上传用户:gonuiln
zlibyou can found an optimized version of Zlib 1.1.4 that you can embed into every Delphi executable without use external dlls. Further I have build a little example hoping to aid "young" Delphi programmers getting in trouble with streams... Please let me know if you ll discover errors. These objects and sources are targeted for executing into P6+ CPU core, and Delphi5-6-7-x software. Benchmarks show this zlib 40% average faster than native DLL distribution and 100% reliable.
标签: executable can optimized zlibyou
上传时间: 2016-12-19
上传用户:lili123
This function calculates Akaike s final prediction error % estimate of the average generalization error. % % [FPE,deff,varest,H] = fpe(NetDef,W1,W2,PHI,Y,trparms) produces the % final prediction error estimate (fpe), the effective number of % weights in the network if the network has been trained with % weight decay, an estimate of the noise variance, and the Gauss-Newton % Hessian. %
标签: generalization calculates prediction function
上传时间: 2014-12-03
上传用户:maizezhen
This function calculates Akaike s final prediction error % estimate of the average generalization error for network % models generated by NNARX, NNOE, NNARMAX1+2, or their recursive % counterparts. % % [FPE,deff,varest,H] = nnfpe(method,NetDef,W1,W2,U,Y,NN,trparms,skip,Chat) % produces the final prediction error estimate (fpe), the effective number % of weights in the network if it has been trained with weight decay, % an estimate of the noise variance, and the Gauss-Newton Hessian. %
标签: generalization calculates prediction function
上传时间: 2016-12-27
上传用户:脚趾头
The AVRcam source files were built using the WinAVR distribution (version 3.3.1 of GCC). I haven t tested other versions of GCC, but they should compile without too much difficulty. * The source files for the AVRcam had the author name and copyright information added back into them after the judging of the project, since it states in the competition rules that the author s name can not be present during their inspection. * The included source files are the ones that were submitted for the entry into the Circuit Cellar contest. I have continued to develop the AVRcam, and have added several new features (such as ignoring objects that aren t larger than a minimum size, removing tracked objects that overlap with each, and some general optimizations). If you are interested in the latest source, email me at john@jrobot.net * For more info about the AVRcam, check out http://www.jrobot.net John Orlando August 20, 2004
标签: distribution version AVRcam source
上传时间: 2016-12-30
上传用户:GavinNeko
Euler函数: m = p1^r1 * p2^r2 * …… * pn^rn ai >= 1 , 1 <= i <= n Euler函数: 定义:phi(m) 表示小于等于m并且与m互质的正整数的个数。 phi(m) = p1^(r1-1)*(p1-1) * p2^(r2-1)*(p2-1) * …… * pn^(rn-1)*(pn-1) = m*(1 - 1/p1)*(1 - 1/p2)*……*(1 - 1/pn) = p1^(r1-1)*p2^(r2-1)* …… * pn^(rn-1)*phi(p1*p2*……*pn) 定理:若(a , m) = 1 则有 a^phi(m) = 1 (mod m) 即a^phi(m) - 1 整出m 在实际代码中可以用类似素数筛法求出 for (i = 1 i < MAXN i++) phi[i] = i for (i = 2 i < MAXN i++) if (phi[i] == i) { for (j = i j < MAXN j += i) { phi[j] /= i phi[j] *= i - 1 } } 容斥原理:定义phi(p) 为比p小的与p互素的数的个数 设n的素因子有p1, p2, p3, … pk 包含p1, p2…的个数为n/p1, n/p2… 包含p1*p2, p2*p3…的个数为n/(p1*p2)… phi(n) = n - sigm_[i = 1](n/pi) + sigm_[i!=j](n/(pi*pj)) - …… +- n/(p1*p2……pk) = n*(1 - 1/p1)*(1 - 1/p2)*……*(1 - 1/pk)
上传时间: 2014-01-10
上传用户:wkchong
#include<stdio.h> #include<string.h> #include<limits.h> #include<unistd.h> #include<sys/types.h> #define PROMPT_STRING "[myshell]$" #define QUIT_STRING "exit\n" static char inbuf[MAX_CANON] char * g_ptr char * g_lim extern void yylex() int main (void){ for( ){ if(fputs(PROMPT_STRING,stdout)==EOF) continue if(fgets(inbuf,MAX_CANON,stdin)==NULL) continue if(strcmp(inbuf,QUIT_STRING)==0) break g_ptr = inbuf g_lim = inbuf + strlen(inbuf) yylex() } return 0 }
上传时间: 2016-12-31
上传用户:colinal
MS Visual Studio .NET.rar frame.CombinedTransformationMatrix = frame.TransformationMatrix * parentMatrix if (frame.FrameSibling != null) { UpdateFrameMatrices((FrameDerived)frame.FrameSibling, parentMatrix) } if (frame.FrameFirstChild != null) { UpdateFrameMatrices((FrameDerived)frame.FrameFirstChild, frame.CombinedTransformationMatrix) }
标签: CombinedTransformationMatrix frame TransformationMatrix Visual
上传时间: 2017-01-01
上传用户:daguda
编写一个词法器,让你输入的代码有合适的标号如:if标号为1,a标号为2,;标号为3 <,>标号为4.等等。
上传时间: 2013-12-06
上传用户:aeiouetla