µ¥Æ¬»ú¿Î³ÌÉè¼Æ - Õ¼¿Õ±È¿Éµ÷µÄ·½²¨·¢ÉúÆ÷

Õ¼¿Õ±È¿Éµ÷µÄ·½²¨·¢ÉúÆ÷

µÚ5Õ ϵͳµ÷ÊÔÓë²âÊÔ½á¹û·ÖÎö

5.1 ʹÓõÄÒÇÆ÷ÒDZí

µ¥Æ¬»ú AT89C51 ʾ²¨Æ÷ OSCILLOSCOPE ÉÏÀ­µç×è RESPACK-8 LEDÆ߶ÎÂëÏÔʾÆ÷ 7SEG-DIGITAL

5.2 ϵͳµ÷ÊÔ

¸ù¾ÝϵͳÉè¼Æ·½°¸£¬±¾ÏµÍ³µÄµ÷ÊÔΪÈí¼þµ÷ÊԺͷÂÕæµ÷ÊÔ¡£ 5.2.1Èí¼þµ÷ÊÔ

ÓÃKeil C±àÒë´Ë´Î¿Î³ÌÉè¼ÆËùÓõĻã±àÓïÑÔ³ÌÐò£¬²é¿´ÊÇ·ñÓÐÓï·¨´íÎ󣬵±Ã»ÓÐÓï·¨´íÎóÖ®ºó£¬±àÒëÉú³ÉhexÎļþ¡£ 5.2.2·ÂÕæµ÷ÊÔ

Èí¼þµ÷ÊÔ½áÊøºó»áÉú³ÉÒ»¸öhexÎļþ¡£ÓÃProteus»­·ÂÕæµç·ͼ£¬»­Íêµç·ͼºó½«hexÎļþдÈ뵥Ƭ»úAT89C51£¬È»ºó·ÂÕæ[8]¡£

5.3 ²âÊÔ½á¹û

´Ë´ÎϵͳÉè¼Æ½á¹û½ÏºÃ£¬ÔÚ·ÂÕæͼÉϽøÐзÂÕæʱ£¬¿ÉÒÔ·¢ÏÖ£¬LEDÏÔʾÆÁÉϵijõʼֵΪ50£¬Ê¾²¨Æ÷Êä³ö·½²¨Õ¼¿Õ±ÈΪ1/2¡£°´¶¯²¦Â뿪¹ØK1£¬LEDÏÔʾÆÁÉÏÏÔʾµÄÊýÖµ¼Ó1£¬°´¶¯²¦Â뿪¹ØK2£¬LEDÏÔʾÆÁÉÏÏÔʾµÄÊýÖµ¼Ó5£¬Ö±µ½´ïµ½99ºóÌø»Ø50¡£

12

Õ¼¿Õ±È¿Éµ÷µÄ·½²¨·¢ÉúÆ÷

½á ÂÛ

±¾´ÎµÄµ¥Æ¬»ú¿Î³ÌÉè¼Æ½ÏΪ³É¹¦£¬ÎÒ²ÉÓõ¥Æ¬»úAT89C51Ϊռ¿Õ±È¿Éµ÷·½²¨·¢ÉúÆ÷µÄ¿ØÖƺËÐÄ£¬Í¨¹ýÁ½¸ö°´¼üʵÏÖÕ¼¿Õ±ÈµÄ²»Í¬·ù¶ÈµÄµ÷½Ú£¬°´¶¯K1ʱ±ä»¯·ù¶ÈΪ1£¬°´¶¯K2ʱ°´¶¯·ù¶ÈΪ5¡£Í¨¹ý°´¼ü¿ØÖÆÕ¼¿Õ±ÈµÄ±ÈÖµ¿ÉÔÚ1:99:-99:1Ö®¼ä±ä»¯¡£

ϵͳÖ÷Òª°üÀ¨µ¥Æ¬»ú×îСϵͳ¡¢LEDÆ߶ÎÂëÏÔʾ¡¢Âö³åÊä³ö·½²¨¡¢°´¼üµç·¡¢Ê±Öӵ緡¢¸´Î»µç·ÒÔ¼°Ê¾²¨Æ÷ÏÔʾģ¿é¡£×îÖÕÖÆ×÷³öÒ»¸ö¿ÉÒÔµ÷½ÚÕ¼¿Õ±ÈµÄ·½²¨·¢ÉúÆ÷¡£

ϵͳ²ÉÓõ¥Æ¬»ú±à³ÌµÄ·½·¨À´ÊµÏÖ£¬Í¨¹ý±à³ÌµÄ·½·¨¿ØÖÆÐźŵÄÕ¼¿Õ±È£¬¶øÇÒÔÚÓ²¼þµç·²»±äµÄÇé¿öÏ£¬Í¨¹ý¸Ä±ä³ÌÐòÀ´ÊµÏÖÕ¼¿Õ±ÈµÄ±ä»»¡£´ËÍ⣬ÓÉÓÚͨ¹ý±à³ÌµÄ·½·¨²úÉúµÄÊÇÊý×ÖÐźţ¬Òò´ËÐźŵľ«¶ÈºÜ¸ß£¬±ÜÃâÁ˲ÉÓõ¥Æ¬º¯Êý·¢ÉúÆ÷µÄÐźÅƵÂʲ»Îȶ¨ÒÔ¼°²ÉÓÃËøÏàʽƵÂʺϳÉÆ÷µÄµç·¸´ÔÓ£¬ÆµÂʸ²¸ÇϵÊýÄÑÒÔ´ï±êµÈȱµã¡£

