ºÃÎĵµ - רҵÎÄÊéд×÷·¶ÎÄ·þÎñ×ÊÁÏ·ÖÏíÍøÕ¾

СÐÍÊý¿ØÁ¢Ê½Ï³´²¹¤×÷̨Éý½µºÍÖƶ¯×°ÖÃÉè¼Æ - ͼÎÄ

ÓÉ ÌìÏ ·ÖÏí ʱ¼ä£º ¼ÓÈëÊÕ²Ø ÎÒҪͶ¸å µãÔÞ

ACALL CCSCAN JNZ INKI AJMP BEGIN

INKI: ACALL DIS

ACALL DL1ms ACALL DL1ms ACALL CLEAR ACALL CCSCAN JNZ INK2 AJMP BEGIN

INK2: MOV R2,#0FEH

MOV R4,#00H

COLUM: MOV DPTR,#7F01H MOV A,R2 MOVX @DPTR,A INC DPTR INC DPTR MOVX A,@DPTR JB ACC.0,LONE MOV A,#00H AJMP KCODE

LONE: JB ACC.1,LTWO

MOV A,#08H AJMP KCODE

LTWO: JB ACC.2,LTHR

MOV A,#10H AJMP KCODE

LTHR: JB ACC.3,NEXT KCODE: ADD A,R4

PUSH ACC

KON: ACALL DIS

ACALL CLEAR JNZ KON POP ACC RET

NEXT: INC R4

MOV A,R2

4.7ÖжϿØÖÆ

MCS-51ÖжϽṹÓÐÒ»¸öÖØÒªµÄÌØÐÔ£¬¼´Ö´ÐÐÖжϷµ»ØÖ¸ÁîRETIºóÖÁÉÙ»¹ÒªÖ´ÐÐÒ»ÌõÖ¸Áî²ÅÏìӦеÄÖжϡ£ÀýÈçÀûÓÃÍⲿÖжÏÒý½ÅÉϵĵ͵çƽʵÏÖµ¥²½ÔËÐС£INT0ÉèÖÃΪµçƽ´¥·¢·½Ê½£¬ÆäÖж˷þÎñ³ÌÐòÈçÏ£º

WAIT1: JNB P3.2 ,WAIT1

WAIT2: JB P3.2 ,WAIT2 RETI

Îå¡¢²Î¿¼ÎÄÏ×

[1] Òü־ǿ.»úµçÒ»Ì廯ϵͳÉè¼Æ¿Î³ÌÉè¼ÆÖ¸µ¼Êé[M].±±¾©£º»úе¹¤Òµ³ö°æÉç.2007.

[2] ÁÖÊöÎÂ. »úµç×°±¸Éè¼Æ[M]. ±±¾©£º»úе¹¤Òµ³ö°æÉç.1997.

[3] ²ÌÃÀÇÙ£¬ÕÅΪÃñ.MCS-51ϵÁе¥Æ¬»úϵͳ¼°ÆäÓ¦ÓÃ[M].¸ßµÈ½ÌÓý³ö°æÉç.2010Äê.

[4] ֣ѧ¼á£¬Öܱó.΢ÐͼÆËã»úÔ­Àí¼°Ó¦ÓÃ[M].Ç廪´óѧ³ö°æÉç.2008Äê. [5] ɽ¶«²©Ìؾ«¹¤¹É·ÝÓÐÏÞ¹«Ë¾£ºhttp://www.jsinfo.com.cn/index.asp [6] °²»Õ¹ãµÂÏØÁ¢Ðŵç´ÅÀëºÏÆ÷ÓÐÏÞ¹«Ë¾£ºhttp://www.gdlixin.com/ [7] ±±¾©»·Çò¹âÑóÖá³ÐÓÐÏÞÔðÈι«Ë¾£ºhttp://www.cnbearanj.com

СÐÍÊý¿ØÁ¢Ê½Ï³´²¹¤×÷̨Éý½µºÍÖƶ¯×°ÖÃÉè¼Æ - ͼÎÄ

ACALLCCSCANJNZINKIAJMPBEGININKI:ACALLDISACALLDL1msACALLDL1msACALLCLEARACALLCCSCANJNZINK2AJMPBEGININK2:MOVR2,#0FEHMOV
ÍƼö¶È£º
µã»÷ÏÂÔØÎĵµÎĵµÎªdoc¸ñʽ
8t3v30n1ss34ka295j7z7yqpo85se700d57
ÁìÈ¡¸£Àû

΢ÐÅɨÂëÁìÈ¡¸£Àû

΢ÐÅɨÂë·ÖÏí