為了充分利用石油鉆井井下隨鉆儀器中鋰電池的有限電量,延長隨鉆儀器單次連續工作時間,采用以PIC16F688單片機作為控制核心,對主、從兩組鋰電池進行實時監控的原理進行軟硬件設計。系統包括電流采樣、電壓采樣、總線接口和EEPROM數據存儲4個模塊,具有主從電池的自動切換、電量統計、存儲、傳輸等功能。通過石油井下現場應用,該系統將隨鉆儀器中鋰電池電量的使用效率提高至90%,安全可靠,具有很好的工程應用價值。
上傳時間: 2013-11-22
上傳用戶:euroford
DS18B20采溫芯片的簡單應用
上傳時間: 2013-11-24
上傳用戶:q3290766
多采的單片機跑馬燈資料
上傳時間: 2013-10-27
上傳用戶:xingisme
軟件名稱: AVR_fighter 用 途: AVR單片機ISP下載編程軟件 版 本: 1.0 (LICENSE) 操作系統: Win98,Win2000,WinMe,WinXP,win2003 (注:Windows Vista未測試) 建議設置: 屏幕分辯率 1024 X 768 以上
標簽: avr_fighter 驅動
上傳時間: 2013-11-22
上傳用戶:defghi010
TLC2543是TI公司的12位串行模數轉換器,使用開關電容逐次逼近技術完成A/D轉換過程。由于是串行輸入結構,能夠節省51系列單片機I/O資源;且價格適中,分辨率較高,因此在儀器儀表中有較為廣泛的應用。 TLC2543的特點 (1)12位分辯率A/D轉換器; (2)在工作溫度范圍內10μs轉換時間; (3)11個模擬輸入通道; (4)3路內置自測試方式; (5)采樣率為66kbps; (6)線性誤差±1LSBmax; (7)有轉換結束輸出EOC; (8)具有單、雙極性輸出; (9)可編程的MSB或LSB前導; (10)可編程輸出數據長度。 TLC2543的引腳排列及說明 TLC2543有兩種封裝形式:DB、DW或N封裝以及FN封裝,這兩種封裝的引腳排列如圖1,引腳說明見表1 TLC2543電路圖和程序欣賞 #include<reg52.h> #include<intrins.h> #define uchar unsigned char #define uint unsigned int sbit clock=P1^0; sbit d_in=P1^1; sbit d_out=P1^2; sbit _cs=P1^3; uchar a1,b1,c1,d1; float sum,sum1; double sum_final1; double sum_final; uchar duan[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f}; uchar wei[]={0xf7,0xfb,0xfd,0xfe}; void delay(unsigned char b) //50us { unsigned char a; for(;b>0;b--) for(a=22;a>0;a--); } void display(uchar a,uchar b,uchar c,uchar d) { P0=duan[a]|0x80; P2=wei[0]; delay(5); P2=0xff; P0=duan[b]; P2=wei[1]; delay(5); P2=0xff; P0=duan[c]; P2=wei[2]; delay(5); P2=0xff; P0=duan[d]; P2=wei[3]; delay(5); P2=0xff; } uint read(uchar port) { uchar i,al=0,ah=0; unsigned long ad; clock=0; _cs=0; port<<=4; for(i=0;i<4;i++) { d_in=port&0x80; clock=1; clock=0; port<<=1; } d_in=0; for(i=0;i<8;i++) { clock=1; clock=0; } _cs=1; delay(5); _cs=0; for(i=0;i<4;i++) { clock=1; ah<<=1; if(d_out)ah|=0x01; clock=0; } for(i=0;i<8;i++) { clock=1; al<<=1; if(d_out) al|=0x01; clock=0; } _cs=1; ad=(uint)ah; ad<<=8; ad|=al; return(ad); } void main() { uchar j; sum=0;sum1=0; sum_final=0; sum_final1=0; while(1) { for(j=0;j<128;j++) { sum1+=read(1); display(a1,b1,c1,d1); } sum=sum1/128; sum1=0; sum_final1=(sum/4095)*5; sum_final=sum_final1*1000; a1=(int)sum_final/1000; b1=(int)sum_final%1000/100; c1=(int)sum_final%1000%100/10; d1=(int)sum_final%10; display(a1,b1,c1,d1); } }
上傳時間: 2013-11-19
上傳用戶:shen1230
在此介紹了一種基于單片機和W5100組合實現以太網通信的設計方法。采用以TCPdP協議為基礎的網絡解決方案。W5100是嵌入式以太網硬件協議棧芯片,它同時集TCP/IP協議棧、以太網MAC和PHY于一體,支持多種網絡協議。闡述了其具體的使用方法、接口方式、時序,以及程序實現等。
上傳時間: 2014-12-26
上傳用戶:helmos
在理論分析循環碼編碼和譯碼基本原理的基礎上,提出了基于單片機系統的(24,16)循環碼軟件實現編碼、譯碼的方案。仿真結果表明(24,16)循環碼能有效地克服來自通訊信道的干擾,保證數據通信的可靠及系統的穩定,使誤碼率大幅度降低。本論文對(24,16)循環碼的研究結果表明,可以有效地降低錯誤概率和提高系統的吞吐量,實現糾錯僅需要在接收端增加有限的存儲空間和計算復雜度,具有一定的實用價值。 Abstract: Based on analyzing the theory of encoding and decoding of cyclic code, this paper showed the schemes of encoding and decoding of(24,16)cyclic code by the software and based on microcontroller. Simulation results show that using (24,16) cyclic codes can effectively overcome the interference from communication channel, ensure the reliability and stability of data communication systems, and reduce the bit error rate greatly. The results of this paper show that by using the (24,16) cyclic code, the error rate can be reduced and the system throughput can be improved. Meanwhile, the system only needs to enlarge limited storage space and computation the complexity at the receiving end to realize error correction. Thus the (24,16) cyclic code has a practical value.
上傳時間: 2013-11-09
上傳用戶:gaoliangncepu
介紹一種基于C8051F060單片機和NAND Flash的數據采集存儲系統,該系統可實現3路信號采樣,每路采樣率為5KS/s,通過異步串行通信接口實現數據傳輸。并詳細說明系統的軟件設計。 Abstract: An acquisition and storage system based on C8051F060and NAND Flash is designed in this paper.The system is used to sample three-channel of signal,5KSPS each channel,and can upload data to test bench through UART(Universal Asynchronous Receiver/Transmitter).The software design is discussed in detail.
上傳時間: 2013-10-12
上傳用戶:Jesse_嘉偉
為解決輸油管道溫度壓力參數實時監測的問題,設計了以C8051F930單片機作為控制核心的超低功耗輸油管道溫度壓力遠程監測系統。現場儀表使用高精度電橋采集數據,通過433 MHz短距離無線通信網絡與遠程終端RTU進行通信,RTU通過GPRS網絡與PC上位機進行遠程數據傳輸,在上位機中實現數據存儲和圖形化界面顯示,從而實現輸油管道溫度壓力參數的實時監測和異常報警。經實驗證明,該系統的12位數據采集精度滿足設計要求,漏碼率小于1%,正常工作時間超過5個月,能實時有效地監測輸油管道的溫度壓力參數,節省大量人工成本,有效預防管道參數異常造成的經濟損失和環境污染。 Abstract: In order to solve the problems on real-time monitoring of pipeline temperature and pressure parameters, the ultra-low power remote pipeline temperature and pressure monitoring system was designed by using the single chip processor C8051F930 as the control core. The high-precision electric bridge was used in field instruments for data collection, the 433MHz short-range wireless communication network was used to make communication between field instrument and RTU, the GPRS was used by the RTU to transmit data to the PC host computer, and the data was stored and displayed in the PC host computer, so the real-time monitoring and exception alerts of pipeline temperature and pressure parameters were achieved. The experiment proves that the system of which error rate is less than 1% over five months working with the 12-bit data acquisition accuracy can effectively monitor the pipeline temperature and pressure parameters in real time, it saves a lot of labor costs and effectively prevents environmental pollution and economic losses caused by abnormal channel parameters.
上傳時間: 2013-11-07
上傳用戶:cuibaigao
隨著科學技術的快速發展,超聲波將在科學技術中的應用越來越廣。本文對超聲波傳感器測距的可能性進行了理論分析,利用模擬電子、數字電子、微機接口、超聲波換能器、以及超聲波在介質的傳播特性等知識,采用以STC89C52 單片機為核心的低成本、高精度、微型化數字顯示超聲波測距的硬件電路和軟件設計方法在此基礎上設計了系統的總體方案,最后通過硬件和軟件實現了各個功能模塊。為了保證超聲波測距傳感器的可靠性和穩定性,采取了相應的抗干擾措施。就超聲波的傳播特性,超聲波換能器的工作特性、超聲波發射、接收、超聲微弱信號放大、波形整形、速度變換、語音提示電路及系統功能軟件等做了詳細說明.實現障礙物的距離測試、顯示和報警,超聲波測距范圍30CM-300CM,精度在十厘米左右。這套系統軟硬件設計合理、抗干擾能力強、實時性良好,經過系統擴展和升級,可以用于倒車雷達、建筑施工工地以及一些工業現場,例如:測量液位、井深、管道長度等場合。可以廣泛應用于工業生產、醫學檢查、日常生活、無人駕駛汽車、自動作業現場的自動引導小車、機器人、液位計等。
上傳時間: 2013-11-05
上傳用戶:lixinxiang