UART 4 UART參考設(shè)計(jì),Xilinx提供VHDL代碼 uart_vhdl This zip file contains the following folders: \vhdl_source -- Source VHDL files: uart.vhd - top level file txmit.vhd - transmit portion of uart rcvr.vhd - - receive portion of uart \vhdl_testfixture -- VHDL Testbench files. This files only include the testbench behavior, they do not instantiate the DUT. This can easily be done in a top-level VHDL file or a schematic. This folder contains the following files: txmit_tb.vhd -- Test bench for txmit.vhd. rcvr_tf.vhd -- Test bench for rcvr.vhd.
標(biāo)簽: UART Xilinx VHDL 參考設(shè)計(jì)
上傳時(shí)間: 2013-11-02
上傳用戶:18862121743
用途:測(cè)量地磁方向,測(cè)量物體靜止時(shí)候的方向,測(cè)量傳感器周圍磁力線的方向。注意,測(cè)量地磁時(shí)候容易受到周圍磁場(chǎng)影響,主芯片HMC5883 三軸磁阻傳感器特點(diǎn)(抄自網(wǎng)上): 1,數(shù)字量輸出:I2C 數(shù)字量輸出接口,設(shè)計(jì)使用非常方便。 2,尺寸小: 3x3x0.9mm LCC 封裝,適合大規(guī)模量產(chǎn)使用。 3,精度高:1-2 度,內(nèi)置12 位A/D,OFFSET, SET/RESET 電路,不會(huì)出現(xiàn)磁飽和現(xiàn)象,不會(huì)有累加誤差。 4,支持自動(dòng)校準(zhǔn)程序,簡(jiǎn)化使用步驟,終端產(chǎn)品使用非常方便。 5,內(nèi)置自測(cè)試電路,方便量產(chǎn)測(cè)試,無(wú)需增加額外昂貴的測(cè)試設(shè)備。 6,功耗低:供電電壓1.8V, 功耗睡眠模式-2.5uA 測(cè)量模式-0.6mA 連接方法: 只要連接VCC,GND,SDA,SDL 四條線。 Arduino GND -> HMC5883L GND Arduino 3.3V -> HMC5883L VCC Arduino A4 (SDA) -> HMC5883L SDA Arduino A5 (SCL) -> HMC5883L SCL (注意,接線是A4,A5,不是D4,D5) 源程序: #include <Wire.h> #include <HMC5883L.h> HMC5883Lcompass; voidsetup() { Serial.begin(9600); Wire.begin(); compass = HMC5883L(); compass.SetScale(1.3); compass.SetMeasurementMode(Measurement_Continuous); } voidloop() { MagnetometerRaw raw = compass.ReadRawAxis(); MagnetometerScaled scaled = compass.ReadScaledAxis(); float xHeading = atan2(scaled.YAxis, scaled.XAxis); float yHeading = atan2(scaled.ZAxis, scaled.XAxis); float zHeading = atan2(scaled.ZAxis, scaled.YAxis); if(xHeading < 0) xHeading += 2*PI; if(xHeading > 2*PI) xHeading -= 2*PI; if(yHeading < 0) yHeading += 2*PI; if(yHeading > 2*PI) yHeading -= 2*PI; if(zHeading < 0) zHeading += 2*PI; if(zHeading > 2*PI) zHeading -= 2*PI; float xDegrees = xHeading * 180/M_PI; float yDegrees = yHeading * 180/M_PI; float zDegrees = zHeading * 180/M_PI; Serial.print(xDegrees); Serial.print(","); Serial.print(yDegrees); Serial.print(","); Serial.print(zDegrees); Serial.println(";"); delay(100); }
標(biāo)簽: Arduino 5883L 5883 HMC
上傳時(shí)間: 2014-03-20
上傳用戶:tianyi223
項(xiàng)目描述: SQLite is a small C library that implements a self-contained, embeddable, zero-configuration SQL database engine. Features include
標(biāo)簽: zero-configuration self-contained implements embeddable
上傳時(shí)間: 2013-11-26
上傳用戶:啊颯颯大師的
1:文件說(shuō)明: ExampleServlet.java 發(fā)信JAVA源文件 CSEmail.jar 發(fā)信包 com CSEmail.jar 的源文件 2:部署: ExampleServlet.java 發(fā)到 WEB-INF/CLASSES/ CSEmail.jar 放到 web-inf/lib/ 3. 修改ExampleServlet.java 中 private String SERVLET_HTTP_PATH = "http://www.yourSite.com/servlet/ 把www.yourSite.com 改成你的網(wǎng)址 4運(yùn)行: http://www.yourSite.com/servlet/ExampleServlet 填寫你的SMTP郵件服務(wù)器和發(fā)信端口,還有你在這個(gè)郵件服務(wù)器上的帳號(hào)(不正確發(fā)不出信)
標(biāo)簽: ExampleServlet CSEmail java jar
上傳時(shí)間: 2015-01-12
上傳用戶:cx111111
libpcap is a system-independent interface for user-level packet capture. libpcap provides a portable framework for low-level network monitoring. Applications include network statistics collection, security monitoring, network debugging, etc.
標(biāo)簽: libpcap system-independent user-level interface
上傳時(shí)間: 2014-08-11
上傳用戶:saharawalker
赫赫大名的 OGRE 游戲引擎,游戲編程高手特別是游戲引擎高手的最好教材,開源代碼,不看是你的損失。VC.NET編譯交順利,遇到編譯錯(cuò)誤時(shí)添加相應(yīng)INCLUDE文件,直到通過(guò)為止。VC++ 6.0未試過(guò),估計(jì)問(wèn)題較多,祝你好運(yùn)。
上傳時(shí)間: 2013-12-18
上傳用戶:pompey
重寫了微軟提供SQLHelper(共用的數(shù)據(jù)庫(kù)調(diào)用接口) 1把SqlHelper的connectionString做成一個(gè)全局量,統(tǒng)一設(shè)置數(shù)據(jù)庫(kù)連接字符串 2增加了返回特定表名的DataSet的各接口。 可在項(xiàng)目的config文件設(shè)置數(shù)據(jù)庫(kù)連接字符串 private static string connectionString = System.Configuration.ConfigurationSettings.AppSettings["ConnectionString"] <!-- application specific settings --> <appSettings> <add key="ConnectionString" value="packet size=4096 user id=sa data source=localhost persist security info=True initial catalog=NorthWind password= "/> </appSettings> 當(dāng)然可以把數(shù)據(jù)庫(kù)連接方法修改后直接用。
標(biāo)簽: connectionString SQLHelper SqlHelper 微軟
上傳時(shí)間: 2013-12-12
上傳用戶:釣鰲牧馬
《ASP網(wǎng)站QQ在線咨詢插件》 作者:國(guó)子(參考騰訊技術(shù)文檔編寫) QQ:895731 演示網(wǎng)址:http://www.wubaidu.com 轉(zhuǎn)載請(qǐng)完整保留此說(shuō)明文檔,謝謝 使用方法: 將所有文件拷貝到網(wǎng)站目錄,使用include方法將本文件包含到index.asp中,即在index.asp的最后添加一行<!--#include file="ask-qq.asp"--> 添加客服QQ方法: 修改ask-qq.asp中的“adm_qq=”后面引號(hào)中的QQ號(hào),多個(gè)QQ號(hào)用西文逗號(hào)隔開,QQ數(shù)量不限。 如果你的ASP網(wǎng)站的數(shù)據(jù)庫(kù)中保存有QQ號(hào),也可直接讀取數(shù)據(jù)庫(kù)中的QQ 修改在線咨詢浮動(dòng)面板位置的方法: 修改ask-qq.asp中“startX =650”(水平)、“startY = 150”(垂直)中的數(shù)字即可。
標(biāo)簽: wubaidu 895731 http ASP
上傳時(shí)間: 2013-12-23
上傳用戶:jqy_china
eGroupWare is a multi-user, web-based groupware suite developed on a custom set of PHP-based APIs. Currently available modules include: email, addressbook, calendar, infolog (notes, to-do s, phone calls), content management, forum, bookmarks, wiki
標(biāo)簽: eGroupWare multi-user developed PHP-based
上傳時(shí)間: 2015-02-20
上傳用戶:hphh
軟件測(cè)試:一個(gè)編譯器測(cè)試軟件,支持下列C語(yǔ)言運(yùn)算符:+ - * / % ^(乘方) 負(fù) (int) (double) "字符串" [](數(shù)組) > < == >= <= != && ! ++ -- = += -= *= /= %= ^=,支持下列關(guān)鍵字:void int double string if else for while do goto break continue return,支持下列數(shù)據(jù)類型:int double string int[] double[] string[],支持下列系統(tǒng)函數(shù):int max(int,int),double max(double,double),int[] newint(int),double[] newdouble(int),string[] newstring(int),void delete(int[]),void delete(double[]),void delete(string[]),支持任意用戶定義函數(shù),支持函數(shù)重載。不支持全局變量。如果發(fā)現(xiàn)錯(cuò)誤,請(qǐng)告訴我
標(biāo)簽: 軟件測(cè)試 編譯器 測(cè)試軟件
上傳時(shí)間: 2013-12-15
上傳用戶:sy_jiadeyi
蟲蟲下載站版權(quán)所有 京ICP備2021023401號(hào)-1