»ùÓÚµ¥Æ¬»úµÄ¶à·ÐźŲɼ¯Æ÷µÄÉè¼Æ - ͼÎÄ(2)

2019-09-01 20:10

ÕªÒª

ÕªÒª

Êý¾Ý²É¼¯Æ÷ÊÇĿǰ¹¤Òµ¿ØÖÆÖÐÓ¦Óý϶àµÄÒ»Àà²úÆ·£¬³£³£ÀûÓÃPC»ò¹¤¿Ø»ú¶Ô¸÷ÖÖÊý¾Ý½øÐвɼ¯¡£Êý¾Ý²É¼¯¼¼ÊõÊÇÐÅÏ¢¿ÆÑ§µÄÖØÒª·ÖÖ§£¬ÊÇ´«¸ÐÆ÷¡¢ÐźŻñÈ¡¡¢´æ´¢Óë´¦ÀíµÈÐÅÏ¢¼¼Êõ½áºÏ¡£±¾ÎIJÉÓÃÁËTI¹«Ë¾Éú²úµÄ11·12λ´®ÐÐÄ£Êýת»»Ð¾Æ¬TLC2543ºÍºê¾§¹«Ë¾Éú²úµÄÔöÇ¿ÐÍ80C51ϵÁе¥Æ¬»úSTC12C5A60S2×é³ÉÁËÒ»¸ö»ùÓÚµ¥Æ¬»úµÄ¶à·ÐźŲɼ¯ÏµÍ³¡£Õâ¸öÊý¾Ý²É¼¯ÏµÍ³¿É½«Êý¾ÝµÄ²É¼¯½á¹ûͨ¹ýTLC2543µÄA/Dת»»ºó£¬½«Ä£ÄâÐźÅת»»³ÉÊý×ÖÐźŲ¢ÒÔÖ±¹ÛµÄÊ®½øÖÆÐÎʽÏÔʾÔÚLCD1602Òº¾§ÏÔʾÆ÷ÉÏ¡£»¹¿ÉÒÔͨ¹ýMAX232оƬÓëPC½øÐд®¿ÚÊý¾ÝͨÐÅ£¬´ïµ½ÔÚPC»úÉÏʵʱµÄÏÔʾ¡¢´æ´¢ºÍ´¦Àí²ÉÑùÊý¾ÝµÄÄ¿µÄ¡£ÔÚÊý¾Ý²É¼¯²¿·Ö£¬¼ÓÈëÁ˱ä×èÆ÷ÓÃÀ´²É¼¯±ä×èÆ÷Éϵĵçѹֵ£¬´ËµçѹֵΪ¸ÃÊý¾Ý²É¼¯ÏµÍ³µÄÄ£ÄâÊäÈëÐźš£

¹Ø¼ü´Ê Êý¾Ý²É¼¯£»A/Dת»»£»TLC2543£»LCD1602

I

Ñàɽ´óѧ±¾¿ÆÉú±ÏÒµÉè¼Æ£¨ÂÛÎÄ£©

Abstract

Data acquisition is the industrial control application more than a class of products, often using PC or computer on a variety of data collection. Data acquisition technology is an important branch of information science, sensor, signal acquisition, storage and processing of information technology. This paper uses TI company 11 12 bit serial A/D conversion chip, TLC2543 and the HoeJohn produced enhanced 80C51 series single-chip STC12C5A60S2 to form a multi-channel signal acquisition system based on single chip microcomputer. The data acquisition system can be data acquisition by TLC2543 A/D converter, converts the analog signals into digital signals and to visually display the decimal form LCD1602 liquid crystal display. Through the MAX232 chip and the PC serial data communications, we can achieve the PC real-time display, storage and processing of sampling data for the purpose.In the data collection part, the rheostat is used to collect the voltage across the varistor voltage value, the value of the data acquisition is analog signal input of the system.

Keywords Data acquisition; A/D conversion; TLC2543; LCD1602

II

Ŀ¼

ÕªÒª ....................................................................................................................... I Abstract ................................................................................................................ II µÚ1Õ Ð÷ÂÛ ...................................................................................................... 1

1.1 ¿ÎÌâ±³¾° .............................................................................................. 1 1.2 Ñ¡ÌâµÄÒÀ¾ÝºÍÒâÒå .............................................................................. 1 1.3 ¹úÄÚÍâÑо¿ÏÖ×´ .................................................................................. 1 1.4 ±¾ÎÄÖ÷ÒªÑо¿ÄÚÈÝ .............................................................................. 3 µÚ2Õ STC12C5A60S2µ¥Æ¬»úµÄ½éÉÜ .......................................................... 4

