¡¡¡¡Õª¡¡Òª£º½éÉÜÒÔAT89C51/55µ¥Æ¬»úΪºËÐĵÄÖ÷´Ó»úÎÂʪ¶È×Ô¶¯Ñ²»Ø¼à²âϵͳ£»´ËϵͳÖ÷ÒªÓɵ¥Æ¬»ú¡¢´«¸ÐÆ÷¡¢¶à·¿ª¹ØºÍÐźŴ¦Àí¡¢A/Dת»»×ÓϵͳµÈ×é³É£¬ÆäÖжà·ÐźÅÑ¡ÔñÓÉCD4051ºÍCD4052Íê³É£¬µç·¼òµ¥¿É¿¿¡£
¡¡¡¡¹Ø¼ü´Ê£ºÎÂʪ¶È£»¶à·ÐźŲɼ¯£»µ¥Æ¬»ú
Temperature and Humidity Automatically Detecting System
Based on AT89C51/55
LIU Li
(Department of Machine Electronic, Shenyang Vocational and Technical College,
Shenyang 110043, China)
¡¡¡¡Abstract: The temperature and humidity automatically detecting s ystem based on AT89C51/55 was designed in this paper. This detecting system is m a de up of MCU, sensor, multiway switch and signal processing, A/D conversion subs ystem etc, multiway signal selection can be completed by CD4051 with CD4052, the circuit is simple and dependable.
¡¡¡¡Key words: temperature and humidity; multiway signal collecting; MCU
1ϵͳӲ¼þÉè¼Æ
¡¡¡¡ÏµÍ³½á¹¹Èçͼ1Ëùʾ£¬²ÉÓÃATMEL¹«Ë¾Éú²úµÄ51ϵÁе¥Æ¬»úAT89C55ºÍAT89C51ΪºËÐÄ£¬ÆäÖÐÖ÷»ú²ÉÓÃAT89C55¡¢´Ó»ú²ÉÓÃAT89C51¡£´Ó»ú¸ºÔð64µãµÄÊý¾Ý¼ì²â£¬¸÷¼ì²âµãµÄζȺÍʪ¶È¾¹ýΡ¢Êª¶È´«¸ÐÆ÷¼°Æäת»»µç·ת±äΪµçѹÐźţ»¾¹ý¾ØÕóÍøÂç½øÐÐÐźÅÑ¡Ôñ£¬ËùµÃÐźÅË͵½ÏàÓ¦µÄÐźŷŴóÕûÀíµç··Å´ó£¬ÔÙ½øÈëA/Dת»»Æ÷£¬½øÐÐÄ£Êýת»»£¬½«Êý×ÖÁ¿ËÍÈë´Ó»ú£¬ÔÙ¾´Ó»úµÄÊý¾Ý´¦Àí£¬Ë͸øLED½øÐÐÏÔʾ£¬Í¬Ê±¶¨Ê±´«Ë͸øÖ÷»úAT89C55£»Ö÷»ú¸ºÔðÊÕ¼¯¸÷Á¸²ÖÄÚµÄÊý¾Ý(¿É¼à²â50~100¸öÁ¸²Ö)£¬ÊµÏÖÊý¾ÝµÄ±£´æ¡¢´òÓ¡ÒÔ¼°µ÷ÓÃÀúÊ·Êý¾Ý£¬²¢¿ÉѲ»ØÏÔʾ¸÷Á¸²ÖµÄ¼°Ê±ÎÂʪ¶È¼°±¨¾¯×´Ì¬¡£
¡¡¡¡AT89C55/51оƬÊÇÓÉATMEL¹«Ë¾ÍƳöµÄ51ϵÁÐ8λµ¥Æ¬»ú£¬AT89C55ƬÄÚÖ÷ÒªÓÐ20KB Flash´æ´¢Æ÷¡¢256×Ö½ÚƬÄÚRAM£¬4¸ö8λµÄË«Ïò¿ÉÑ°Ö·I/O¿Ú£¬1¸öÈ«Ë«¹¤UART(ͨÓÃÒì²½½ÓÊÕ·¢ËÍÆ÷)µÄ´®Ðнӿڡ¢3¸ö16λµÄ¶¨Ê±Æ÷£¯¼ÆÊýÆ÷¡¢¶à¸öÓÅÏȼ¶µÄǶÌ×ÖжϽṹ£¬ÒÔ¼°Ò»¸öƬÄÚÕñµ´Æ÷ºÍʱÖӵ緡£
¡¡¡¡±¾ÏµÍ³ÖÐÖ÷»úÀûÓÃÁËAT89C55·á¸»µÄ20KBÉÁ´æ×ÊÔ´ÓÀ¾Ã±£´æʵʱµÄ²âÁ¿ÐÅÏ¢¡¢ÀúÊ·µÄ²âÁ¿Êý¾ÝµÈ¹Ø¼ü½á¹û£¬´Ó»úÍê³ÉÊý¾Ý²É¼¯¡¢´«ËÍ¡£Ö÷»úλÓÚ¼à¿ØÊÒ£¬´Ó»úλÓÚ¸÷Á¸²ÖÄÚ£¬Ö÷´Ó»úÖ®¼äÓÐÒ»¶¨µÄ¾àÀ룬ÐźŵĴ«Êä²ÉÓô®ÐÐÒ첽ͨÐÅ·½Ê½£¬AT89C55£¯51µ¥Æ¬»úÄÚ²¿¼¯³ÉµÄUARTÄ£¿é£¬ÊʺÏÓÚͬÆäËû¼ÆËã»úϵͳÒÔ¼°µ¥Æ¬»úÍâÀ©µÄÍâÉèоƬ½øÐÐͨÐÅ£¬¿ÉʵÏÖÈ«Ë«¹¤Òì²½¡¢°ëË«¹¤Í¬²½Ö÷¿ØºÍ°ëË«¹¤Í¬²½´Ó¿ØÈýÖÖ¹¤×÷·½Ê½¡£±¾ÏµÍ³ÖÐÀûÓÃÆäUARTÄ£¿é¹¤×÷ÓÚÈ«Ë«¹¤Ò첽ͨÐÅ·½Ê½£¬ÆäÖÐTXΪ·¢ËÍÏß¡¢RCΪ½ÓÊÕÏߣ¬ÀûÓÃRS-422Çý¶¯Æ÷ºÍ½ÓÊÕÆ÷£¬ÈçMC3487ºÍMC3486оƬ£¬ÊµÏÖÐźŵÄÎȶ¨´«Êä¡£
2´«¸ÐÆ÷Óë¾ØÕó²âÊÔÍøÂçµÄÉè¼Æ
¡¡¡¡²âÁ¿µç·ÓÉ´«¸ÐÆ÷¡¢¾ØÕó²âÁ¿ÍøÂç¡¢¶à·ģÄ⿪¹Ø¼°·Å´óµç·µÄ×é³É¡£²âη¶Î§£º-45¡«+45¡æ£¬¡À0.5¡æ£»²âʪ·¶Î§£º0¡«99£¥RH£¬¡À0.8£¥RH¡£Î¶ȴ«¸ÐÆ÷Ñ¡Óü¯³Éζȴ«¸ÐÆ÷AD590M£¬ÆäÌصãΪÏßÐÔµçÁ÷Êä³ö1¦ÌA/K£»Î¶ȷ¶Î§-55¡«150¡æ£»µçѹÊäÈë/µçÁ÷Êä³ö£»¼¤¹âÐÞÕýµ½¡À0.5¡æУ׼¾«¶È(AD590M)£¬ÏßÐԶȿɴï¡À0.3¡æ/FS¡£Ê¹ÓÃʱ¿É½«AD590M²åÈëÁ¸²Ö¶ÑÄÚ¡£Õë¶Ôʪ¶È²âÁ¿·¶Î§¼°¾«¶ÈÒªÇó£¬Êª¶È´«¸ÐÆ÷Ñ¡ÓÃʪÃô¼¯³É´«¸ÐÆ÷IH-3602¡£ÕâÊÇÒ»ÖÖµçÈÝʽʪÃô´«¸ÐÆ÷£¬ÄÚº¬µ÷Àíµç·ºÍζȲ¹³¥µç·£¬Êä³öΪ0.8¡«4VµÄÖ±Á÷µçѹ£¬¿É¾¶à·¿ª¹ØÖ±½ÓÊäÈëA/Dת»»Æ÷¡£
¡¡¡¡¾ØÕó²âÁ¿ÍøÂçÓɶà·ģÄ⿪¹ØCD4051¡¢CD4052ºÍζȴ«¸ÐÆ÷AD590¡¢Êª¶È´«¸ÐÆ÷IH-3602×é³É£¬ÆäÁ¬½Ó·½Ê½Èçͼ2Ëùʾ¡£²âÎÂ(²âʪ)¾ØÕóÓÉCD4051µÄ8¸öÄ£Ä⿪¹Ø£¬CD4052µÄ4¸öÄ£Ä⿪¹ØºÍ32¸öAD590£¬(32¸öIH-36021)×é³É¡£¸÷¸ö²âÁ¿Ôª¼þµÄѡͨÓɵØÖ·Âë¿ØÖÆ£¬ÆäÖÐÓÉCD4051¡¢CD4052£¬AD590¡¢IH-3602×é³ÉµÄ¾ØÕóÍøÂçÖУ¬Á½Æ¬CD4052µÄ4ÊäÈëÏßA¡¢B¼°CD4051µÄ3ÊäÈëÏßA¡¢B¡¢C¹²7λµØÖ·ÂëÓÉAT89C51µÄP0¿ÚÌṩ£¬CD4052µÄINHÖ±½Ó½Ó¸ßµçƽ£¬¶øCD4051µÄINHÓÉP2¿ÚÌṩ£¬Î¶ȺÍʪ¶ÈÊä³öÐźż´CD4052µÄOUT·Ö±ð½ÓÎÂʪ¶È·Å´óµç·¡£
3ϵͳÈí¼þÉè¼Æ
¡¡¡¡¸Ã¶à·ÎÂʪ¶È¼à²âϵͳµÄÈí¼þ²ÉÓÃÄ£¿é»¯·½·¨Éè¼Æ£¬Ö÷Òª°üÀ¨Ö÷»ú³ÌÐò¡¢´Ó»ú³ÌÐòÁ½´ó²¿·Ö¡£´Ó»ú³ÌÐòÉè¼Æͨ³£ÏȽøÐгõʼ»¯£¬ÈçÉèÖÃÖжϡ¢¶¨Ê±Æ÷¡¢´®Ðпڡ¢Íⲿ¿É±à³ÌÆ÷¼þµÄ³õʼ»¯µÈ£¬È»ºóÑ»·Ö´ÐÐÖ÷Òª¹¦ÄÜ£¬È綨ʱ¡¢Êý¾Ý²É¼¯¡¢Êý×ÖÂ˲¨¡¢ÏÔʾÒÔ¼°¶¨Ê±½«Êý¾Ý´«µÝ¸øÖ÷»ú¡£Ö÷»ú¶¨Ê±½ÓÊÕ´Ó»ú·¢Ë͵IJɼ¯Ðźţ¬±£´æ²¢ÊµÊ±ÏÔʾ£¬ÆäÁ÷³ÌÈçͼ3Ëùʾ¡£Éϵ縴λºóÏÔʾ²»Í¬Á¸²ÖλºÅ¡¢ÎÂʪ¶ÈÖµ¼°Æä²âÁ¿Ê±¼ä£¬²¢µ÷ÓüüÅ̹ÜÀí³ÌÐòÄ£¿é¼°½ÓÊÕ³ÌÐòÄ£¿é¡£Îª·ÀÖ¹³ÌÐòÅÜ·É£¬Ö÷´Ó»ú·Ö±ðÉè¼Æ¿´ÃŹ·µç·ÒÔ±£Ö¤AT89C55ºÍAT89C51Õý³£¹¤×÷¡£
4½áÊøÓï
¡¡¡¡±¾Éè¼ÆÖÐÓÉÓÚ²ÉÓÃÁËAT89C51/55µ¥Æ¬»ú£¬ÐÔÄÜ¿É¿¿µç·¼òµ¥£¬ÊÊÓÚÅúÁ¿Éú²ú£»¶øÇÒ£¬ÏµÍ³Öл¹¿É³ä·ÖÀûÓÃAT8951/55ÖÐδÓõ½µÄÈí¼þÓ²¼þ×ÊÔ´£¬ÏµÍ³ÓÐÔÙ¿ª·¢ÐÔ¡£
²Î¿¼ÎÄÏ×
£Û1£ÝÓàÓÀȨ.ATMEL89ϵÁе¥Æ¬»úÓ¦Óü¼Êõ£ÛM£Ý.±±¾©£º±±¾©º½¿Õº½Ìì´óѧ³ö°æÉ磬2002.
£Û2£ÝËï´«ÓÐ.²â¿ØϵͳÉè¼Æ£ÛM£Ý.±±¾©£º±±¾©º½¿Õº½Ìì´óѧ³ö°æÉ磬2002.