»ùÓÚµ¥Æ¬»ú
½»Í¨Â·¿ÚÐźŵƿØÖÆÏµÍ³
2014Äêɽ¶«´óѧµÚÊ®½ì¡°ÐËÔ´
ͨ±¡±¿Æ¼¼´´Ð´óÈü¼¼ÊõÂÛÎÄ
»ùÓÚµ¥Æ¬»úµÄ½»Í¨µÆ¿ØÖÆÏµÍ³
Ŀ¼
ÕªÒª----------------------------------------------------------------------3
Abstract---------------------------------------------------------------------------3 ÒýÑÔ--------------------------------------------------------------------------------4
1¡¢ ÈÏʶ AT89S52µ¥Æ¬»ú
1.1 At89s52µ¥Æ¬»ú½á¹¹¼ò½é------------------------------5
1.1.1ÄÚ²¿½á¹¹---------------------------------------5 1.1.2Íⲿ½á¹¹---------------------------------------5
1.2 At89s52µ¥Æ¬»úµÄÒý½Å¼°Æä¹¦Äܼò½é--------------------7 1.3 At89s52µ¥Æ¬»úµÄ×îСϵͳ----------------------------7 1.3.1×îСϵͳÔÀíͼ---------------------------------7 1.3.2×îСϵͳ×é³É¼°ÔÀí------------------------------7
2¡¢ Éè¼ÆÒªÇó
2.1 Éè¼Æ±³¾°¡ª¡ª¼ÃÄÏÊоʮ·ºÍË´¸û··¿Ú½»Í¨µÆ-----------8 2.2 »ù±¾ÒªÇó---------------------------------------------8 2.3ÍØÕ¹¹¦ÄÜÒªÇó------------------------------------------9
3¡¢»ùÓÚµ¥Æ¬»úµÄ½»Í¨Â·¿ÚÐźŵƿØÖÆÏµÍ³µÄÉè¼Æ
3.1
ÔËÐÐ˳Ðò--------------------------------------------9 3.2 ϵͳģʽ--------------------------------------------10
3.2.1Õý³£Ä£Ê½---------------------------------------10 3.2.2·±Ã¦Ä£Ê½---------------------------------------10 3.2.3¿ÕÏÐģʽ---------------------------------------10 3.3 µç·Éè¼Æ---------------------------------------------10
4¡¢³ÌÐòÉè¼Æ
- 1 -
»ùÓÚµ¥Æ¬»úµÄ½»Í¨µÆ¿ØÖÆÏµÍ³
4.1³ÌÐòÁ÷³Ìͼ--------------------------------------------11 4.2³ÌÐòÄ£¿é¹¦Äܼ°´úÂë------------------------------------12
4.2.1ÊýÂë¹Ü¶¯Ì¬ÏÔʾģ¿é------------------------------12 4.2.2ÍⲿÖжϷþÎñÄ£¿é--------------------------------14 4.3ÍêÕû³ÌÐò´úÂë------------------------------------------16
5¡¢»ùÓÚµ¥Æ¬»úµÄ·ÂÕæÈí¼þ
5.1 Keil¼ò½é---------------------------------------------24 5.2 Proteus¼ò½é------------------------------------------24 5.3 Ä£Äâ·ÂÕæ----------------------------------------------25
²Î¿¼ÎÄÏ×----------------------------------------------29
- 2 -
»ùÓÚµ¥Æ¬»úµÄ½»Í¨µÆ¿ØÖÆÏµÍ³
µ¥Æ¬»ú½»Í¨Â·¿ÚÐźŵƿØÖÆÏµÍ³
ÕªÒª£º±¾Éè¼ÆÒÔµ¥Æ¬»úAT89S52Ϊ¿ØÖƺËÐÄ£¬ÒԺ졢ÂÌ¡¢»ÆÈýÖÖLED·¢¹â¹Ü×÷ΪֱÐкÍ×óÓÒ¹ÕÍäÒÔ¼°ÐÐÈËͨÐеÄָʾ£¬ÒÔLEDÊýÂë¹Ü×÷Ϊµ¹¼ÆÊ±Ö¸Ê¾£¬Íê³ÉÁËÌâĿҪÇóµÄËùÓй¦ÄÜ¡£ÔÚ´Ë»ù´¡ÉÏÔöÉèÁËLEDµÆºÍÊýÂë¹ÜʵʱÏÔʾϵͳ¸÷ÖÖ״̬£¬»¹¿É¸ù¾Ý½»Í¨Óµ¼·Çé¿ö·Ö±ðÉèÖÃÖ÷¸ÉµÀºÍ´Î¸ÉµÀµÄͨÐÐʱ¼äÒÔ¼°½ô¼±Çé¿öʱ¿É¸ù¾ÝÐèÒªÊÖ¶¯ÉèÖÃij¸ÉµÀ³µÁ¾Í¨ÐÐ״̬£¬½ô¼±Çé¿ö½áÊøºóÔÙת³É×Ô¶¯×´Ì¬£¬²¢¶Ôϵͳ»úе½á¹¹½øÐÐÁËÓÅ»¯Éè¼Æ£¬ÕûÌåÐԺã¬ÈËÐÔ»¯Ç¿¡¢¿É¿¿ÐԸߡ£ ¹Ø¼ü×Ö£ºµ¥Æ¬»ú¡¢AT89S52¡¢LEDÊýÂë¹Ü¡¢Í¨ÐÐģʽ¡¢¿ØÖÆÏµÍ³
Abstract: The design for the control of AT89S52 microcontroller core, red, green, yellow and three LED light tube as a straight and turning left and right directions and pedestrians, LED digital tube as a countdown to the instructions, subjects completed all the required functions. On this basis, the addition of LED lights and a variety of digital real-time display system status, traffic congestion can also be the case were set according to the main road and secondary roads, and emergency travel time can be set manually according to a state of roads to traffic, emergency automatically transferred into the situation after the end of the state, and the system was optimized mechanical structure design, good integrity, humanity, and high reliability. Keywords: MCU AT89S52; LED digital tube; access mode;control system
- 3 -
Ïà¹ØÍÆ¼ö£º