这个例子如果运行,将在仿真的PC窗口中的第1,2,3行显示一些信息后,在随机位置显示 1 ~ 5 .由于keil c51默认不支持重入函数,它的重入函数使用仿真的重入栈而不使用系统栈,而Small RTOS 51没有进行重入栈管理,所以在TaskA~TaskE虽然及其相似,但不能合并. 注意:(1)在KEIL C51 工程中,我已经把输出文件目录设在e:\temp中,您可以在Project->Options for Target "Target 1"的output页点击Select Folder for Objects...和Listing页点击Select Folder for Listing...改变. (2)编译时会有5个警告,其中一个是因为没有使用一个系统函数OSSendSignal引起,它可以忽略.另4个是禁止任务间变量覆盖分析引起,必须忽略.感谢网友John X. Liu,在这个例子中我使用了他编写的仿真(dllPc51Emu.dll),这个dll原来是为他移植的Ucos-ii for keil c51的例子编写. (3)Pc51Emu.dll在KEIL C51 V6.23 V7.00工作不正常.
上传时间: 2015-05-29
上传用户:无聊来刷下
这个例子是例子2的另一种写法(但任务数量不同),它使用了最高优先级任务作为显示任务,全局变量ShowChar作为参数.函数TaskB是优先级1~10的任务函数,因为没有使用局部变量,这些任务可以用一个函数. 注意:(1)在KEIL C51 工程中,我已经把输出文件目录设在e:\temp中,您可以在Project->Options for Target "Target 1"的output页点击Select Folder for Objects...和Listing页点击Select Folder for Listing...改变. 感谢网友John X. Liu,在这个例子中我使用了他编写的仿真dll(Pc51Emu.dll),这个dll原来是为他移植的Ucos-ii for keil c51的例子编写. (2)Pc51Emu.dll在KEIL C51 V6.23 V7.00工作不正常.
上传时间: 2015-05-29
上传用户:asddsd
该文件是AVR_Studio与ICCavr源程序以及破戒方法,对于ATMEL单片机AVR系列单片机非常有用,用ICCavr编译程序,在使用studio和JTAG下载器编译生成的*.HEX文件
标签: AVR_Studio ICCavr 源程序
上传时间: 2013-12-06
上传用户:watch100
2^x mod n = 1 acm竞赛题 Give a number n, find the minimum x that satisfies 2^x mod n = 1. Input One positive integer on each line, the value of n. Output If the minimum x exists, print a line with 2^x mod n = 1. Print 2^? mod n = 1 otherwise. You should replace x and n with specific numbers. Sample Input 2 5 Sample Output 2^? mod 2 = 1 2^4 mod 5 = 1
标签: mod satisfies minimum number
上传时间: 2015-06-02
上传用户:qlpqlq
* * Input * bin_data : binary data * bin_size : binary data length * Mode : operation mode * BASE64_NeedCRLF ---- Need a CRLF every 64 base64-character * BASE64_NotCRLF ---- Need not CRLF between 64 base64-character * * Output * char data * char data length * * Return * 0: success -1: error
标签: binary data operation bin_data
上传时间: 2015-06-04
上传用户:ZJX5201314
Frequency Scale Conversion From f To f Scale frq2mel mel2frq mel The mel scale is based on the human perception of sinewave pitch. frq2erb erb2frq erb The erb scale is based on the equivalent rectangular bandwidths of the human ear. frq2midi midi2frq midi The midi standard specifies a numbering of semitones with middle C being 60. They can use the normal equal tempered scale or else the pythagorean scale of just intonation. They will in addition output note names in a character format.
标签: Scale Conversion Frequency mel
上传时间: 2015-06-07
上传用户:
Routine mampres: To obtain amplitude response from h(exp(jw)). input parameters: h :n dimensioned complex array. the frequency response is stored in h(0) to h(n-1). n :the dimension of h and amp. fs :sampling frequency (Hz). iamp:If iamp=0: The Amplitude Res. amp(k)=abs(h(k)) If iamp=1: The Amplitude Res. amp(k)=20.*alog10(abs(h(k))). output parameters: amp :n dimensioned real array. the amplitude-frequency response is stored in amp(0) to amp(n-1). Note: this program will generate a data file "filename.dat" . in chapter 2
标签: dimensione parameters amplitude response
上传时间: 2013-12-19
上传用户:xfbs821
Routine mar1psd: To compute the power spectum by AR-model parameters. Input parameters: ip : AR model order (integer) ep : White noise variance of model input (real) ts : Sample interval in seconds (real) a : Complex array of AR parameters a(0) to a(ip) Output parameters: psdr : Real array of power spectral density values psdi : Real work array in chapter 12
标签: parameters AR-model Routine mar1psd
上传时间: 2015-06-09
上传用户:playboys0
寻找函数的全局极小值,global minimization of contrast function with random restarts the data are assumed whitened (i.e. with identity covariance matrix). The output is such that Wopt*x are the independent sources.
上传时间: 2013-12-15
上传用户:康郎
STC-Download/STC-ISP下载工具(STC89C51单片机在线下载器) 必须组件: SPComm(必须), VCLSkin(可以去掉) ------------------------------------------ 23:13 2005年7月4日 ------------------- 1.增加了重复下载功能,便于多个芯片下载 2.改进连机搜索算法 13:23 2005年7月4日 ------------------- 1.增加了Hex文件功能,可以直接载入Hex文件 2.修改了Bin文件载入功能,实现Bin文件直接载入,Hex解码到内存再载入 1:12 2005年7月4日 ------------------- 1.优化下载速度,将波特率由原来的1200提高到57600 2.增强芯片识别率,只要以16H结尾,都是芯片合法回应值 3.增加芯片版本识别,可以烧写固件版本2.9和3.0和芯片 4.关闭调试串输出,状态栏只显示操作信息和时间 -------------------------------- 作者: 吴江涛 Http://www.ktao.net E-Mail: ik3000cn@126.com
标签: STC-Download STC-ISP VCLSkin SPComm
上传时间: 2015-06-14
上传用户:thuyenvinh