51單片機AD及DA工作原理及應用
上傳時間: 2014-12-25
上傳用戶:fklinran
有原理圖,有程序。。用portuse仿真pic單片機的AD實現電壓表的現實。。。。用portuse來實現。。
上傳時間: 2013-10-15
上傳用戶:xc216
Atmel公司8051架構單片機Protel元件庫
上傳時間: 2013-11-11
上傳用戶:lhw888
at89c2051在ad轉換中的應用
上傳時間: 2013-10-28
上傳用戶:農藥鋒6
tlc0831串口通信的AD轉換的C程序
上傳時間: 2013-11-07
上傳用戶:wangfei22
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
經驗證有效可行易懂的程序,可以講講模擬信號通過stc12c5a60s2在P0口內置的AD轉換轉換為輸在信號并顯示在1206液晶上
上傳時間: 2013-10-11
上傳用戶:skfreeman
增強型51單片機STC12C5A60S2的內部AD和PWM波以及時鐘輸出程序
上傳時間: 2013-11-07
上傳用戶:wch1989
為了提高傳統溫度控制系統的性能,將PID控制理論與嵌入式系統相結合,采用瑞薩電子公司的H8S/2166作為核心處理器,AD公司的AD7705以及熱敏電阻溫度傳感器作為溫度檢測單元,利用4×6小鍵盤、LCD顯示器和S1D13305液晶控制器達到良好的人機交互,設計出了一個應用于化工領域的嵌入式實時溫度控制系統。相比于傳統溫度控制系統,該系統提供了更強的計算能力和可擴展能力,采用增量PID控制算法實現復雜控制。通過實驗,該系統能達到0.1 ℃的溫度控制精度以及小于120 s的溫度穩定時間。 Abstract: In order to improve the performance of conventional temperature control system, combining PID control theory with embedded systems, using the Renesas Electronics Corp. H8S/2166 micro-controller as a core processors, AD7705 and thermistor temperature sensor as a temperature detection unit and 4×6 small keyboard, LCD and S1D13305 LCD controller as a good human-computer interaction, this paper designed an embedded real-time temperature control system which is applied in chemical industry. Compared with conventional temperature control system, this system provides more computing power and extensibility, and adopts PID control algorithm for complex control. Through the experiment, the system can reach temperature control accuracy of 0.1 ℃ and temperature stabilization time of less than 120 seconds.
上傳時間: 2014-12-26
上傳用戶:003030
摘要 本單片機系統設計的目的是應用單片機控制技術,以8051單片機為核心控制慶豐熱電公司的800立方米的水箱的水位,并實現了報警和手動、自動切換功能。該系統操作方便、性能良好,比較符合電廠生產用水系統控制的需要。本文還詳細的給出了相關的硬件框圖和軟件流程圖,并編制了該匯編語言程序。
上傳時間: 2013-11-15
上傳用戶:ywcftc277