Ò ÌÈÈ ÂÒÈ ÏÚ ıè ÌÈ ÁÓ ÙÒ È Ï ÈappleÂ Ë Ï Â ±µ ± Ò ıè ÏÓÒ ±µ ± ÌÈ ÁÓ ÈappleÂ Ë Ï Ô ÁÒÂapple π Ï Ï ÁÙÒapple ÆÌÈÁÙÒapple È ÂÓÚ ±  ÌÈ ÂÓÚ π Ê ÔÂÏ appleèá ÂÒ - 1 - appleèá ÚÂÓ ÔÂÏ ÏÓÒ ÌÈÁÙÒapple ÌÈ ÁÓ ÈappleÂ Ë Ï Ï È µ Ï ÓÏ Ï È È ÈÎ ÔÁ appleï   ÎÊ ÔÂ Ï ÂÁÒÂappleÓ Ê ÔÂÏ ÂÈÁapple Æ Á Î ÌÈappleÁ appleïâ ÂappleÁ appleï ÂappleÂÂÎÓ Í Áψ Ï È appleè Ó ÍÂappleÈÁ Ó Æ ÂÚ appleèá Í Ó ÂÁ Ï È Æ ÂÏ Ú Ì Â ÌÈ Ù Èapple Ê ÔÂÏ Î Ú Á ÙÓ ÔÂÏ apple Ó ÏÎÓ ÂÁÙÏ Á Ï Ï ÂÏ ÓÁ ÏÚ È ÏÂ Æ Â Â apple ± ÏÂÎ ÍÒ Æ Â Â apple Ï ÏÎÏ Æ Ù ÆÔ ÁÓ ÂÓÈ Ï ÂÓ ÊÚ ÓÂÁ  ÁÂÈÓ Â Â Ï apple ÂÏ ÙÒÓ ÍÈ ÚÈÂ È ÍÈ ÚÓ ÆÔÂÏ apple ÂÏ ÙÒÓ ÏÚ appleú Æ ÂÙ ÂÚ Â Â Ï ÒÁÈÈ È ÏÂ Í ÁÓ Ô È Î Ò ÈÙÏ Æ± Æ ÈÏÚ È Ï ÙÒÓ ÌÂ Ï È Í ÁÓÏ Á Ï È Ú Ï Í Âˆ ÔÈ Æ Æ Á ÂÓÚ ÏÈÁ Ï È Á Ï Ï Â ÏÎ Æ Óapple È apple Ì Â ÚÂ Ï È ÍappleÈ Ï Ô ÙÏ ÌÈ Â ÌÈapple apple ÌÈ ÒÁ Í Ú Ï Ì ÆÍ ÚÈ Æ ÏÎ ÓÏ ÏÚ Ù Èapple ÂÓ Â Â apple UÕÓ Ï ÌÈÈ Â ÈÁ ÌÈÏÈ Ï ÂappleÂ Ù È Î ÌÈÓÂ Ì Â Ò ÌÈ ÌÈÎÏ Ó Æµ Æ ÓÈ Ó ÁÒÂapple ÌÂ È Æ ÂÓÈ Ó Â ÈÁÈ ÌÈÎ Ú ÏÎ ˆ Æ Ô ÁÓ ÂÚˆÓ Ù Â ÈÁ ÌÚ Â ˆÂ appleï Æ ÂÓÈ Ó ÈÓ Â ÈÁÈ ˆÏÂ Ï Ó ˆÂ ÌÂ È Æ Â apple È Á ÂÈ ÂÚÓ Ó Â ÙÒ È Ï ÂÈ Æ Â ÈÒappleÏ Ì ˆ Ò Ï Ï Ô ٠ÏÎ ÂÂÏÏ È ÆÔ ÙÈÚ ÏÂ Ú Âapple Â È Â Î ËÚ Â Í Â Â ÏÎ Ì Ï ÈÙ Ï È Æ Â È Î ÍÈ Â Â Â Î Æ ÎÏ Î ÍÈÓÈ ËË Ò ÍÈ Â Â ÁÒappleÏ Ù ÆÍÈ Â Â Î Ú ÈÂÏ ÍÎ Ì ÆÈ appleâ È Æ Æ Æ
- 2 - ÂÏ Ï Ï ÂÏ ÓÁ ÏÚ È Ï È Æ ÂÏ Ú Ì Â ÌÈ Ù Èapple Ê ÔÂÏ Æ Ù ÏÎÓ ÂÁÙÏ Á ÈÏÈ ÈappleÂ Ë Ï ÔÂ Ù Æ Â Â apple Ï ÏÎÏ µ ± ÂÏ ÔÈ Ó ÂÁÙÏ Á Ï ÏÚ appleú ± Ï Æ Ó Ï ÂÓ ÌÈ Ô apple ± Ï Ï ÂÈ ÌÈ ÌÈÏ Á Vo Á Ó Vs Æ (db) Ï Èˆ  ÈÁÈ Á Ó Ë Io Ii Po Ps Ì Ê ÙÒ Æ I i R o 100 Ω I o R S 100 Ω Vi R i 500 Ω 20 V i R L 300 Ω V s ÂÓÚ Í Ó ± Ï Ï ÂÈ
- 3 - Ï Ï appleê ÈÁ Ó ÆÌÈÈÏ È È È Ó ÏÚ ÌÈÒÒÂ Ó ß ß ÌÈÏ ÚÓ ÌÈapple apple Ï Ï ÂÈ Æ ±15 V Ì È Ó 10 V ÆÌÈapple apple ÌÈÏ ÚÓ ÔÓ Á ÏÎ Ï Â ÂÚÈÈ ÔÈȈ Ï ÓˆÂÚ ÈÒÂappleÈÒ Â ÌÈapple apple ÌÈÏ ÚÓ ÔÓ Á ÏÎ Ï ( V i )  ÓÏ ÌÈ ÙÒÓ È Ï È Ó Ó È Á Ó ÔÓÊ ÂÏ Â Ó Â Âˆ ËË Ò ÌÈÏ ÚÓ ÔÓ Á ÏÎ Â Ú Í Ú Â È Ó Í Ú ËË Ò ÌÈÙ ÏÚ Ì ÆÔÓÊ ÂÏ ˆÂÓ Â Âˆ ˆÂÓ Â Ï È ÚÊÓ R 2 15 kω V i R 1 10 kω V i + + Ï ÚÓ Ï ÚÓ V i + V i + R 1 10 kω R 2 10 kω R 1 kω Ï ÚÓ Ï ÚÓ Ï Ï ÂÈ ÂÓÚ Í Ó
- 4 - Ï ÔÏ Ï ÌÈ ÂÓ ÂÈapple apple Q ÂËÒÈÊapple Ë Â Â Ï ÚÓ Â Ó Ï Ï ÂÈ VBE = 07 V hfe = β = 50 hie = 2 kω Æ Q ÂËÒÈÊapple Ë Ï Â Ú Â apple ˆÓ Æ Â Ú Â apple ÂÈÏÚ ÔÓÒ ÂËÒÈÊapple Ë Ï DC Â Ú Â ËË Ò ÁappleÊ Æ Vo Vi Á Ó ÁÂ Ó Ï ÔÈÙÂÏÈÁ Â Ï ÂÓ Ï ÚÓ ËË Ò ÆÌÈÏ È È Æ V CC = 15 V R 1 15 kω R C 1 kω C 3 C 1 Q V i R 2 10 kω R E 1 kω C 2 R L 1 kω Ï Ï ÂÈ Æß ÂÈ ËË ÂÒÓ ˆÂÓ Á Ó Â Ú Ï ÆÈ ÂËÒÈÊapple Ë ÙÒ Ó Ô apple Ï Ï ß ÂÈ R L Æ D 2  D 1  ÂÈ È Ù Ò ÒÓÂÚ ÏÚ Á Ù Ó ÙÒ Á µ ÂÓÚ Í Ó
- 5 - ÔÓ Á ÏÎ Ï ËÏÂ Ì Ê ÂÈ Á Ó ËË ÒÂ ß ÂÈ Í ÁÓÏ Ú ÆÌÈÓ Ê ÔÓ Á ÏÎ Ï È Ó Í Ú ËÂË Ò È ÏÚ ÔÈȈ ÆÔÓÊ ÂÏ ÌÈ ÂËÒÈÊapple Ë Æ ÆÏ È Â ÌÈ ÂËÒÈÊapple Ë Ï ÒÈÒ ÈÓ Ê ÁappleÊ Ú +V CC = +12 V R 1 1 kω Q 1 C D 1 V s D 2 Q 2 R L 100 Ω R 2 4 kω V CC = 12 V Ï Ï ß ÂÈ (V) 10 0 t 10 Ï Ï ß ÂÈ ÂÓÚ Í Ó
- 6 - µ Ï ÆÔÈÈ apple Ó Â Ó µ Ï Ï ÂÈ Ï ÚÓ ÌÈ ÂÓ Ì ˆÈÎ ÔÈȈ apple Ó Â Âapple  ˆÂÂÈ Ï ÌÈ apple ÌÈ apple Ì Ó Ò ÆÔ apple Æ apple Ó Â Âapple Á Æ apple Ó Â Âapple ÌÂÈ ÁÈË Ó R 3 Ï È Ó ÂÎ Ú ˆÓ Æ R 4 430 Ω R 3 + R 1 16 kω C 1 01 µf C 2 01 µf R 2 16 kω µ Ï Ï ÂÈ ÂÓÚ Í Ó
- 7 - ÌÈ ÚÓ ÈÓ ÌÈ ÁÓ Èapple Ù Æ Â Â apple Ï ÏÎÏ π ÂÏ ÔÈ Ó ÂÁÙÏ Á Ï ÏÚ appleú Ï ÆÈ ÂÈÁ È ÙÒÓ Ô apple ÏÈÎÓ È ÏÎ Æ 1000H  ΠÏÈÁ Ó ÌÈ 20H Ô ÌÈapple apple ÂÏ ÂÏ ÌÈÈ ÂÊ ÌÈ ÙÒÓ ÂÓÎ ŒappleÓ!z  ˆÂ Ù Ï ÓÈ Ê ÌÈ ÍÂ Ú 1021H Â Â Î È ˆÂ Ȉ Â Æ Â ˆÂ Ù ÓÓÓ 8086/88 ÚÓ ÈÓ Ï ÛÒ Ù ÈappleÎ Â Î Æß ÛÈÚÒ 1 CHANGE : MOV SI, 100H 2 MOV CX, 9H 3 MOV AL, 1H 4 CHG : SUB [SI], AL 5 INC SI 6 INC AL 7 DEC CX 8 JNZ CHG 9 RET Ï 8086/88 ÚÓ ÈÓ Ï ÛÒ Ù Â ˆÂ Ù appleâ apple Æ 8,7,6,4 Ô È ÙÒÓ Â Â ÂÚÓ Ó Ó Ò Æ appleâ apple  ˆÂ Ù Úˆ Ó Ó Ò ÂÓÚ Í Ó
- 8 - Ï 8086 ÚÓ ÈÓ ÌÈ ÌÈ È Ù Ò M / IO, ALE, RD, HOLD ÌÈ Â ÔΠÌÂ Æ 8086/88 ÚÓ ÈÓ Ï ÛÒ Ù ÈappleÎ Ï ÚË ÍÈappleÙÏ Âapple apple   ÔÓ Á ÏÎ Á Ï ÒÙ Ï Ï Â apple Ï Ï ˆÓ  BL,BH Æ ÈappleÎ 1 MOV BX, 928FH 2 ADD BH, BL 3 OR BL, 15H π Ï ÌÈÚÈÙÂÓ ÈÎ Ï Ô ˆÈ Èapple appleó ÏÁ Æ 8255 ÂÒÓ ËÏÙØËÏ ÈÎ ÂÁÓ ÁÓ ÈÓ Î ÚÓ 7 ˆ ÏÈÚÙÓ Â Â 300H 303H   ÎÏ ËÏÙØËÏ ÈÂÙÈÓ ÙÂÓÓ ÈÎ Æ Ï Ï ÁÙÒapple Æπ Ï Ï ÂÈ Â ÓÎ Ù Â Ó Â ÂÒÓ (7 SEGMENT DISPLAY) ÌÈÚË ÈÓ ÔÙ ÌÈœÁ' ŸÙœÓ ÏÈÚÙ Ï È Î apple ÏÈÓ Ì ËÏÙÎ ËÏÙÎ PORT A PORT B ËÏ Î PORT C L ËÏ Î PORT C H Æ Âˆ ÈÎ È ÏÚ 3 ÙœÒ ˆ Ï Ì  ˆÂ Ù Ì π ÂÓÚ Í Ó
- 9 - Î ÚÓ ÁÓ ÈÓ PORT A PORT B D 0 D 7 D 0 D 1 D 2 D 3 D 4 D 5 D 6 D 7 7 R ÌÈÚË Ó 7 ˆ ÈÎ Ù Â Ó Â ÂÒÓ (Common Cathode CC) a b c d e f g a f g e d b c PORT D 0 C L PORT D 3 D 4 C H D 7 π Ï Ï ÂÈ Áψ ÆÏ È appleè ÓÏ ÂÓ ÌÈ ˆÂÈ ÂÎÊ ÆÍÂappleÈÁ Ó Â Ï ÌÒ ÙÏ Â È Ú Ï ÔÈ
Ò ıè ±µ ± ÔÂÏ Ï π Ï Ï ÁÙÒapple 82C55A 82C55A OPERATIONAL DESCRIPTION Mode Selection There are three basic modes of operation that can be selected by the system software Mode 0 Basic input output Mode 1 Strobed Input output Mode 2 Bi-directional Bus When the reset input goes high all ports will be set to the input mode with all 24 port lines held at a logic one level by the internal bus hold devices (see Figure 4 Note) After the reset is removed the 82C55A can remain in the input mode with no additional initialization required This eliminates the need for pullup or pulldown devices in all CMOS designs During the execution of the system program any of the other modes may be selected by using a single output instruction This allows a single 82C55A to service a variety of peripheral devices with a simple software maintenance routine The modes for Port A and Port B can be separately defined while Port C is divided into two portions as required by the Port A and Port B definitions All of the output registers including the status flip-flops will be reset whenever the mode is changed Modes may be combined so that their functional definition can be tailored to almost any I O structure For instance Group B can be programmed in Mode 0 to monitor simple switch closings or display computational results Group A could be programmed in Mode 1 to monitor a keyboard or tape reader on an interrupt-driven basis Figure 6 Mode Definition Format 231256 6 The mode definitions and possible mode combinations may seem confusing at first but after a cursory review of the complete device operation a simple logical I O approach will surface The design of the 82C55A has taken into account things such as efficient PC board layout control signal definition vs PC layout and complete functional flexibility to support almost any peripheral device with no external logic Such design represents the maximum use of the available pins Single Bit Set Reset Feature Any of the eight bits of Port C can be Set or Reset using a single OUTput instruction This feature reduces software requirements in Control-based applications 231256 5 Figure 5 Basic Mode Definitions and Bus Interface When Port C is being used as status control for Port A or B these bits can be set or reset by using the Bit Set Reset operation just as if they were data output ports