΢»úÔ­ÀíÓë½Ó¿ÚµÚ¶þ°æ(³ÂºìÎÀ°æ)²Î¿¼´ð°¸¼°¸´Ï°¸ÙÒª ÏÂÔر¾ÎÄ

ÈôһƬIntel8255AµÄÈý¸ö¶Ë¿Ú¾ùÖ±½ÓÓÃÓÚ¿ØÖƷDZàÂë¼üÅÌ£¬×î¶àµÄ¼üÊýΪ144¡£

8£®Í¼6.8ÊÇһƬIntel8255AÓëÈíÅÌ¿ØÖÆÆ÷Á¬½ÓµÄÐźŷÖÅ䣬¼ýÍ·±êÃ÷ÁËI/OµÄ·½Ïò¡£¼ÙÉèIntel8255AµÄ¶Ë¿ÚµØַΪ1200H~1203H£¬¸ù¾Ý¸Ãͼ±àдIntel8255AµÄ³õʼ»¯³ÌÐò¡£

·½Ê½0 ·½Ê½2 PC3 ÖжÏÇëÇó

PA0 PA1 ?PA7 PC4 PC5 PC6 PC7 PB0 PB1 PB2 PB3 PB4 PB5 PB6 PB7 PC0 PC1 PC2

Ñ¡ÏìÏì¾ÍÑ¡²½¶Áд´ÅÆô´ÅµçͬË÷D D ? D 017 ͨӦӦÐ÷Ôñ½øÑ¡Ñ¡ÅÌÓÃÍ·»ú²½ÒýµÀ£¨£¨Ñ¡Ê¹×¼´«Çý·½Í¨Í¨Ñ¡ ³öÈëÔñÄܱ¸¸Ð¶¯ÏòÔñÈíÅÌÇý¶¯Æ÷ £©£©Æ÷Æ÷ºÃ

ͼ6.8 Ï°Ìâ8µÄͼʾ

0 CRC ½â£ºIntel8255AµÄ³õʼ»¯³ÌÐòΪ£º

MOV DX£¬1203H MOV AL£¬0C0H OUT DX£¬AL

MOV AL£¬00001001B

OUT DX£¬AL £»¿ª·ÅÊäÈëÖжϣ¬PC4=1 MOV AL£¬00001101B

OUT DX£¬AL £»¿ª·ÅÊä³öÖжϣ¬PC6=1

9£®ÔÚ8088×îСϵͳÖУ¬ÓÉһƬIntel8255A¹¹³ÉÊäÈë/Êä³ö½Ó¿Ú£¬ÒªÇó¶Ë¿ÚµØַΪ240H~243H£¬Intel8255AµÄA¿Ú½ÓÊäÈëÉ豸£¬´ÓA¿Ú¶ÁÈëÊý¾Ý²¢¶ÔÕâÒ»Êý¾ÝµÄµÍ4λȡ·´£¨¸ß4λ²»±ä£©ºó£¬´ÓB¿ÚÊä³ö¡£ÇëÍê³ÉÏÂÁÐÎÊÌ⣺

£¨1£© Éè¼ÆIntel8255AƬѡÐźŵÄÒëÂëµç·£»

£¨2£© ±àдIntel8255AµÄ³õʼ»¯¼°ÊäÈë/Êä³ö³ÌÐò¶Î¡£ ½â£º£¨1£©Ò»Öֲο¼ÒëÂëµç·£º

ͼ6.9 Ï°Ìâ9µÄ²Î¿¼ÒëÂëµç·

£¨2£©MOV DX£¬0243H MOV AL£¬10011001B OUT DX£¬AL MOV DX£¬0240H

IN AL£¬DX XOR AL£¬0FH MOV DX£¬0241H OUT DX£¬AL HLT

10£®¼òҪ˵Ã÷Intel8237AµÄËÄÖÖ´«ËÍ·½Ê½¡£ ´ð£º8237AÔÚDMA´«ËÍʱµÄËÄÖÖ¹¤×÷·½Ê½£º £¨1£©µ¥×Ö½Ú´«ËÍ·½Ê½

