單相逆變器光伏仿真程序
上傳時(shí)間: 2013-11-20
上傳用戶:362279997
溫濕度傳感器 sht11 仿真程序 sbit out =P3^0; //加熱口 //sbit input =P1^1;//檢測口 //sbit speek =P2^0;//報(bào)警 sbit clo =P3^7;//時(shí)鐘 sbit ST =P3^5;//開始 sbit EOC =P3^6;//成功信號(hào) sbit gwei =P3^4;//個(gè)位 sbit swei =P3^3;//十位 sbit bwei =P3^2;//百位 sbit qwei =P3^1;//千位 sbit speak =P0^0;//報(bào)警音 sbit bjled =P0^1;//報(bào)警燈 sbit zcled =P0^2;//正常LED int count; uchar xianzhi;//取轉(zhuǎn)換結(jié)果 uchar seth;//高時(shí)間 uchar setl;//低時(shí)間 uchar seth_mi;//高時(shí)間 uchar setl_mi;//低時(shí)間 bit hlbz;//高低標(biāo)志 bit clbz; bit spbz; ///定時(shí)中斷程序/// void t0 (void) interrupt 1 using 0 { TH0=(65536-200)/256;//5ms*200=1000ms=1s TL0=(65536-200)%256; clo=!clo;//產(chǎn)生時(shí)鐘 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++; } ///////////// ///////延時(shí)/////// 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;//定時(shí)0 16位工作模式 TH0=(65536-200)/256; TL0=(65536-200)%256; TR0=1; //開始計(jì)時(shí) ET0=1; //開定時(shí)0中斷 EA=1; //開全中斷 while(1) { ST=0; _nop_(); ST=1; _nop_(); ST=0; // EOC=0; xianshi(); while(!EOC) { xianshi(); } xianzhi=P2; xianshi(); doing(); } }
上傳時(shí)間: 2013-11-07
上傳用戶:我們的船長
常見USB接口已被封裝成庫,dxp 2004能夠直接打開,有需要的自己下。
上傳時(shí)間: 2013-11-03
上傳用戶:電子世界
USB接口控制器參考設(shè)計(jì),xilinx提供VHDL代碼 usb xilinx vhdl ; This program is free software; you can redistribute it and/or modify ; it under the terms of the GNU General Public License as published by ; the Free Software Foundation; either version 2 of the License, or ; (at your option) any later version. ; ; This program is distributed in the hope that it will be useful, ; but WITHOUT ANY WARRANTY; without even the implied warranty of ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ; GNU General Public License for more details. ; ; You should have received a copy of the GNU General Public License ; along with this program; if not, write to the Free Software ; Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
上傳時(shí)間: 2013-10-29
上傳用戶:zhouchang199
Proteus實(shí)例集錦(包括電路圖.仿真程序,各種各樣的電路):4x4鍵盤,51單片機(jī)12864大液晶屏proteus仿真,8253可編程定時(shí)器計(jì)數(shù)器,竊聽器(使用PROTEUS串口例子)V1.0,電子琴和倒計(jì)時(shí)播放音樂,電壓電流轉(zhuǎn)換電路,單片機(jī)設(shè)計(jì)2008奧運(yùn)會(huì),Schematic模型創(chuàng)建方法等資料。
標(biāo)簽: Proteus 實(shí)例集錦 仿真程序 電路圖
上傳時(shí)間: 2013-10-10
上傳用戶:181992417
點(diǎn)陣式LCD12864接口與程序設(shè)計(jì)分析
標(biāo)簽: 12864 LCD 點(diǎn)陣式 接口
上傳時(shí)間: 2013-10-30
上傳用戶:daoxiang126
基于CP2102的USB接口設(shè)計(jì),cp2102橋接芯片很不錯(cuò)
標(biāo)簽: 2102 USB CP 接口設(shè)計(jì)
上傳時(shí)間: 2013-10-10
上傳用戶:zhyiroy
usb接口類型
上傳時(shí)間: 2013-11-24
上傳用戶:wxhwjf
USB接口設(shè)計(jì)
上傳時(shí)間: 2013-11-02
上傳用戶:hehuaiyu
這是一份比較全面的usb接口定義
標(biāo)簽: Mini-USB USB 接口 標(biāo)準(zhǔn)
上傳時(shí)間: 2013-11-01
上傳用戶:wayne595
蟲蟲下載站版權(quán)所有 京ICP備2021023401號(hào)-1