虫虫首页| 资源下载| 资源专辑| 精品软件
登录| 注册

Micrium-NXP-<b>uCOS-i</b>I-LPC

  • 名称:read2543 功能:TLC2543驱动模块 输入参数:port通道号 输出参数:ad转换值 *************************************/

    名称: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) }

    标签: 2543 read port TLC

    上传时间: 2016-01-21

    上传用户:R50974

  • 设T[0:n-1]是n个元素的一个数组。对任一元素x

    设T[0:n-1]是n个元素的一个数组。对任一元素x,设S(x)={i|T[i]=x}。当|S(x)|>n/2时,称x为T的主元素。设计一个线性时间算法,确定T[0:n]是否有一个主元素。

    标签: 元素 数组

    上传时间: 2014-01-08

    上传用户:daoxiang126

  • 设T[0:n-1]是n个元素的一个数组。对任一元素x

    设T[0:n-1]是n个元素的一个数组。对任一元素x,设S(x)={i|T[i]=x}。当|S(x)|>n/2时,称x为T的主元素。设计一个线性时间算法,确定T[0:n]是否有一个主元素。

    标签: 元素 数组

    上传时间: 2013-12-13

    上传用户:2525775

  • out< "please input the number of the nodes"<<endl cin>>nodesNum cout<<"pl

    out< "please input the number of the nodes"<<endl cin>>nodesNum cout<<"please input the graph"<<endl for( i = 1 i<=nodesNum i++) for( j = 1 j <= nodesNum j++) cin>>graph[i][j] */

    标签: lt the nodesNum number

    上传时间: 2013-11-29

    上传用户:libinxny

  • 假设在一个ad hoc网络中

    假设在一个ad hoc网络中,移动节点的发射功率PTx总是恒定的。要发送数据的移动节点总是先监听信道,测量接收到的信号功率X,其中X= I + N, I为接收到的干扰,N是噪声。移动节点只有在X<INThre时,才可以发射。式中,INThre为背景噪声门限。 在仿真中,我们规定每个移动节点的发射功率是常数,PTx = 1W;接收节点接收机的灵敏度Smin = -80 dBm;信号质量 min = 2 dB;系统的背景噪声门限INThre = 1.2e-10。

    标签: hoc 网络

    上传时间: 2016-03-16

    上传用户:sevenbestfei

  • 根据有无固定基础设施

    根据有无固定基础设施,无线局域网又可分为BSS (Basic Service Set)和IBSS (Independent Basic Service Set)。我们要研究的ad hoc网络属于后者。假设在一个ad hoc网络中,移动节点的发射功率PTx总是恒定的。要发送数据的移动节点总是先监听信道,测量接收到的信号功率X,其中X= I + N, I为接收到的干扰,N是噪声。移动节点只有在X<INThre时,才可以发射。式中,INThre为背景噪声门限。 在仿真中,我们规定每个移动节点的发射功率是常数,PTx = 1W;接收节点接收机的灵敏度Smin = -80 dBm;信号质量 min = 2 dB;系统的背景噪声门限INThre = 1.2e-10。

    标签:

    上传时间: 2013-12-19

    上传用户:顶得柱

  • 用游标的方法实现对称差的计算

    用游标的方法实现对称差的计算,即 (A-B)+(B-A)

    标签: 对称 计算

    上传时间: 2016-05-23

    上传用户:远远ssad

  • RMQ问题是指:对于长度为n的数列A

    RMQ问题是指:对于长度为n的数列A,回答若干询问RMQ(A,i,j)(i,j<=n),返回数列A中下标在[i,j]里的最小值下标。

    标签: RMQ 长度 数列

    上传时间: 2013-12-26

    上传用户:rocwangdp

  • #include intvcon 输出电压变量 sbitDIN=0x91 定义P2.1为串行数据口 sbitCLK=0x92;P2.2为串行时钟端 sbitCS=0x93 P2.3为片选端

    #include intvcon 输出电压变量 sbitDIN=0x91 定义P2.1为串行数据口 sbitCLK=0x92;P2.2为串行时钟端 sbitCS=0x93 P2.3为片选端 voiddac5618(intvcon)TLC5618DAC子程序,三线串行方式 { chari intsvcon svcon=vcon|0x8000 vcon最高位置1,选择 TLC5618的A通道 CS=0 置5618的CS=0,允许片选 for(i=0 i<16 i++) { DIN=svcon&0x8000 串行方式送16位 数据 svcon<<=1; CLK=0; CLK=1; } CS=1 禁止片选 return } voidmain0 { dac5618(0x7FF) }

    标签: include intvcon sbitDIN sbitCLK

    上传时间: 2016-06-15

    上传用户:wsf950131

  • AutomaticPropertiesDefaultValues Article_src.zip PropertyInfo[] props = o.GetType().GetPropert

    AutomaticPropertiesDefaultValues Article_src.zip PropertyInfo[] props = o.GetType().GetProperties(BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.Static) for (int i = 0 i < props.Length i++) { PropertyInfo prop = props[i] if (prop.GetCustomAttributes(true).Length > 0) { object[] defaultValueAttribute = prop.GetCustomAttributes(typeof(DefaultValueAttribute), true) if (defaultValueAttribute != null) { DefaultValueAttribute dva = defaultValueAttribute[0] as DefaultValueAttribute if(dva != null) prop.SetValue(o, dva.Value, null) }

    标签: AutomaticPropertiesDefaultValues PropertyInfo Article_src GetPropert

    上传时间: 2014-11-22

    上传用户:xaijhqx