ÿ´ÎDMAÇëÇó½ö´«ËÍÒ»¸ö×Ö½ÚÄÚÈÝ¡£ £¨2£©Êý¾Ý¿é´«ËÍ·½Ê½

µ±8237A¹¤×÷ÔÚÊý¾Ý¿é´«ËÍ·½Ê½Ï£¬Ò»µ©¿ªÊ¼ÁËDMA²Ù×÷£¬¾ÍÁ¬ÐøµØ½øÐÐ×Ö½ÚÊý¾Ý´«ËÍÖ±µ½µ±Ç°×Ö½Ú¼ÆÊýÆ÷¼õµ½0£¬ÔÙ¼õÖÁ0FFFFHºó£¬²úÉúÓÐЧµÄEOPÐźÅΪֹ¡£

£¨3£©ÇëÇó´«ËÍ·½Ê½

ÇëÇó´«ËÍ·½Ê½ÀàËÆÓÚÊý¾Ý¿é´«ËÍ·½Ê½£¬µ«Ã¿´«ËÍÒ»¸ö×Ö½Úºó£¬8237A¶¼Òª¶ÔDREQÐźŽøÐмì²é£¬ÈôDREQÐźÅÎÞЧ£¬¾ÍÔÝÍ£´«ËÍÊý¾Ý¡£

£¨4£©¼¶Áª·½Ê½

8237A¿ÉÒÔ¶àƬ¼¶ÁªÊ¹Óã¬ÒÔÀ©Õ¹DMAͨµÀÊý¡£

¸´Ï°¸ÙÒª£º

µÚÒ»Õ ¼ÆËã»ú»ù´¡ÖªÊ¶

֪ʶҪµã£ºR½øÖÆÊý±íʾ ÊýÖƼäת»» ÓзûºÅÊý±íʾ ¸¡µãÊýµÄ¹æ¸ñ»¯±íʾ

ÊýµÄÔËË㣨ËãÊõÔËËã¡¢Âß¼­ÔËËã¡¢²¹ÂëÔËË㣩 BCDÂë¡¢ASCIIÂë¡¢ºº×Ö±àÂë ÆæżУÑé

µÚ¶þÕ 8086/8088ϵͳ½á¹¹ ֪ʶҪµã£º

8086/8088µÄÄÚ²¿½á¹¹ 8086/8088µÄÄÚ²¿¼Ä´æÆ÷ 8086/8088µÄÍⲿÒý½Å 8086/8088¶Á/д²Ù×÷ʱÐò Âß¼­µØÖ·ÓëÎïÀíµØÖ·

8086ϵͳ´æ´¢Æ÷½á¹¹¼°¶Á/д²Ù×÷¹ý³Ì ¶ÑÕ»

µÚÈýÕ 8086/8088ϵͳ½á¹¹ ֪ʶҪµã£º Ñ°Ö··½Ê½ Ö¸Áîϵͳ

µÚËÄÕ »ã±àÓïÑÔÔ´³ÌÐòÉè¼Æ ֪ʶҪµã£º »ù±¾¸ÅÄî αָÁî

»ã±àÓïÑÔ³ÌÐòÉè¼Æ INT 21HÖ¸ÁîµÄʹÓà µÚÎåÕ ´æ´¢Æ÷×éÖ¯ ֪ʶҪµã£º ´æ´¢Æ÷·ÖÀà

´æ´¢ÏµÍ³µÄ·Ö¼¶½á¹¹ ´æ´¢Æ÷µÄÖ÷ÒªÖ¸±ê °ëµ¼Ìå´æ´¢Æ÷ ´æ´¢Æ÷µÄÀ©Õ¹ ƬѡÐźŵĴ¦Àí

µÚÁùÕ ²¢ÐÐÊäÈë/Êä³ö½Ó¿Ú ֪ʶҪµã£º I/O½Ó¿ÚµÄ¹¦ÄÜ I/O½Ó¿ÚµÄ»ù±¾½á¹¹ I/O½Ó¿ÚµÄ±àÖ··½Ê½ CPUÓëÍâÉèµÄÐÅÏ¢½»»»·½Ê½ ¼òµ¥I/O²¢ÐÐ½Ó¿Ú Intel8255A¼°ÆäÓ¦ÓÃ