Documente Academic
Documente Profesional
Documente Cultură
MicroprocessorandInterfaces
MinimumMode
Address/Databus
/
Status
Control
Interrupt
DMA
Address/Data Bus
Address/DataBus
theselinesservetwofunctions.As anaddressbusis20bits
longandconsistsofsignallinesA0throughA19.A19
representstheMSBandA0LSB.A20bitaddressgivesthe
8086a1Mbytememoryaddressspace.Moreoverithas
an independentI/Oaddressspacewhichis64Kbytesin
i d
d t I/O dd
hi h i 64K b t i
length
The 16 data bus lines D0throughD15areactually
multiplexedwithaddresslinesA0throughA15respectively.
lti l d ith dd
li
A0 th
h A15
ti l
Bymultiplexedwemeanthatthebusworkasanaddress
busduringfirstmachinecycleandasadata busduringnext
machine cycles D15 is the MSB and D0 LSB
machinecycles.D15istheMSBandD0LSB
Whenactingasadatabus,theycarryread/writedatafor
memory,input/outputdataforI/O devices,andinterrupt
type codes from an interruptcontroller
typecodesfroman
interrupt controller
Status signal
Statussignal
ThefourmostsignificantaddresslinesA19through
A16arealsomultiplexedbutinthiscasewithstatus
signalsS6throughS3.Thesestatusbitsareoutputon
thebusatthesametime thatdataaretransferredover
theotherbuslines
Bit S4andS3togetherfroma2bitbinarycodethat
identifies which of the 8086 internal segment registers
identifieswhichofthe8086internalsegmentregisters
areusedtogeneratethephysicaladdressthatwas
outputontheaddressbusduringthecurrentbuscycle
Code S4S3=00identifiesaregisterknownas
S4S3 = 00 identifies a register known as
extra segmentregisterasthesourceofthesegment
address
Status signal
Statussignal
S4
S3
Segment
Register
Extra
Stack
Code
Data
Control Signals
ControlSignals
The
Thecontrolsignalsareprovidedtosupport
control signals are provided to support
the8086memoryI/O interfaces.Theycontrol
functions such as when the bus is to carry a
functionssuchaswhenthebusistocarrya
validaddressinwhichdirectiondataaretobe
transferred over the bus when valid write
transferredoverthebus,whenvalidwrite
dataareonthe busandwhentoputreaddata
on the system bus
onthesystembus
Control Signals
ControlSignals
ALEisa pulseto logic1thatsignalsexternalcircuitrywhen
avalidaddresswordis onthebus.Thisaddressmustbe
latchedinexternalcircuitryonthe1to0edgeofthepulse
atALE
Anothercontrolsignalthatisproducedduringthebuscycle
isBHE_bar bankhighenable.Logic0 onthisusedasa
memoryenablesignalforthemostsignificantbytehalf
off thedatabusD8throughD1.Theselinesalsoservesa
th d t b D8 th
h D1 Th
li
l
secondfunction,whichisastheS7statusline
UsingtheM/IO_bar andDT/R_bar lines,the 8086 signals
whichtypeofbuscycleisin
hi h t
fb
l i i progressandinwhichdirection
d i hi h di ti
dataaretobetransferredoverthebus
Control Signals
ControlSignals
The logic level of M/IO_bar tellsexternal
circuitry whetheramemoryorI/Otransferistaking
placeover thebus.Logic1atthisoutputsignals
a memoryoperationandlogic0anI/Ooperation
y p
g
p
The direction of datatransferoverthebusissignaled
bythelogicleveloutputatDT/R_bar.Whenthisline
is logic1duringthedatatransferpartofabus
logic 1 during the data transfer part of a bus cycle,
cycle,
thebusisin thetransmitmode.Therefore,dataare
eitherwrittenintomemoryoroutputtoanI/Odevice
Onthe
On the otherhand,logic0atDT/R_bar
other hand logic 0 at DT/R bar signalsthatthe
signals that the
busisinthereceivemode.This correspondstoreading
datafrommemoryorinputofdatafromaninputport.
Control Signals
ControlSignals
ThesignalreadRD_bar andwriteWR_bar indicates
thatareadbuscycleorawritebus cycleisinprogress.
The8086switchesWR_bar tologic0to signalexternal
devicethatvalidwriteoroutputdataareonthebus
p
On theother hand,RD_bar indicates that the8086is
performingareadofdataofthe bus.Duringread
operations, one other control signal is also supplied.
operations,oneothercontrolsignalisalsosupplied.
ThisisDEN_bar (data enable) andit signalsexternal
deviceswhentheyshouldputdataonthebus
There is one other controlsignal
control signal thatisinvolved
that is involved
with thememoryandI/Ointerface.Thisisthe READY
signal
Control Signals
ControlSignals
READY
READYsignalis
signal is used toinsertwaitstatesinto
to insert wait states into
the buscyclesuchthatitis extendedbya
number of clock periods This signal
numberofclockperiods.Thissignal
is providedbyanexternalclockgenerator
device and can be supplied by the memory or
deviceandcanbesuppliedbythememoryor
I/Osubsystemtosignalthe8086whenthey
are ready to permitthedatatransferto
arereadyto
permit the data transfer to be
be
completed
Interrupt signals
Interruptsignals
Thekeyinterruptinterfacesignalsareinterrupt
y
p
g
p
request(INTR)andinterruptacknowledge
(INTA_bar)
INTR is an inputtothe
input to the 8086 that canbeusedby
can be used by
anexternaldevicetosignalthatitneedtobe
serviced
Logic1atINTRrepresentsanactiveinterrupt
request.Whenaninterruptrequesthas been
recognized by the8086 it indicates this fact to
recognizedbythe8086,itindicatesthisfactto
externalcircuitwithpulsetologic0atthe
INTA_bar output
Interrupt signals
Interruptsignals
The
TheTEST_bar
TEST bar inputisalsorelatedtotheexternal
input is also related to the external
interruptinterface.Executionofa
WAIT instructioncausesthe8086tocheckthe
logiclevelattheTEST_bar input
Ifthe
If the logic1isfound,the
logic 1 is found, the MPUsuspend
MPU suspend
operation andgoesintotheidlestate.The8086
no longerexecutesinstructions,insteadit
g
repeatedlychecksthelogiclevelof theTEST_bar
inputwaitingforits transitionbacktologic0
Interrupt signals
Interruptsignals
AsTEST_bar switchesto0,executionresumewiththe
nextinstructionintheprogram.Thisfeaturecanbe
usedtosynchronizetheoperationofthe8086toan
eventinexternalhardware
Therearetwomoreinputsintheinterruptinterface:
thenonmaskable interruptNMIandtheresetinterrupt
RESET
Onthe 0to1 transition ofNMIcontrolispassedto a
nonmaskable interruptserviceroutine.TheRESET
input is used to provide a hardware reset for the 8086
inputisusedtoprovideahardwareresetforthe8086.
SwitchingRESETtologic0initializesthe internal
registerofthe8086andinitiatesaresetserviceroutine
ReadCycleTimingDiagram
f MinimumMode
for
d
BusRequestandBusGrantTimings
in MinimumModeSystem
d