ͨ¹ýÈíÓ²¼þµÄ·ÂÕæµ÷ÊÔ£¬ÊµÏÖÁ˱¾´ÎÉè¼ÆµÄ»ù±¾¹¦ÄÜ£ºÕ¼¿Õ±È¿Éµ÷·½²¨·¢ÉúÆ÷¡£µ«ÔÚʵ¼ÊÓ¦ÓÃÖУ¬¹¦Äܲ»½ö½öÓÚ´Ë£¬Í¨¹ý¶Ô³ÌÐòµÄÉÔ×öÐ޸ģ¬»¹¿ÉÒÔʵÏÖƵÂÊÓëÕ¼¿Õ±È¶¼¿Éµ÷µÄ·½²¨£¬ÕýÏÒ²¨£¬Èý½Ç²¨µÈ²¨Ðεķ¢ÉúÆ÷¡£

13

Õ¼¿Õ±È¿Éµ÷µÄ·½²¨·¢ÉúÆ÷

²Î¿¼ÎÄÏ×

[1] ÀîÕý·¢.µç¹¤µç×Ó¼¼Êõ»ù´¡ÊµÑé[M].±±¾©:¿Æѧ³ö°æÉç,2005.110-115.

[2] ÀîȺ·¼,ÕÅÊ¿¾ü,»Æ½¨.µ¥Æ¬Î¢ÐͼÆËã»úÓë½Ó¿Ú¼¼Êõ£¨µÚ2°æ£©[M].±±¾©:µç×Ó¹¤ Òµ³ö°æÉç.2005.68-76.

[3] ÖÜÓÀ½ð.Ä£Äâµç×Ó¼¼ÊõÓëÓ¦ÓÃ[J].Î÷°²£ºÉÂÎ÷¹ú·ÀѧԺµç×Ó½ÌÑÐÊÒ.2005.34-

56.

[4] Öì־ΰ,ÁõÏæÔÆ.µ¥Æ¬»ú¼°Ç¶ÈëʽϵͳµÄÓ¦ÓÃ[J].±±¾©:±±¾©º½¿Õº½Ìì´óѧ³ö°æ Éç,2010.£¨06£©.

[5] ÕÅÒã¸Õ.µ¥Æ¬»úÔ­Àí¼°Ó¦ÓÃ[M].¸ßµÈ½ÌÓý³ö°æÉç.2003:160-190. [6] ³ÂÎÄ·å.»ùÓÚÐéÄâÒÇÆ÷¼ì²âϵͳ[J].µ¥Æ¬»úÓ¦ÓÃ.2005,23(10).78-80.

[7] ±ß´ºÔ¶,Íõ־ǿ.MCS-51µ¥Æ¬»úÓ¦Óÿª·¢ÊµÓÃ×Ó³ÌÐò[M].±±¾©:ÈËÃñÓʵç³ö°æ É磬2005.396-398.

[8] ÖÜÈó¾°.»ùÓÚProteusµÄµç·Ó뵥Ƭ»ú·ÂÕæϵͳÉè¼ÆÓë·ÂÕæ[J].±±¾©º½¿Õº½Ìì ´óѧ³ö°æÉç.2006.27-32. .

14

Õ¼¿Õ±È¿Éµ÷µÄ·½²¨·¢ÉúÆ÷

¸½Â¼1 ³ÌÐò

COUNT AS M ORG LJMP

ORG LJMP ORG LJMP START: SETB SETB SETB SETB CLR SETB SETB CLR MOV MOV MOV MOV SETB SETB MOV MOV MOV MOV

MOV TOP:SETB EQU 30H EQU 30H EQU 35H 0000H START 0003H INT00 0013H INT11 EX0

PX0 IT0 EX1 PX1 IT1 EA P1.5

TMOD,#21H TH1,#38H TH0,#0B1H TL0,#0E0H TR0 TR1

DPTR,#TABLE M,#50 P0,#3FH P2,#6DH AS,#0

TR1

14

Õ¼¿Õ±È¿Éµ÷µÄ·½²¨·¢ÉúÆ÷

SETB P1.0 CLR P1.1 MOV TH0,#0B1H MOV TL0,#0E0H

MOV AS,#0

MOV B,#10 MOV A,M MOV B,#100 DIV AB JZ TIME1 MOV B,#10 CLERK:SETB P1.5

LCALL DELAY CLR P1.5 LCALL DELAY SETB P1.5 LCALL DELAY CLR P1.5 MOV M,#50 LCALL SHOW LJMP TOP TIME1:JBC TF1,NEXT

SJMP TIME1 NEXT:INC AS

MOV A,M CJNE A,AS,TIME1 CLR P1.0 SETB P1.1 CLR TR1 TIME0:JBC TF0,TOP

SJMP TIME0 INT00:JNB P1.2,LOOP1

INC M LCALL SHOW RETI

LOOP1:DEC M

LCALL SHOW

15

ÁªÏµ¿Í·þ£º779662525#qq.com(#Ì滻Ϊ@) ËÕICP±¸20003344ºÅ-4