
HARDWARE IMPLEMENTATION
5.2.5 Dynamic Bus Sizing
In addition to controlling the timing of bus cycle definitions, the memory (and 1/0) subsystem can also dynamically control the effective size of the data bus. Dynamic bus sizing permits:
I. Arbitrary combinations of 16- and
2.Simple connection to
3.Compatibility with
By asserting the Bus Size 16 (BSI6) signal, external hardware can instruct the processor to perform the current transfer on only the low 16 bits of the data bus. If BS 16 is asserted, and the access is 32 bits, the processor automatically runs two bus cycles (see Figure
5.2.6 Processor Status and Control
Another bus master (a processor or an intelligent peripheral, such as a DMA controller), can request to use the 80386 local bus by asserting the 80386's HOLD signal. The processor grants the bus by asserting HLDA (Hold Acknowledge) at the end of the current bus cycle (if any); it will then suspend its next bus cycle until HOLD is deasserted. When the 80386 relinquishes the bus to another master, it drives HLDA active and
80386 interrupts are classified as maskable or
Request) pin. Operating system software can make the 80386 ignore the INTR pin by clearing the Interrupt Enable flag. The processor always samples the NMI pin; many systems use this pin to inform the processor of an impending power failure or a major system error.
Maskable interrupt requests are usually con- nected to INTR through one or more 8259A Programmable Interrupt Controllers (PICs). Each 8259A can handle up to eight interrupt sources; multiple 8259As can be cascaded to provide up to 64 different interrupt sources. The operating system initializes each 8259A with an identifying number (vector) to supply for each interrupt source the PIC monitors. The 8259A supplies this number to the 80386 in response to the processor's interrupt acknowledge bus cycle. The 80386 uses the number to invoke the handler designated to respond to the interrupt.
Asserting RESET places the processor in a pre- defined initial state (in Real Mode with interrupts disabled), and makes it fetch an instruction from physical address FFFFFFFOH.
5.2.7 Coprocessor Control
The 80386 passes instructions and operands to an 80287 or 80387 Numeric Coprocessor by running 110 bus cycles to reserved addresses above the normal 64 kilobyte 110 space. A numeric coprocessor can be selected by A31 high and MilO low. The 80386 uses different com- munication protocols for each coprocessor, pass- ing
The coprocessor asserts BUSY while it is exe- cuting an instruction. The 80386 does not pass the next numeric instruction to the coprocessor until BUSY is negated. Software can synchronize the 80386 with a coprocessor by issuing the