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
HT45R37 內建有Serial Interface Function,其中包括了SPI 和I2C 這兩種串列傳輸模式,本文 以HT45R37 為母體,介紹使用SPI 進行資料傳輸的方法和注意事項
上傳時間: 2013-11-22
上傳用戶:lz4v4
2012TI杯陜西賽題,2012TI杯陜西賽題D題題目--聲音定位系統。
上傳時間: 2014-12-26
上傳用戶:lwwhust
單片機軟件,3D8光立方取模軟件。
上傳時間: 2013-11-21
上傳用戶:jyycc
lcd漢字取模軟件
上傳時間: 2013-10-09
上傳用戶:18752787361
概述 HT46R32/HT46R34是8位高性能精簡指令集單片機,專門為需要A/D轉換的產品而設計,例如傳感器信號輸入。內置放大器/比較器和PWM調制功能使得這款單片機處理模擬信號的能力更加強大。 低功耗、I/O使用靈活、可編程分頻器、計數器、振蕩類型選擇、多通道A/D轉換運算放大器/比較器、脈沖測量功能、暫停和喚醒功能,使這款單片機可以廣泛應用于傳感器的信號處理、馬達控制、工業控制、消費類產品、子系統控制等等。
上傳時間: 2013-11-13
上傳用戶:哈哈hah
介紹了一種基于C8051F020單片機的多路壓力測量儀。該測量儀選用電阻應變式壓力傳感器采集壓力信號,并經放大電路處理后送入C8051F020單片機,再由C8051F020單片機內部的A/D轉換器將采集到的壓力信號進行模數轉化,然后分別對數據進行存儲和顯示。該測量儀能測量6路壓力信號,并且各測量點都能單獨檢測和設置。由于采用了C8051F020單片機,簡化了硬件電路,增強了抗干擾能力,使得測量儀具有測量精度高,沖擊小等特點。 Abstract: A measurement apparatus for multi-channel pressure based on single chip microcomputer is introduced.It can measure 6 channels signal of the pressure,and the pressure measure points can be detection and located individually.The pressure signal sampling is obtained by resistor stress-type pressure sensors,the digital signals of 6 channels are collected through amplifying and adjustment circuit of pressure signals and internal integrated A/D converter of MCU.Finally,and it realizes the function to store and display data separately.C8051F020 was used to made hardware circuit simple,and it also enhanced the anti-interference ability.It features high precision and little impact.
上傳時間: 2013-11-16
上傳用戶:yare
前言 自從盛群半導體公司成立以來,即致力于單片機產品的設計與開發。雖然盛群半導體提供給客戶各式各樣的半導體器件,但其中單片機仍是盛群的主要關鍵產品,未來盛群半導體仍將繼續擴展單片機產品系列完整性與功能性。通過長期累積的單片機研發經驗與技術,盛群半導體能為各式各樣的應用范圍開發出高性能且低價位的單片機芯片。許多連接到外部感應器的重要應用需要處理模擬信號,所有的這些應用,在它們可以被單片機處理之前需要通過一個A/D轉換器做模數信號的轉換。為了滿足這些需求,盛群開發出A/D系列的單片機,除了擁有I/O系列的所有特性和功能外,還含有集成的多通道A/D轉換器,它的解析度和通道個數可調。而PWM功能和I2C接口,則進一步增加了A/D系列單片機的功能和應用的可行性。
上傳時間: 2013-12-05
上傳用戶:waitingfy
主要介紹構成記憶示波器的STC12C5408AD增強型單片機8通道10位模數轉換功能的設置、應用和具體的匯編程序設計,以及PC機串行通訊和圖形顯示的高速匯編程序的設計要點,并列舉實例說明其應用效果。 Abstract: The configuration, applications and the designs for? compiling program of the memorial oscillograph of 10 bits A/D conversation are introduced. It’s bases on STC12C5408AD 8? channels? single-chip? computer? in? enhancement? mode. It also recommends the devising essentials of high speed compiling program for PC serial communication and graphics display, lists examples to explain its effects in using.
上傳時間: 2013-10-10
上傳用戶:adada
詳細介紹了TLC1549系列模數轉換器的特點及工作原理,然后根據TLC1549的工作時序和A/D轉換原理針對實際問題編寫了詳細的匯編語言程序。 Abstract: A basic principle and characteristic of TLC1549 analog-to-digital converter are introduced? detailedly in this article.Through engineering-oriented illustration,a microcomputer programmer base on basic principle and time sequence of TLC1549 is writted.
上傳時間: 2014-07-16
上傳用戶:blans