温湿度传感器 sht11 仿真程序 sBIt out =P3^0; //加热口 //sBIt input =P1^1;//检测口 //sBIt speek =P2^0;//报警 sBIt clo =P3^7;//时钟 sBIt ST =P3^5;//开始 sBIt EOC =P3^6;//成功信号 sBIt gwei =P3^4;//个位 sBIt swei =P3^3;//十位 sBIt bwei =P3^2;//百位 sBIt qwei =P3^1;//千位 sBIt speak =P0^0;//报警音 sBIt bjled =P0^1;//报警灯 sBIt zcled =P0^2;//正常LED int count; uchar xianzhi;//取转换结果 uchar seth;//高时间 uchar setl;//低时间 uchar seth_mi;//高时间 uchar setl_mi;//低时间 BIt hlbz;//高低标志 BIt clbz; BIt spbz; ///定时中断程序/// void t0 (void) interrupt 1 using 0 { TH0=(65536-200)/256;//5ms*200=1000ms=1s TL0=(65536-200)%256; clo=!clo;//产生时钟 if(count>5000) { if(hlbz) { if(seth_mi==0){seth_mi=seth;hlbz=0;out=0;} else seth_mi--; } if(!hlbz) { if(setl_mi==0){setl_mi=setl;hlbz=1;out=1;} else setl_mi--; } count=0; } else count++; } ///////////// ///////延时/////// delay(int i) { while(--i); } ///////显示处理/////// xianshi() { int abcd=0; int i; for (i=0;i<5;i++) { abcd=xianzhi; gwei=1; swei=1; bwei=1; qwei=1; P1=dispcode[abcd/1000]; qwei=0; delay(70); qwei=1; abcd=abcd%1000; P1=dispcode[abcd/100]; bwei=0; delay(70); bwei=1; abcd=abcd%100; P1=dispcode[abcd/10]; swei=0; delay(70); swei=1; abcd=abcd%10; P1=dispcode[abcd]; gwei=0; delay(70); gwei=1; } } doing() { if(xianzhi>100) {bjled=0;speak=1;zcled=1;} else {bjled=1;speak=0;zcled=0;} } void main(void) { seth=60;//h60秒 setl=90;//l90秒 seth_mi=60;//h60秒 setl_mi=90;//l90秒 TMOD=0X01;//定时0 16位工作模式 TH0=(65536-200)/256; TL0=(65536-200)%256; TR0=1; //开始计时 ET0=1; //开定时0中断 EA=1; //开全中断 while(1) { ST=0; _nop_(); ST=1; _nop_(); ST=0; // EOC=0; xianshi(); while(!EOC) { xianshi(); } xianzhi=P2; xianshi(); doing(); } }
上传时间: 2013-11-07
上传用户:我们的船长
介绍ISE13.1 iMPACT 下载BIt文件 和mcs文件的详细步骤
上传时间: 2013-11-17
上传用户:helmos
这一节的目的是使用XPS为ARM PS 处理系统 添加额外的IP。从IP Catalog 标签添加GPIO,并与ZedBoard板子上的8个LED灯相连。当系统建立完后,产生BItstream,并对外设进行测试。本资料为源代码,原文设计过程详见:【 玩转赛灵思Zedboard开发板(4):如何使用自带外设IP让ARM PS访问FPGA?】 硬件平台:Digilent ZedBoard 开发环境:Windows XP 32 BIt 软件: XPS 14.2 +SDK 14.2
上传时间: 2013-11-06
上传用户:yuchunhai1990
Express Mode uses an 8-BIt wide bus path for fast configuration of Xilinx FPGAs. Thisapplication note provides information on how to perform Express configuration specifically forthe Spartan™-XL family. The Express mode signals and their associated timing are defined.The steps of Express configuration are described in detail, followed by detailed instructions thatshow how to implement the configuration circui
标签: Spartan-XL Express XAPP FPGA
上传时间: 2015-01-02
上传用户:nanxia
The introduction of Spartan-3™ devices has createdmultiple changes in the evolution of embedded controldesigns and pushed processing capabilities to the “almostfreestage.” With these new FPGAs falling under $20, involume, with over 1 million system gates, and under $5for 100K gate-level units, any design with programmablelogic has a readily available 8- or 16-BIt processor costingless than 75 cents and 32-BIt processor for less than $1.50.
上传时间: 2013-10-21
上传用户:ligi201200
The Virtex™-4 user access register (USR_ACCESS_VIRTEX4) is a 32-BIt register thatprovides direct access to BItstream data by the FPGA fabric. It is useful for loadingPowerPC™ 405 (PPC405) processor caches and/or other data into the FPGA after the FPGAhas been configured, thus achieving partial reconfiguration. The USR_ACCESS_VIRTEX4register is programmed through the BItstream with a command that writes a series of 32-BItwords.
标签: USR_ACCESS PowerPC XAPP 719
上传时间: 2013-12-23
上传用户:yuanwenjiao
WP409利用Xilinx FPGA打造出高端比特精度和周期精度浮点DSP算法实现方案: High-Level Implementation of BIt- and Cycle-Accurate Floating-Point DSP Algorithms with Xilinx FPGAs
上传时间: 2013-10-21
上传用户:huql11633
SRAM-based FPGAs are non-volatile devices. Upon powerup, They are required to be programmed from an external source. This procedure allows anyone to easily monitor the BIt-stream, and clone the device. The problem then becomes how can you effectively protect your intellectual property from others in an architecture where the part is externally programmed?
上传时间: 2013-10-20
上传用户:磊子226
各种功能的计数器实例(VHDL源代码):ENTITY counters IS PORT ( d : IN INTEGER RANGE 0 TO 255; clk : IN BIt; clear : IN BIt; ld : IN BIt; enable : IN BIt; up_down : IN BIt; qa : OUT INTEGER RANGE 0 TO 255; qb : OUT INTEGER RANGE 0 TO 255; qc : OUT INTEGER RANGE 0 TO 255; qd : OUT INTEGER RANGE 0 TO 255; qe : OUT INTEGER RANGE 0 TO 255; qf : OUT INTEGER RANGE 0 TO 255; qg : OUT INTEGER RANGE 0 TO 255; qh : OUT INTEGER RANGE 0 TO 255; qi : OUT INTEGER RANGE 0 TO 255;
上传时间: 2013-10-09
上传用户:松毓336
特点 显示范围0至19999(瞬間量),0至999999999(9位數累積量)可任意规划 精確度0.03%滿刻度(瞬間量) 頻率输入范围 0.01Hz 至 10KHz 瞬間量与累积量時間基數可任意规划(1 或 60 或 3600 秒) 瞬間量之最高显示值可任意规划(0至19999) 累积量之输入脈波比例刻画調整可任意规划(0.00001至9999.99999) 具有二組警報功能 15 BIt 隔离类比输出 数位RS-485 界面 数位脈波同步输出功能
上传时间: 2014-11-07
上传用户:xaijhqx