»ùÓÚSTC89c52RCµ¥Æ¬»úµÄÖÇÄÜ·çÉÈÉè¼Æ ÏÂÔØ±¾ÎÄ

»ùÓÚSTC89C52RCµ¥Æ¬»úµÄÖÇÄÜ·çÉÈÉè¼Æ

ÖÓÅàÎÄС×é

ÖØÇì´óѧ

¹âµçÐÅϢЭ»áµç×ÓÉè¼Æ¾ºÈü

2014Äê6ÔÂ10ÈÕ

¹âµçÐÅϢЭ»áµç×ÓÉè¼Æ¾ºÈü ÖÓÅàÎÄС×é

Ŀ¼

ÕªÒª .............................................................................. 3 ABSTRACT ........................................................................... 4 Ò».×ÜÌå·½°¸ºÍ¹¦ÄÜÉè¼Æ .............................................................. 5 1.1 ¹¦ÄÜÏêϸÃèÊö .................................................................. 5 1.2Éè¼ÆË¼Â· ....................................................................... 6 ¶þ.Ïêϸµç·Éè¼Æ .................................................................... 7 2.1µç»úµ÷ËÙµç· ................................................................... 7 2.2°´¼ü¼ì²âºÍLEDָʾ ............................................................. 8 2.3·äÃùÆ÷Ä£¿é ..................................................................... 9 2.4 LCD1602ÏÔʾ²¿·Ö ............................................................... 9 2.5ºìÍâ½ÓÊÕÄ£¿é .................................................................. 10 µÚÈý½Ú.ϵͳÈí¼þÉè¼Æ ............................................................... 11 3.1Ö÷³ÌÐòÁ÷³Ìͼ .................................................................. 11 3.2ËÙ¶ÈÑ¡Ôñ³ÌÐò¿òͼ .............................................................. 12 3.3ģʽѡÔñ¿òͼ .................................................................. 13 3.4¶¨Ê±Æ÷0³ÌÐò¿òͼ .............................................................. 13 3.5¶¨Ê±Æ÷1³ÌÐò¿òͼ .............................................................. 14 3.6¶¨Ê±¹¦ÄÜ¿òͼ .................................................................. 14 3.7LCDÏÔʾ¿òͼ ................................................................... 15 ½áÊøÓï............................................................................ 16 ¸½Â¼1£ºÔ´³ÌÐò .................................................................... 17 ¸½Â¼2£ºÊµÎïÕÕÆ¬ .................................................................. 35

2

¹âµçÐÅϢЭ»áµç×ÓÉè¼Æ¾ºÈü ÖÓÅàÎÄС×é

ÕªÒª

±¾Ð¡×éÑ¡ÔñµÄÌâĿΪDÌ⡪¡ª¡°ÖÇÄÜ·çÉÈÉè¼Æ¡±£¬Êµ¼ÊÍê³ÉÁËËùÓÐÌâÉèÒªÇ󲿷֣¬ÒÔ¼°¾ßÓÐʵÓõĴ´ÒâÉè¼Æ¡£

±¾ÎĽéÉÜÁËһ̨ÒÔSTC89C52Ϊ¿ØÖƺËÐÄ£¬¼¯µ÷ËÙ£¬¶àģʽ£¬¶¨Ê±£¬Òº¾§ÏÔʾ£¬ºìÍâÒ£¿Ø¹¦ÄÜÒ»ÌåµÄÖÇÄÜ·çÉÈ¿ØÖÆÆ÷Éè¼Æ¹ý³Ì¡£½«´«Í³µÄ·çÉÈÓõ¥Æ¬»úÀ´¿ØÖƺ󼫴óÔö¼ÓÁËÆäÖÇÄÜ»¯ºÍʵÓû¯£¬Í¬Ê±Ò²ÔöÇ¿Á˹¦ÄÜÐÔ¡£

¹Ø¼ü×Ö£º STC89C52µ¥Æ¬»ú £¬ ÖÇÄÜ·çÉÈ

3

¹âµçÐÅϢЭ»áµç×ÓÉè¼Æ¾ºÈü ÖÓÅàÎÄС×é

ABSTRACT

Our team chose the subject D called \the requirements in this subject. Besides, we add our own ideas and creativity to make our design more functional.

This report mainly introduces that we use the STC89C52 as the central controller, to design a intelligent fun integrated with speed setting, multi-mode, timer, LCD display and infrared remote control. After using the MCU to control the traditional fan, we have greatly improved its intelligence ,practicability, and also, the functionality.

Keywords: STC89C52 Single chip microcomputer Intelligent fan

4