03.01.2015 Views

80C186EC/80C188EC Microprocessor User's Manual

80C186EC/80C188EC Microprocessor User's Manual

80C186EC/80C188EC Microprocessor User's Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

CONTENTS<br />

8.3.3.1 Default (Fixed) Priority ...................................................................................8-11<br />

8.3.3.2 Changing the Default Priority: Specific Rotation ............................................8-11<br />

8.3.3.3 Changing the Default Priority: Automatic Rotation ........................................8-12<br />

8.3.4 The In-Service Register ..........................................................................................8-12<br />

8.3.4.1 Clearing the In-Service Bits: Non-Specific End-Of-Interrupt ..........................8-13<br />

8.3.4.2 Clearing the In-Service Bits: Specific End-Of-Interrupt .................................8-13<br />

8.3.4.3 Automatic End-Of-Interrupt Mode .................................................................8-13<br />

8.3.5 Masking Interrupts ..................................................................................................8-14<br />

8.3.6 Cascading 8259As ..................................................................................................8-14<br />

8.3.6.1 Master/Slave Connection ..............................................................................8-14<br />

8.3.6.2 The Cascaded Interrupt Acknowledge Cycle: An Example ...........................8-16<br />

8.3.6.3 Master Cascade Configuration ......................................................................8-17<br />

8.3.6.4 Slave ID .........................................................................................................8-17<br />

8.3.6.5 Issuing EOI Commands in a Cascaded System ............................................8-17<br />

8.3.6.6 Spurious Interrupts in a Cascaded System ...................................................8-18<br />

8.3.7 Alternate Modes of Operation: Special Mask Mode ................................................8-19<br />

8.3.8 Alternate Modes of Operation: Special Fully Nested Mode ....................................8-19<br />

8.3.9 Alternate Modes of Operation: The Poll Command ................................................8-20<br />

8.4 PROGRAMMING THE 8259A MODULE..................................................................... 8-20<br />

8.4.1 Initialization and Operation Command Words .........................................................8-20<br />

8.4.2 Programming Sequence and Register Addressing .................................................8-21<br />

8.4.3 Initializing the 8259A Module ..................................................................................8-21<br />

8.4.3.1 8259A Initialization Sequence .......................................................................8-21<br />

8.4.3.2 ICW1: Edge/Level Mode, Single/Cascade Mode ..........................................8-23<br />

8.4.3.3 ICW2: Base Interrupt Type ............................................................................8-25<br />

8.4.3.4 ICW3: Cascaded Pins/Slave Address ...........................................................8-26<br />

8.4.3.5 ICW4: Special Fully Nested Mode, EOI Mode, Factory Test Modes .............8-26<br />

8.4.4 The Operation Command Words ............................................................................8-30<br />

8.4.4.1 Masking Interrupts: OCW1 ............................................................................8-30<br />

8.4.4.2 EOI And Interrupt Priority: OCW2 .................................................................8-30<br />

8.4.4.3 Special Mask Mode, Poll Mode and Register Reading: OCW3 .....................8-34<br />

8.5 MODULE INTEGRATION: THE <strong>80C186EC</strong> INTERRUPT CONTROL UNIT............... 8-36<br />

8.5.1 Internal Interrupt Sources .......................................................................................8-36<br />

8.5.1.1 Directly Supported Internal Interrupt Sources ...............................................8-37<br />

8.5.1.2 Indirectly Supported Internal Interrupt Sources .............................................8-38<br />

8.5.1.3 Using the Interrupt Request Latch Registers ................................................8-39<br />

8.5.1.4 Using the Interrupt Request Latch Registers to Debug Interrupt Handlers ...8-40<br />

8.6 HARDWARE CONSIDERATIONS WITH THE INTERRUPT CONTROL UNIT........... 8-42<br />

8.6.1 Interrupt Latency and Response Time ....................................................................8-43<br />

8.6.2 Resetting the Edge Detector ...................................................................................8-43<br />

8.6.3 Ready Generation ...................................................................................................8-44<br />

8.6.4 Connecting External 8259A Devices ......................................................................8-44<br />

8.6.4.1 The External INTA Cycle ...............................................................................8-45<br />

8.6.4.2 Timing Constraints ........................................................................................8-46<br />

8.7 MODULE EXAMPLES ................................................................................................. 8-47<br />

vii

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!