2.1 STC12C5A60S2µ¥Æ¬»úµÄ˵Ã÷ .......................................................... 4 2.1.1 Ð¾Æ¬ÌØÐÔ ...................................................................................... 4 2.1.2 STC12C5A60S2µ¥Æ¬»úÓ²¼þ×é³É½á¹¹ ...................................... 5 2.1.3 STC12C5A60S2µ¥Æ¬»úÒý½Å¹¦ÄÜ .............................................. 5 2.2 ±¾ÕÂС½á .............................................................................................. 7 µÚ3Õ ϵͳģ¿é·ÖÎö ...................................................................................... 8

3.1 A/Dת»»Ä£¿é ...................................................................................... 8 3.1.1 A/Dת»»Ð¾Æ¬µÄÑ¡Ôñ .................................................................. 8 3.1.2 TLC2543оƬµÄ˵Ã÷ ................................................................. 9 3.1.3 TLC2543¹¤×÷Ô­Àí .................................................................... 11 3.2 LCDÏÔʾģ¿é ................................................................................... 13 3.2.1 LCD1602µÄ˵Ã÷ ....................................................................... 13 3.2.2 LCD1602µÄÏÔʾԭÀí ............................................................... 15 3.3 ´®¿ÚͨÐÅÄ£¿é .................................................................................... 16 3.3.1 MAX232ÓëRS232CµÄ˵Ã÷ .................................................... 16 3.3.2 ´®¿ÚͨÐÅÄ£¿é¹¤×÷Ô­Àí ............................................................ 20 3.4 ÕûÌåµç·ͼ ........................................................................................ 22 3.5 ±¾ÕÂС½á ............................................................................................ 22 µÚ4Õ ϵͳÈí¼þ·ÖÎö .................................................................................... 23

4.1 ³ÌÐòÁ÷³Ìͼ·ÖÎö ................................................................................ 23

III

4.1.1 ³õʼ»¯³ÌÐò ................................................................................. 23 4.1.2 A/Dת»»µÄʵÏÖ ......................................................................... 24 4.1.3 LCDÏÔʾµÄʵÏÖ ........................................................................ 26 4.2 ϵͳÔËÐнá¹û .................................................................................... 28 4.2.1 TLC2543ÓëLCD1602ÔÚProteusÉϵķÂÕæ ............................ 28 4.2.2 PCÉÏÊý¾ÝµÄÏÔʾ ....................................................................... 30 4.3 ±¾ÕÂС½á ............................................................................................ 32 ½áÂÛ ..................................................................................................................... 33 ²Î¿¼ÎÄÏ× ............................................................................................................. 34 ÖÂл ..................................................................................................................... 36 ¸½Â¼1 .................................................................................................................. 37 ¸½Â¼2 .................................................................................................................. 41 ¸½Â¼3 .................................................................................................................. 46 ¸½Â¼4 .................................................................................................................. 50 ¸½Â¼5 .................................................................................................................. 68

IV


»ùÓÚµ¥Æ¬»úµÄ¶à·ÐźŲɼ¯Æ÷µÄÉè¼Æ - ͼÎÄ(2).doc ½«±¾ÎĵÄWordÎĵµÏÂÔØµ½µçÄÔ ÏÂÔØÊ§°Ü»òÕßÎĵµ²»ÍêÕû£¬ÇëÁªÏµ¿Í·þÈËÔ±½â¾ö£¡

ÏÂһƪ£ºSAPÖг£ÓÃSEϵÁÐTCODE»ã×Ü

Ïà¹ØÔĶÁ
±¾ÀàÅÅÐÐ
¡Á ×¢²á»áÔ±Ãâ·ÑÏÂÔØ£¨ÏÂÔØºó¿ÉÒÔ×ÔÓɸ´ÖƺÍÅŰ棩

ÂíÉÏ×¢²á»áÔ±

×¢£ºÏÂÔØÎĵµÓпÉÄÜ¡°Ö»ÓÐĿ¼»òÕßÄÚÈݲ»È«¡±µÈÇé¿ö£¬ÇëÏÂÔØÖ®Ç°×¢Òâ±æ±ð£¬Èç¹ûÄúÒѸ¶·ÑÇÒÎÞ·¨ÏÂÔØ»òÄÚÈÝÓÐÎÊÌ⣬ÇëÁªÏµÎÒÃÇЭÖúÄã´¦Àí¡£
΢ÐÅ£º QQ£º