»ùÓÚµ¥Æ¬»úµÄÊÓÁ¦±£»¤Æ÷µç·µÄÉè¼Æ
ÕªÒª£ºÈç½ñÕâ¸öʱ´ú±»ÈËÃdzÆÎªÐÅϢʱ´ú£¬ÕâЩÄ꣬¼ÆËã»ú¼¼ÊõÒÔ²»¿É×èµ²Ö®ÊÆÑ¸ÃÍ·¢Õ¹£¬ÔÚ¹¤Òµ¡¢Å©Òµ¡¢¹ú·À¡¢Ò½ÁÆ¡¢¿ÆÑеÈÖÚ¶àÁìÓò·¢»Ó×ÅÖØÒªµÄ×÷Ó㬳ÉΪ¸÷¹úºâÁ¿Æä¹ú¼Ê¾ºÕùÁ¦µÄÖØÒª±ê×¼Ö®Ò»¡£µ¥Æ¬»úÓÐ×ÅÓÅÔ½µÄ¿ØÖÆÄÜÁ¦£¬ÔÚ¹¤Òµ¿ØÖÆ¡¢Ò½ÁÆ¿ØÖÆ£¬Ö»ÄÜÒDZíµÈÁìÓòÓÐ׏㷺µÄÓ¦Ó㬸üÒÔÓÐ×ÅÎޱȵÄÓÅÔ½ÐÔ´Ó¶ø³ÉÁË΢Ð͵ļÆËã»úµÄÒ»¸ö·Ç³£ÖØÒªµÄ·ÖÖ§¡£
±¾ÎÄÖ÷Òª½éÉÜÁ˵¥Æ¬»úµÄ·¢Õ¹¸Å¿öºÍÊÓÁ¦±£»¤Æ÷µÄ·¢Õ¹Àú³Ì£¬ÀûÓõ¥Æ¬»úAT89C51Éè¼ÆÒ»¿îÐÔÄÜÓÅÔ½µÄÊÓÁ¦±£»¤Æ÷¡£ÔÚAT89C51Ð͵¥Æ¬»úµÄÓ²¼þÉèÊ©»ù´¡ÉÏʵÏÖ²â¾à¡¢¸Ð¹â¡¢¶¨Ê±¡¢±¨¾¯ËÄ´ó¹¦ÄÜ¡£ÆäÖвâ¾àÄ£¿éºÍ¸Ð¹âÄ£¿éÖ÷ÒªÊÇÓÉÏàÓ¦µÄ´«¸ÐÆ÷×é³É£¬ÊµÏÖ¶ÔʹÓÃÕß¾àÀëºÍÖÜΧ»·¾³¹âÏßÇ¿¶ÈµÄ¼ì²âºÍ±¨¾¯¹¦ÄÜ¡£¶¨Ê±Ä£¿éÊÇÓɵ¥Æ¬»úµÄÔËÐгÌÐò¹¹³É£¬ÊµÏÖ¶ÔʹÓÃÕßѧϰʱ¼äµÄ¼à²âºÍÌáʾ¹¦ÄÜ¡£½éÉÜÁËÀûÓÃKeilƽ̨ʵÏÖ¶¨Ê±»ã±àÓïÑԵķ½·¨¡£Í¬Ê±Ò²¼òµ¥½éÉÜÁ˸ü¼ÊõµÄÓ¦ÓÃÏÖ×´ºÍ·¢Õ¹Ç°¾°¡£
¹Ø¼ü´Ê£ºµ¥Æ¬»ú£»´«¸ÐÆ÷£»¶¨Ê±Æ÷£»Keil
1
Vision protector circuit design based on
single chip microcomputer
Abstract£ºNow this era known as the information age, these years, the technology of the computer to the irresistible trend of rapid development,and plays an important role in many fields of industry, agriculture,national defense, medical, scientific research, become one of the most important standards to measure the international competitiveness of the countries.Single chip microcomputer as an important branch of microcomputer, with its superior control function, in the industrial control, intelligent instrument system is showing its superiority.
This paper mainly describes the present situation of the development of the single chip microcomputer and the development of vision protector, using single-chip microcomputer AT89C51 design a superior performance vision protector. On the basis of type AT89C51 single chip microcomputer hardware implementation ranging, photographic, timing,alarm, four big functions. The ranging module and photosensitive module is mainly composed of the corresponding sensor, realize the user distance and ambient light intensity detection and alarm function. Timing module is made up of single chip microcomputer to run the program, implementation of the user study time monitoring and prompt functions. Introduced the method of using Keil platform implementation timing assembly language. At the same time also simply introduces the present situation of the application of the technology and development prospects.
Key words: Single chip microcomputer£»transducer£»timer£»keil
2
Ŀ¼
1.Ð÷ÂÛ..........................................................1 1.1 Ñ¡Ìâ±³¾°............................................1
1.2 ÊÓÁ¦±£»¤Æ÷µÄÏÖ×´¼°ÆäÕ¹Íû............................2 1.3 Ö÷ÒªÑо¿ÄÚÈÝ........................................2
2£®ÏµÍ³Ó²¼þÉè¼Æ.............................................4 2.1 8051µ¥Æ¬»ú¼ò½é......................................4 2.2 ´«¸ÐÆ÷¸¨Öú×øÖ±±¨¾¯µç·..............................7 2.3 8051µ¥Æ¬»úµÄÖжÏϵͳ.................................8 2.3.1ÖжϵĸÅÄî...................................8 2.3.2ÖжÏϵͳ½á¹¹ÒÔ¼°ÖжϿØÖÆ.....................9 2.3.3ÖжÏÏìÓ¦¼°Öжϴ¦Àí¹ý³Ì......................12 2.4 ¹âÏß±¨¾¯µç·.......................................13 2.4.1¹âÃôµç×è¿ØÖÆµç·..........................13 2.4.2¹âÏß·¢Éù±¨¾¯µç·..........................13 2.5 ¶¨Ê±±¨¾¯µç·.......................................14 2.5.1µ¥Æ¬»ú¿ØÖƵç·............................14 2.5.2¶¨Ê±Æ÷±¨¾¯·¢Éùµç·........................15 3. ¿ª·¢ÏµÍ³Èí¼þÉè¼Æ.......................................16 3.1 Keil C51Èí¼þ¼ò½é....................................16 3.2³ÌÐòµÄÄ£¿é»¯»®·Ö....................................16 3.3³ÌÐòÄ£¿é............................................18 3.3.1³¬Éù²¨²â¾àÄ£¿é............................18 3.3.2ÍⲿÖжÏÄ£¿é..............................19 3.3.3¶¨Ê±Ä£¿é..................................20 4. ½áÂÛ¼°Õ¹Íû.............................................22 ²Î¿¼ÎÄÏ×.......................................................23 ¸½Â¼.........................................................24
I
µÚÒ»Õ Ð÷ÂÛ
1.1Ñ¡Ìâ±³¾°
Ëæ×Ÿĸ↑·ÅµÄ·¢Õ¹£¬ÏÖÈç½ñÉç»á¶ÔÓÚ¹ã´óÉç»áÈËȺҪÇóÆä֪ʶˮƽԽÀ´Ô½¸ß£¬ÌرðÊÇѧÉú£¬¹Ê¶øÏÖÔÚÊÇѧÉúѧϰµÄ¸ß·åÆÚ£¬¶ÔËûÃǵÄÔì³ÉµÄѧϰѹÁ¦Ò²ÊÇÌØ±ð·±Öصġ£¸ù¾ÝÓйصı¨¸æÏÔʾ£¬ÎÒ¹úÏÖÔÚµÄäÈËÈËÊýÒÔ°ÙÍò¼Æ£¬¸üÉõµÄÊǵͶȽüÊÓµÄÒÔǧÍò¼Æ¡£½üÊÓÑÛÕâÖÖ¼²²¡ÔÚ¶ùͯ¼°ÇàÉÙÄêʱÆÚ¼«Ò×·¢Éú£¬ÒòÆä²»×¢Òâ±£»¤×Ô¼ºÊÓÁ¦£¬¸÷ÖÖµÄ×ø×˺Í×÷Òµ·½Ê½²»ÕýÈ·¡£¸ù¾Ý½üÄêÈ«¹úѧÉúÌåÖʽ¡¿µµ÷²é±¨¸æ½áÂÛÈçÏÂËùʾ¡£¸üÈÃÈËÕ𾪵ÄÊÇ£¬Ô¼ÓÐÈýÊ®¶àÍòµÄÈËÒò¸ß¶È½üÊÓ¶øµ¼ÖÂÑÛä¡£
ͼ1-1 ÊÓÁ¦µ÷²é±í ÎÒ¹úÒòÈ˿ڻùÊýÖÚ¶àÒ²Òò¶Ô¶ÔÊÓÁ¦±£»¤²»¹»ÖØÊÓ£¬¹Ê¶ø½üÊÓÑÛµÄÈËÊý¾ÝÊÀ½çµÚһλ£¬Í¬Ê±½üÊÓÑÛ·¢²¡µÄ¸ÅÂÊÒ²ÊÇÈ«ÊÀ½ç×î¸ßµÄ¡£Ñ§ÉúÒòÐè¾³£ÓÃÑÛ£¬¹Ê¶øÔÚ¹ã´óµÄ½üÊÓÑÛÈËȺÖÐÕ¼¾ÝÁ˾޴󲿷֣¬ÓÐ×ÅÏ൱¶àµÄÈËÊý¡£Öйú¹ã´óѧÉúµÄ½üÊÓ¶ÈÊý»¹ÊǽÏΪƫ¸ßµÄ£¬¶øÇÒÈËÊý³ÊÏÖ³öÖðÄêµÝÔöµÄÇ÷ÊÆ£¬ÇÒµÝÔöµÄ±ÈÀýÏ൱´ó¡£ÕâÖÖÇ÷ÊÆÊ¹µÃÉç»áÈËȺÆÕ±éµÄ¹Ø×¢ºÍµ£ÓÇ¡£ËûÃÇ×÷ÒµÔĶÁ×ËÊÆ²»ÕýÈ·ºÍ×÷ÒµÔĶÁµÄʱ¼ä¹ý³¤Êǵ¼Ö½üÊÓÑÛ²¡µÄÖ÷ÒªÔÒò£¬Òò´ËÉè¼ÆÒ»¿îÈËÐÔ»¯µÄÊÓÁ¦±£»¤Æ÷¶ÔÓÚ¹ã´óѧÉú±£»¤ÑÛ¾¦À´ËµÒâÒåÖØ´ó¡£
1
´óѧÉú 70.34% ÖÐѧÉú 55.22% СѧÉú 22.78%
Ïà¹ØÍÆ¼ö£º