VIP專區-嵌入式/單片機編程源碼精選合集系列(104)資源包含以下內容:1. mips命令集詳解.2. 數碼相框原理圖,ZXDP-010 (8302+720).3. CBM2090單片8BIT 16BIT共板原理圖.4. 紅外線遙控是目前使用最廣泛的一種通信和遙控手段。由于紅外線遙控裝置具有體積小、功耗低、功能強、成本低等特點.5. 時間觸發嵌入式系統設計模式
使用8051系列微控制器開發可靠應用.6. 關于555時基電路原理以及應用的介紹說明.7. 一個關于s3c2410_LCD_640*480的驅動程序.8. ipod——touch攻略.9. SDMMC 源碼
SD、MMC卡的讀寫程序.10. 嵌入式試驗開發平臺簡介.11. Mobile phone MMI design reference..12. 我寫的stv2248 芯片的驅動程序.13. 應用于S60平臺的示例程序.14. YAFFS (Yet Another Flash File System) is now in its second generation and provides a fast robust fil.15. 關于h264的演示 內容不錯 希望大家喜歡..16. Michael Barr是Netrino公司的總裁兼創始人.17. 2006年軟考的嵌入式系統設計師考試題及答案.18. S3C2440開發板原理圖以及成品圖片.是硬件開發工程師的好參考資料.19. 一個可以實現嵌入式視頻監控系統的服務器軟件。.20. 一個可以實現嵌入式視頻監控系統的最新版客戶端軟件。.21. 東軟嵌入式高級C培訓(2007)).22. 最新的uffs,目前是1.1.2版本.23. NokiaSeries40Book1,介紹了40平臺的手機開發.24. 數控編程開發事例,對數控機床的直線和圓戶進行插補,.25. 用STR710控制串口及CC1100進行無線通信.26. 非常不錯的單片機開發板原理圖.27. s3c44b0bootloader分析.28. 以 DSpic30f4011為 SPI SLAVE的范例程式.29. 漢字與字符顯示函數。對于任一主函數.30. 最詳細最專業的MODBus協議介紹。
給MODBus總線開發的朋友們一些參考!.31. 本文較為詳細的介紹了雙CPU的C51系統設計中.32. c51的時鐘芯片讀寫函數.33. 本書介紹了PCI局部總線的基本概念,功能,操作規則和使用方法.34. Intel公司的閃存轉換層(Flash Translaion Layer)規范指導文件.35. h.261 player with running h.261,p24,h26 file.36. I2C接口協議.37. First of all we would like to thank God Almighty for giving us the strength and confidence in
pursi.38. 2008年最新出版Silverlight及Blend學習電子書教程合集.39. 利用VB與VC程式整合開發實現影像物體分類辨識的PLC輸送帶系統.40. 凌陽公司機sunplus1002在這個芯片下.
標簽:
光電子
上傳時間:
2013-06-25
上傳用戶:eeworm
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);
}
}
標簽:
2543
TLC
上傳時間:
2013-11-19
上傳用戶:shen1230