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