µ¥Æ¬»ú¿Î³ÌÉè¼Æ±¨¸æ
»ùÓÚat89c51µÄÊý×Öµçѹ±íÉè¼Æ
Éè¼Æ¿ÎÌ⣺
רҵ°à¼¶£º ѧÉúÐÕÃû£º Ö¸µ¼½Ìʦ£º Éè¼Æʱ¼ä£º
»ùÓÚAT89C51µ¥Æ¬»úÊý×Öµçѹ±íµÄÉè¼Æ
»ùÓÚAT89C51µ¥Æ¬»úµÄÊý×Öµçѹ±íÉè¼Æ
ÕªÒª
Êý×Öµçѹ±íÊdz£ÓõĶԵç×ӵ緽øÐмì²âµÄ½Ï¾«ÃÜÒÇÆ÷Ö®Ò»¡£±¾ÎĵÄÉè¼Æ˼ÏëÊÇÒ»ÖÖ»ùÓÚµ¥Æ¬»úµÄÊý×Öµçѹ±íÉè¼Æ·½Ê½¡£¸ÃÉè¼ÆÖ÷ÒªÓÉÈý¸öÄ£¿é×é³É£ºA/Dת»»Ä£¿é¡¢Êý¾Ý´¦ÀíÖ÷¿ØÄ£¿éºÍÏÔʾģ¿é¡£A/Dת»»Ä£¿éÖ÷ÒªÓÉоƬADC0808À´Íê³É£¬Ëü¸ºÔ𽫲ɼ¯µ½µÄÄ£ÄâÁ¿×ª»»ÎªÏàÓ¦µÄÊý×ÖÁ¿´«Ë͵½Êý¾Ý´¦ÀíÄ£¿é£¨µ¥Æ¬»ú£©¡£Êý¾Ý´¦ÀíÖ÷¿ØÄ£¿éÓɵ¥Æ¬»úAT89C51À´Íê³É£¬Ëü¸ºÔð½«ADC0808´«Ë͹ýÀ´µÄÊý×ÖÁ¿¾¹ýÒ»¶¨µÄÊý¾Ý´¦Àí£¬²úÉúÏà¶ÔÓ¦µÄÏÔʾÂë´«Ë͵½ÏÔʾģ¿é½øÐÐÏÔʾ¡£´ËÍ⣬Ëü»¹¿ØÖÆоƬADC0808µÄ¹¤×÷¡£¾¹ý·ÂÕæÈí¼þ½á¹û±íÃ÷±¾Éè¼ÆÖеĵçѹ±íµç·¼òµ¥£¬ËùÓÃÔª¼þ½ÏÉÙ£¬³É±¾µÍÇÒ²âÁ¿¾«¶È¸ß¡£´Ëµçѹ±í¿ÉÒÔ²âÁ¿0¡ª5VµÄÄ£ÄâÊäÈëµçѹֵ£¬²¢Í¨¹ýÒ»¸öËÄλһÌåµÄ¹²ÒõÊýÂë¹ÜÏÔʾ³öÀ´¡£
¹Ø¼ü´Ê£ºÊý×Öµçѹ±í£¬µ¥Æ¬»ú£¬A/Dת»»£¬AT89C51£¬ADC0808
Ŀ ¼
µÚ1Õ Ð÷ÂÛ......................................................... 1 µÚ2Õ ϵͳÕûÌåÉè¼Æ˼·¼°·½°¸....................................... 2
2.1 Éè¼ÆÌâÄ¿.................................................... 2 2.2 Éè¼Æ˼·.................................................... 2 2.3 Éè¼Æ·½°¸.................................................... 2 µÚ3Õ Êý×Öµçѹ±íµÄÓ²¼þÉè¼Æ......................................... 3
3.1 µ¥Æ¬»úÖ÷¿ØÖÆÄ£¿éµÄÉè¼Æ...................................... 3
3.1.1 AT89C51ÐÔÄܼò½é..................................... 3 3.1.2 AT89C51¸÷Òý½Å¹¦ÄÜ................................... 3 3.1.3 AT89C51µÄ¸´Î»µç·ºÍʱÖÓµç·......................... 5 3.2 A/Dת»»µç·Éè¼Æ ............................................ 6
3.2.1 ADC0808µÄÖ÷ÒªÌØÐÔ................................... 7 3.2.2 ADC0808¸÷Òý½Å¹¦ÄÜ................................... 7 3.3 ÏÔʾµç·µÄÉè¼Æ.............................................. 8 3.4 ×ÜÌåµç·Éè¼Æ............................................... 10 µÚ4Õ Êý×Öµçѹ±íµÄÈí¼þÉè¼Æ........................................ 11
4.1 Éè¼ÆÁ÷³Ìͼ................................................. 11 4.2 ¸÷×Ó³ÌÐò¼ò½é............................................... 12 µÚ5Õ Èí¼þµ÷ÊÔ.................................................... 12
5.1 Èí¼þµ÷ÊÔ................................................... 13 5.2 Îó²î·ÖÎö................................................... 13 ½áÂÛ............................................................... 15 ²Î¿¼ÎÄÏ×........................................................... 16 ¸½Â¼ ³ÌÐò½Øͼ¼°½âÊÍ................................................ 17
»ùÓÚAT89C51µ¥Æ¬»úÊý×Öµçѹ±íµÄÉè¼Æ
µÚ1Õ Ð÷ÂÛ
ÔÚµçÁ¿µÄ²âÁ¿ÖУ¬µçѹ¡¢µçÁ÷ºÍƵÂÊÊÇ×î»ù±¾µÄÈý¸ö±»²âÁ¿£¬ÆäÖеçѹÁ¿µÄ²âÁ¿×îΪ¾³£¡£¶øÇÒËæ×ŵç×Ó¼¼ÊõµÄ·¢Õ¹£¬¸üÊǾ³£ÐèÒª²âÁ¿¸ß¾«¶ÈµÄµçѹ£¬ËùÒÔÊý×Öµçѹ±í¾Í³ÉΪһÖֱز»¿ÉÉٵIJâÁ¿ÒÇÆ÷¡£Êý×Öµçѹ±í£¨Digital Voltmeter)¼ò³ÆDAM,ËüÊDzÉÓÃÊý×Ö»¯²âÁ¿¼¼Êõ£¬°ÑÁ¬ÐøµÄÄ£ÄâÁ¿×ª»»³É²»Á¬Ðø¡¢ÀëÉ¢µÄÊý×ÖÐÎʽ²¢¼ÓÒÔÏÔʾµÄÒÇ±í¡£´«Í³µÄÖ¸Õëʽµçѹ±í¹¦Äܵ¥Ò»¡¢¾«¶ÈµÍ£¬²»ÄÜÂú×ãÊý×Ö»¯Ê±´úµÄÐèÇ󣬲ÉÓõ¥Æ¬»úµÄÊý×Öµçѹ±í£¬Óо«¶È¸ß¡¢¿¹¸ÉÈÅÄÜÁ¦Ç¿¡¢¼¯³É·½±ã£¬»¹¿ÉÓëPC½øÐÐʵʱͨÐŵÈÓŵ㡣
Ä¿Ç°£¬Óɸ÷ÖÖµ¥Æ¬»úºÍA/Dת»»Æ÷¹¹³ÉµÄÊý×Öµçѹ±í£¬Òѱ»¹ã·ºÓÃÓÚµç×Ó¼°µç¹¤²âÁ¿¡¢¹¤Òµ×Ô¶¯»¯ÒÇ±í¡¢×Ô¶¯²âÊÔϵͳµÈÁìÓò£¬ÏÔʾ³öÁËËü¼«Ç¿µÄÉúÃüÁ¦¡£Óë´Ëͬʱ£¬ÓÉDVMÀ©Õ¹¶ø³ÉµÄ¸÷ÖÖͨÓü°×¨ÓÃÊý×ÖÒDZíÒÇÆ÷£¬Ò²°ÑµçÁ¿¼°·ÇµçÁ¿¼¼ÊõÌá¸ßµ½Õ¸ÐÂˮƽ¡£ÐÂÐÍÊý×Öµçѹ±íÒÔÆä¸ß׼ȷ¶È¡¢¸ß¿É¿¿ÐÔ¡¢¸ß·Ö±æÂÊ¡¢¸ßÐԼ۱ȵÈÓÅÁ¼ÌØÐÔ±¸ÊÜÈËÃǵÄÇàíù¡£
±¾ÎÄÊÇÒÔ¼òÒ×Êý×ÖÖ±Á÷µçѹ±íµÄÉè¼ÆΪÑо¿ÄÚÈÝ£¬±¾ÏµÍ³Ö÷Òª°üÀ¨Èý´óÄ£¿é£º×ª»»Ä£¿é¡¢Êý¾Ý´¦ÀíÄ£¿é¼°ÏÔʾģ¿é¡£ÆäÖУ¬A/Dת»»²ÉÓÃADC0808¶ÔÊäÈëµÄÄ£ÄâÐźŽøÐÐת»»£¬¿ØÖƺËÐÄAT89C51ÔÙ¶Ôת»»µÄ½á¹û½øÐÐÔËËã´¦Àí£¬×îºóÇý¶¯Êä³ö×°ÖÃLEDÏÔʾÊý×ÖµçѹÐźš£
1