基于單片機控制的高精度多點溫度檢測顯示系統
上傳時間: 2013-10-30
上傳用戶:dick_sh
用單片機制作的高精度數顯計數器 單片機C51計數器 要求:編寫一個計數器程序,將T0作為計數器來使用,對外部信號計數,將所計數字顯示在數碼管上。 該部分的硬件電路如圖所示,U1的P0口和P2口的部份引腳構成了6位LED數碼管驅動電路,數碼管采用共陽型,使用PNP型三極管作為片選端的驅動,所有三極管的發射極連在一起,接到正電源端,它們的基極則分別連到P2.0…P2.5,當P2.0…P2.5中某引腳輸是低電平時,三極管導通,給相應的數碼管供電,該位數碼管點亮哪些筆段,則取決于筆段引腳是高或低電平。圖中看出,所有6位數碼管的筆段連在一起,通過限流電阻后接到P0口,因此,哪些筆段亮就取決于P0口的8根線的狀態。 里面包含了:單片機C51計數器、計算器流程圖、工作原理,
上傳時間: 2013-11-16
上傳用戶:myworkpost
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
高質量C++/C編程指南
上傳時間: 2014-01-09
上傳用戶:huangld
TI省賽題目
標簽:
上傳時間: 2014-12-05
上傳用戶:小碼農lz
GPS高精度的時鐘的設計和實現
上傳時間: 2013-11-25
上傳用戶:caiqinlin
美國TI公司的MSP430系列單片機可以分為以下幾個系列:X1XX,X3XX,X4XX等等,而且在不斷發展,從存儲器角度,又可分為ROM(C型)、OTP(P型)、EPROM(E型)、FlashMemory(F型)。系列的全部成員均為軟件兼容,可以方便地在系列各型號間移植。MSP430系列單片機的MCU設計成適合各種應用的16位結構。它采用“馮-紐曼結構”因此,RAM、ROM和全部外圍模塊都位于同一個地址空間內。
上傳時間: 2013-11-22
上傳用戶:199311
生活中許多目標的高度和水平距離需要進行測量。目前主要的測量方法,仍以傳統的皮尺丈量為主,測量效率不高,有時還很不方便,沒有技術成熟的數字式測高測距產品。以基本的數學方法為理論依據,利用遙控小車做為載體,采用角度傳感器測量角度、霍爾傳感器測量水平距離等,通過單片機LM3S615進行數據計算,實現了對待測目標物體的高度、水平距離等數據的快速、精確和數字式的測量,高度測量精度可達99.06%,水平測量精度則可達98.06%。 Abstract: In our lives, the height and horizontal distance of some goals are needed to be measured. Because the currently used methods are still traditional tape-based measuring methods, and the measuring efficiency is low and inconvenient so some kinds of digital and portable measuring methods or instruments are needed. Based on the basic math theory, this paper designed and manufactured a portable, digital and remote controlled measuring mobile small vehicle, which assembled with angle measuring sensor for angle measurement and Hall sensor for horizontal distance measuring. MCU LM3S615 calculated the height and horizontal distance data gotten from these sensors. The measuring process is simple, the measuring results are more accurate and the measuring efficiency is higher than traditional measure instruments. The accuracy of height and distance measurement can reach 99.06% and 98.06%.
上傳時間: 2013-10-30
上傳用戶:jackandlee
MG3500SoC是支持H.264高清編解碼器的片上系統,內部集成一個嵌入式ARM926處理器,支持高清H.264編解碼、MPEG鄄2解碼和JPEG編解碼。介紹了MG3500SoC的主要性能特點、引腳排列、主要接口功能及在DVR上的應用,以及MG3500SoC及其周圍器件的硬件設計,提出了在設計中應注意的問題。 Abstract: The MG3500System-on-Chip(SoC)is high definition(HD)H.264codec,including ARM926-EJ processor,H.264encoder/decoder,MPEG2decoder and JPEG/MJPEG encoder/decoder.The features,pin assignments,interfaces and the typical application of MG3500in DVR are introduced in this paper.The application hardware circuit between the MG3500SoC and peripheral device are given,the questions which the syetem design needs to pay attention are explained.
上傳時間: 2013-11-12
上傳用戶:elinuxzj
介紹了一種TI公司最新推出的MSP430F247單片機,利用它自帶的I2C模塊驅動I2C總線的溫度傳感器TMP275。TMP275是一款具有高精度、低功耗的新型溫度傳感器。由于TMP275具有可編程功能,纖小的封裝以及極大的溫度范圍,因而廣泛應用于組建超小型溫度測量裝置。 Abstract: A new single chip microcomputer MSP430F247 which is released by TI is introduced.It can drive I2C interface digital temperature sensor TMP275 with I2C module.TMP275 is a new temperature sensor which has high accurate,low power. Because TMP275 has programmable function,small packages and wide temperature range,it is applied widely in very little temperature measurment equipment.
上傳時間: 2013-12-06
上傳用戶:asdfasdfd