【正文】
shi=dianya/256。 din=bit7。 conword=table3[key]。 P2=0xf7。//選中qian位 P3=table[qian]。 } while(!d1)。 key++。 key=0。 //共陰極十位和小數(shù)數(shù)碼管點顯示表uchar code table3[]={0x04,0x14,0x24,0x34,0x44,0x54,0x64,0x74,0x84,0x94,0xA4}。sbit clk=P1^3。圖六 硬件調(diào)試 圖七:硬件調(diào)試圖組硬件調(diào)試數(shù)據(jù)對照表一:采集通道號012 3 4 5 67 8 9實際值(V) 5 顯示值(V) 硬件顯示說明本課程設(shè)計對題目進行了擴展:由3路擴展到10路??蓪崿F(xiàn)0~9的顯示。在TLC2543的CS變低時開始轉(zhuǎn)換和傳送過程,I/O CLOCK的前8個上升沿將8個輸入數(shù)據(jù)位鍵入輸入數(shù)據(jù)寄存器,同時它將前一次轉(zhuǎn)換的數(shù)據(jù)的其余11位移出DATA OUT端,在I/O CLOCK下降沿時數(shù)據(jù)變化。CS:片選端,CS由高到低變化將復位內(nèi)部計數(shù)器,并控制和使能DATA OUT、DATA INPUT和I/O CLOCK。數(shù)據(jù)輸出及顯示就是把數(shù)據(jù)以適當?shù)男问捷敵雠c顯示。歐美品牌的品質(zhì)不錯,但是價格過高。 關(guān)鍵詞: AT8051 TLC2543 C語言控制軟件 AD模數(shù)轉(zhuǎn)換AbstractThis paper a kind of way for data acquisition system on the primary research, this much road acquisition system for road simulation signal can be gathered and processing. Data collection and munication control using modular design, AT80C51 with the single chip processor as the core, and using the serial A/D conversion module TLC2543 for conversion module, and to realize the 8 signal collection, storage, display and with A PC munications, and other functions. Some applications software written in C language control software, for data acquisition systems, modulus conversion system, data display, data munication and other procedures to carry on the design. Key Words: AT80C51 TLC2543 C language A/D conversion module目 錄摘要…………………………………………………………………………………IABSTRACT………………………………………………………………………II第一章 引言……………………………………………………………………1……………………………………………………………1……………………………………………1 ………………………