Professional Documents
Culture Documents
Data bus
L - - Contaol
Signol
Opcode opeiand
Kegi'stes
OpcodeRegiste address
opesAnd
Registers in CPU
Memo
opcocde Adress
6 pesand
4oCOH.
CXPADD B, 4ocoH udd Hhe contentof B with contentot
Here 4co0H 1S Hhe effechve address whesa opcud s Presen
opcode Address
Pointes to
pesancd
peund
6) Displace mentt O Index addreseing mode - In his mode the
Content of indexed
registe 1s qdded to h e oddess past of the instauctiom, to
Index
Opcode Regste ER) Addvess A
BsL value
Aisplacement
opeAand
Pointeto
opesand +
Kegistes.s t CPU
tollewing asa the steps that occu. dusing Hhe instauchen cucle.
)Fetch he instAuchom s)The Iistucthion is fetched from the memo
*) +he address of the memory location oill
bc
InstsucHon Rege'stes)
Attesetching opesahm PC s automatically I6vemented L
memo
4) Execution ot ostsue thon- The Contsol unit passes the Sgnaf
tothe funchonal uit of CPU to
czecute the operathien given by instruetien. the esult gen ehafkel
S Stohedl 1n the maln memony a s Sent to an outrut devjze
(Stast)
Locid Content ef pc
to IR
update PC to next
CiddresS
Fxecute Tnstuc Hm
NO Yes
Tnterruph 3avice Iotemt
Data Trons fes
Schemes
We can connect Sevesal Ioputloutput and memont peuph als
micYo proce sso devire may difle in he speed ef cpeatien
Al hese
und data tyansfe.
Usually, when memany cennected to wih the micropsoES
Hhere s not a
maj0s difference t the processing sperel
But Hhe paoblem asi ses cohen exteal peaiphegls Ghe
Connected as iopu/tutput. A sloco ilo device won't be able to
tr2anstc dato at a satisfact7y nate. his might lead to seveje
data losses, o the cevice might get
cdamagecl. to avoid his
pToblem, a numbe of lata tiansfes schemes have bcen 1fLoduea
hidden DMA
I) Transpaient o»
T T6 T
Machine Cyele
Fetch Cycle CFc) Machine
k
Cy cle 2
Execution Ccle (Ec)
Instauction ycle
Instauchion ycle =
opeoce feteh cycle (Fe)+ Execuhon Gycle (Ec)
Machine Cycle 1 Machine Hcle2
"6
process duing opcodc fetch
gene rates address, where Code is
)Dusing Ti state - PC.
stosed
D u n g T2 state - opcode i htad to be hocd by the psocessen
(
Intomupts
is he methed of Cieahing halt dwing
Intesmupt a
tem posay +he
acc e s s
pYogram exeuution gnd allowS peiphe^aL devices to
micropTOCess0
ifh
he miCre psdCessOA qes ponds to that inteaupt
an ISR (Intesnupt Seavice Routine) , whích 1s a short pwgTam?
t instauct h e microproces s O on how to hadle the intenupt
Totenupt
Hardwane IntesTupt Sehtwere Inteupt
Inteup Tntesupt
Creafed
A hordwae intesiupt s nosmally
Handwane Toterupts-
oy the exte^nal device such a8 mouse,
unin9
alloos h e pscgtam nGde the ChscA betere
these inteupts
continuing
interrupts ne also us ed To bHeak an intinite loop, obich
+hese
uld Cause progon be unsespon Cive
Memovy
Add re ss Mne monics
2 o00
LXI SP,2 400 (H)
2003 LXI B, OoooCH)
2 006 PUSH B8
200 POP PSW
200 8 CALL DELAY ,DELAY storting at 2064lH)
OUT o1(H)
201 O HLT
2064 DELAY PUsH H
2065 PUEH 8
Save to 2066 LXI B,80FFCH)
STACK 20 69 L1 Ocx B8
206A MOV A, 8
206B ORA C
206C JNZ L1
206 F RET