You are on page 1of 26
Agha paccepser’ Tre roluckton i op gots Incl das, 8 bile MCP a A Operedeca on single +#¥ P dt han thee oddun Loves Bnd P dota Sires Te! can OFOGIE whi n SMHE chat Getwuaty’s The fe ok tye asm Seen wen Sop phy Cole vient 4 camo] BSAA VErSon Gr O emus. ene tow 8 Bie caleba ud (A0~Aa) LE doken ut Dn Da) wilt Rahal pans ey metered 8. TH Consists of wartous fundzional biota petow, eRegisew ALU ansiemction Secadin 4 machine cyst Ontodir endear ablen x Adhawr) dake lowbler setnetirunten | pezaemanicen agin st a gptenepte contra! ngeiol Tho contvok Attending a Conterol raster pe ona oe BOR OT peared onit aR ALY Ragin . = wk Pakeret datn bus aT MS apne he co lo feser ite spams pen py v cata | PEPE MESS tel alan ecfint Functional Hous ogtam a Base: oni = Rates | Gensrol Purpose vgistens A RODE HAL ote PbIE *GiLew kh BC-DELHL Pats ame [b-ble nyseer For RE FBILA pats B— hignn oven bye Ca tank. olan bye. HL poar acts oy dat potnier/memery Pointer. au. THY ps ALU he 2 WRU: c eee rape 6 atenerabeler’ poomn ig prota date Suge Tile Teale of operetsion HE ato, pare poy > Plz Ac Pantin OY Ea ene a ge ie dies bagten Wible Da 4 Dy) P-Pttey flog > Nureer 4 ones TH acemutker Suen parity mano Flag dee. Octol Porat moans flog Yese> CY Corny Flag 9 thin Hag IS ele Te Hee 1 a ovens. te dee HE oe iS G Prstemoeiars THIster > me procemey fairdes optodt q wk mdbsin fron yremory. J CPU Stoves He Optode tn a ~wepister Cites Arslemauetovs TREE + PrR@rae~ Count PE) — Bicker bo held dre ockbien qe he rece maluelinn Stacie PoMcer CEP) —Te 1S a I-LIE MitkeN Lo Patni thi premey shale Ion aden of memo) wsel ko hol Jam Hee will be vetritvel son. @ Contre! Unie: Ts Cuntrate Conbvel Sianele Wilh primer feqidiin Lich hem beeen fo Guvy out te tnd okt codec , . er le 1s Conwee Tle Prhemey ) So thal dake jou Wren it te equiteh 2 steis Aee opeceion eee froe . a Petbearne Onithmebic b legink epriation. JL see clade GEN yO: Gor bptaakeaas A Shove Ha reall Wh actunulelor Pebcegpn oa ile bees Beer hay 1b addin trey & & dota Cores, as ee PUIbipleKal Gn Lowy adohun bres Wine ADs ADs aun Beireecionat Whi AE = Ais abe unicliyectionos. a Te is We canny. 49 fend aca oe a cLow ela tins ors oddtes Plato. ick [estoy tore oa [Pnterueges'- goes has S> INbeMupeS:CPMS) Thayere TRAP RET SS Ree INT ART GS FRITS S Rar ES RIT 1s Ore off Aninrebialy Vectowsl 2 Masleagte: A TRAP 15 olao cuborabiolly vectored £ non -Meskadele. fey 1 Grnok be dismuied . ARST SE REF OSERIT TS Gon be eremtet) dteutcl selectively | dc The Poterph veyrat On the Ie i§ Adene ied | ey foes on TAT cutee ime. RTrte cue 2 Sofia nfemelsion —ET 1 oP BE Crete Taree DT _ Picade Trkemcts + ; a ai w wa Fst, a abe Abe 2 | 2 a Sy | Aas ath A Pe ; aba 4% —is ry ar Le oat ast san fee resal So eeecind Pee si] — sar | ° sey 2am Ae i & gers 15 Go pm dich Whine pochage. ope cat Sune chece ¢requncy Siqnale clomi frit ints Sie Froups AyAdolsey ‘oun ii Conteve) & SleGielaa 7Vs Powtm bupply & Systemclork. Wy Hp deoka bur ND Excervaly inikivtcl *ancts Ny Sertet Zo stgrcke Pe Pic —Oukpule the Stoke KoA orchen Addn oun. 4ADs -AD, — Mputfoulepuc , He Stetes Multiplow oalden |batee fous, ib Contewt & seotiin Site, A Addauin Lebch Brieble (ALE) — midliaker eWwallesbilily or Valid oddun On malliplerid svdau deta sine. + SezSi — tndicate Kirk of Operotcion > Tafa > rofma\ — £o Pt funite Sefy =O — Mumery rea fanite ARG —arthive dow signal, ndietes date bp be Tek ADR — acewe Low Rane, Tiditatts cele bo be Ute ND epee pean ick AX, Ka — micropreansr nies A eek Ste FO Cro Ol Opeabins Ore Syichronitut A Re [he “Watwore 15 connected ko thee ping, HCLK ~ OuepuL clack PK Hele provide the OUR Signet bo ree oF AYthem, power suphly Vee trl. , Vas — frounae A RESET IN — Sek PE to 2x 1 reels Theupe Eneblt 2 HLDA Slip lope . Rusts Ke prodonor, A RESET OUT — \iclicafta CPU TL eine etek Ravek Stanek dor poriprert olewier. @ 4 Readiy Umut) — When Bh, “ndicatza rena f pairranet e - eI aR. sna bow CPU watts fr ik Be bob nih ke waclion, Levecigiet ty SM 7 Don Tromagen MeCnourasrs MESS Gan ba pen boas Cay gp pee. : papeseciartina Htheaa tearel lgppecciengtateis gear on -cxcldausng Or ANN oe ‘ oy hake lerannb, Se sea ae F 2 ag oh The Aanice aS Tle acer? iy amany erpesh 10 meet a cacn Those is veka Mes ee ed br Hl eyes spanebtons £- dor Reed cere pee Tip fie emanates sate ey aletnios “mange. Beas exe nwo. ani, Bh the arch err the Pr 1, Rxopemmed oleate tenner etha. (relwcsion tor Propane. clans cranape. one. wreiccon Ceereiiiad: bef MORaHe enermbeel by prowmoy: 2 ax proyawornad Tle doin. brvanefer one iolers' reel 4 write option $v rmemovter & - device repiober Soya ton - aac Ameer 1 WrEteN ™me © ea “ an iE eeeankes WAH trscaudion Correrpending | ap sprase onto tate eT fy Sasa renames ten the, Co rreererdag Sapte Luvile + Swallanily, sudspae ani Give MleMup EO [prouiiey Whar tk ton ocape fake. inward. breve eo WE tre SHR ter oa cites ake aka cnansyer bo CoTRepordng oul IL Dirck Meme ACO tbeo) Me 1S c bedintne bo Ganeater dla belewiun the perbpreral “Flo: clawitan wih tre rumor Uiithonle Mbewenbsion sf Procssoy- DR, Bursk (alors exanaher mode Aa Complete folous ag lak £6 brew berreol in oe Angle prin Cycle - The Syscern bus FS related ny petrheret Ov PW Canker Orly Ober the Spire byles one evenhberid . © pies Apacs tive yee A bint a! Clea. is. brenebemed Sven mary pene cyclts. TRE Giger tans 78 velentel bo Hu proudor ee byte Jace Sh byt om eronniprel Zn Se Drie cycle - \ ht Wii ellis npn eae pa eeeuaben oe eenteuelate teamtalanis - Pn ne ae Y parallel date Lrortter aul bing TA o WO OM pirnssSterrs esa Leemvenitabed Oy Synchronena Mest | a dadsa: 8 APetilannicben a letkovges ny th Blo dais 3 Prowler Torrapeeave: of Tes) Stseve - A dps Sie 1S dyrckneniam with preamer a er hater bp Hardsholer Slo sade ak proumar: Check for Stats 6-Tle duwice before deka Lrownte: Am inp devin give Sitrel bo prowmr frliabing thet Te iS wedge vith The olaba- Spe precemor checks tontinuoutly fot Hae neapeiod OF thiD Seek 4. upon VRAD Sm Steak te dake. ach Ovlepue: heaice, sive Stanek EO ProePor indicetsimy thee fe tay (tao AEC: he let” The pre’ uci for quae Fianeks Tete Digral indicate raw prowner write dee bo alAbepue die « Ty Sentet Lobe Toned 0 Faas tei 1S Evomahenid Ove a alaieo_ Krwenpaerh es & pil biks On be Levene bet wang Bride ragirees Teer ride eat des aes Ree Cornmen Loe, pote bremafer beter Place with fitted & Bown kre Frome bpAtynimencus Basa tvenafe. a poke words ani k-onnmithes With 0% emer centre bo detec “yriierucisien pomed bo He PYOR geal b onctute. The ina dsion i) PO CRETE oo PORTER, tne FORT Pemtorms yosiom openes” stinseatenges. feels ppenar Puech etme staat: 67 Blo red (wie pajenerre ay ap fabaatell ‘ ~ I 7 | ese | THIN Peabo re Yip RR CMR Shean opcode Pelee Machine cyclen, T) deeeyete | Ty dog) Tz te fone | Mape=> [eae WO Emaclaion Alma) RX © ipsa rm. eee iaae tek He Pe eo bre PUPAL, gore use I-PIE pow oxtalen? phir Te placd te Lower orden arok epaeme tl + deh Te Slate RAN Inacio earn cee peter v2 73 aD stress! 9 Tio ose ue a preamsr write on doce byt be an Tio pore ee AB Tosti, 4 OUT Trbkouclcien wate this Mashine cyte, a 0 neti FX —T + Aie-bba Ce qe. er et ALS we ele, S50 | Seig=1 @ TPHEORUPES Dntesape is e mecheninm by which He |Prounor fs rece. bo bromalr conkre| frm iks Cumin Provem exeuusion EO Another progam. The PRA om) youkine that iA CKecuked UPon Tnteauepes is Called Tnerrtupe Sermice TOukine (PR) Triceps ore Cla migrel beasel on their Imeoskabiliky, iInvempe Vere ottsnns Pee Em, VL Yeetored 2 nen -veckorres_thleernmares # % Non veckorel Tokerupe have Ged inbeumplr VECEST onl for T5R Cinkerunpt Serio Routine) OF cligteent Unteruye anata. Uthat fev malt geben, thew there Oe Fed Tpieitae sources 3 SoGtware loconeis 1s net Complicabed, de veckered thueuupt require ThetAMupl: vesbor andreas ko be upp by te extemal olivia thet Ges dhe Prveuupl SEnel- This 15 Collek veckoring . 1) Moakebls 0 Vor—tareeple ‘Trlzeuuphs. Cee iterate ke a EL, otamay PERG are Nok eKecubed Masking Canee clone ly drardurtart [Sotrlevoare— fe Non -moakeble Trkerraptes (WMT) — His tan be FECA nizeal, nie be blocked » Conespordiny TR am eeecuted, 2 Soros b Wordione Ererwpias X coptacose TLeMephs — adder execnitan baenelen the Conerel bo Predafined T5R. inaemudsiors A Gncladish A proffer by Preztacereh, oe iaaaiame Conor sence Mala wien prowner tov Yecopriiion oa inleermple @ enecallin & covvesporclarg, LER Tnlcewnpe Sountes be Veskere cddreines Dn 208 Software “Mnkeuupit —> form ob insbauttions Heudoom inke apts > applied cs Sinale em eXkenal ckevies. ‘Sellen ideinaatelg 4 Por feve F Sothane Thtenuphs inebadio Gllid Restore CRIT ) tnskriclion. These One one byte inakenuckions - dnotemmstae| Hen code | Treetape vethar | | soteingst Riro eo ovecoh Revit Cr peorll Rega | be oolow A DE ople & Raney et 908n bh RT er cckeh Rit aa ocsow Rica 7 ose u | @ Lene e Baee pss: REORS Kawe 5 hudueve Unttupy — WTR, Rat ry Qst BS - RST Fei w Tar A To apply an intouupt, legic | Sarat Show be Oypphel aie tress ee ATE Starck on ony SE Hane pr it Weg y & Covyesponding ramet: inept 1 rat eneaked, & Corresponding L5A iS emacubed. Trcennepe| Tabet | pamcaany | EAs wd | poe hig! Vedder Adda) Wen wrainhe oF on 00244 | monmenkante.| Level 1 cere Oosc | Mmeneante | Riatigee | 9 Barbe | poxy yy | metab | Lanl 3 bali onc frsstonle | Laut 4 Bes Device proakedte. | bert = puoi Meshing of tare & Meoking con be clone der 1 beards Brierly FRITS RST OS, RST SS & IVR, &® ET (enable Tnterupt) & DT Ciscoe inten) one 2 Sapbrgere Tinsteavcicions ET crabs the TreCmpes ADE disonles The Tobovphs Verious Tnterupks Gob Sneha discoid by masleing. e he Pts BS, ig ONE Ne RRR EE Laccummakor) ma the tntempk vorerol venzoun biles ob He Wegisrer ase Gor enatting [otnatting the inlewopte 310 Cie Getcensupte Moat) TASES He EE 16" ned be erase Jmananale. ths RST ip renples « AIM Gnabnddion une exeuabad weaol he Qentsents a RCC MAMAIEY A reso [ummmacies the inbernplss. D>, Deby eT Actcemulakor bit Patten aber < DY Ds MO) ns sie — insleauctsion. oor || alee belgie Reser Ror SS ae ee SERIAL cera comme HTL Ds Pa p> keg le | —> Mast the Porlsiculer tng dogic D> Unmank the _Dnberupt Pom] RIMC Read Trlrertupic Mask) Trust metion ARE the Sects s, Inteumpl Moyle bibs Whitin Ru Tisleamdiony execuved, ACUummlabor Wondid vith Corenls Shetits SP Gnkovnp mates perdiy Unternupes. ] D turvteber bib Pabben Abeer Rim hn Sauctiyn ue EReculsiny J Nee, Scie Fe Ce 4? 253), Dr — inkennapts wrasks Ade | * Ps —witempt: reels [dibato feo (DY, Dey Py — Pencing Interrupt | I/O and Memory Interface 6.1 Introduction ‘The important components of any computer system are, processor, memory, and 1/0 devices (peripherals). The processor fetches instructions (opcodes and operands/data) from memory, processes them and stores results in memory. The other components of the computer system ( 1/O devices ) may be loosely called the Input/Output system. The main function of I/O system is to transfer information between processor or memory and the outside world. 6.1.1 Input/ Output System ‘The Input/Output system has two major functions = ‘Interface to the processor and memory via the system bus, ‘+ Interface to one or more 1/O devices by tailored. data links For clear understanding refer Fig. 6. Links to peripheral devices are used to exchange control, status and data between the 1/O system and the external devices. ieee Bas Sa Fd Daa Bus oer ‘Conivol Bus Processor Memory WO System Links to WO Device v0 device |] uo device || v0 device || v0 Deview a 8 ¢ D Extemal YO Devices Fig. 6.1 Generic model of computer system @-1) Microprocessor & Microcontroller System 6-2 WO and Memory Interface ‘An important point that is to be noted here is, an 1/O system is not simply mechanical connectors for connecting different devices required in the system to the system bus. It contains some logic for performing function of communication between the peripheral (I/O device) and the bus. The I/O system must have an interface internal to the computer ( to the processor and memory ) and an interface extemal to the computer ( to the external 1/0 devices ). 6.1.2 Requirements of VO System ‘The 1/O system is nothing but the hardware required to connect an 1/O device to the ‘bus. It is also called VO interface. The major requirements of an 1/O interface are : 1. Control and timing 2. Processor communication 3. Device communication 4, Data buffering 5. Error detection Al these requirements are explained here. The 1/O interface includes a control and timing requirements to co-ordinate the flow of traffic between intemal resources (memory, system bus ) and external devices. Processor communication involves different types of signal transfers such as ‘= Processor sends commands to the I/O system which are generally the control signals on the control bus. ‘+ Exchange of data between the processor and the 1/O interface over the data bus. ‘+ The data transfer rate of peripherals is often much slower than that of the processor. So it is necessary to check whether peripheral is ready or not for data transfer. If not, processor must wait. So it is important to know the status of 1/0 interface. The status signals such as BUSY, READY can be used for this purpose. + A nnumber of peripheral devices may be connected to the 1/0 interface. The 1/0 interface controls the communication of each peripheral with processor. So it rust recognize one unique address for each peripheral connected to it. The I/O interface must able to perform device communication which involves commands, status information and data. Data buffering is also an essential task of an 1/O interface. Data transfer rates of peripheral devices are quite high than that of processor and memory. The data coming from memory or processor are sent to an I/O interface, buffered and then sent to the peripheral device at its data rate. Also, data are buffered in 1/O interface so as not to tie up the memory in a slow transfer operation. Thus the 1/O interface must be able to ‘operate at both peripheral and memory speeds. Microprocessor & Microcontroller System 6-3 WO and Memory Interface 1/0 interface is also responsible for error detection and for reporting errors to the processor. The different types of errors are mechanical, electrical malfunctions reported by the device such as bad disk track, unintentional changes to the bit pattern, transmission errors etc. To fulfil all these requirements the important blocks necessary in any 1/0 interface are shown in Fig. 62. Intertace to systom bus —— VO Interfaco Fig. 6.2 Block diagram of UO interface ‘As shown in the Fig. 62, 1/O interface consists of data register, status/control register, address decoder and extemal device interface logic. The data register holds the data being ‘transferred to or from the processor. The status/control register contains information relevant to the operation of the 1/O device. Both data and status/control registers are connected to the data bus. Address lines drive the address decoder. The address decoder cenables the device to recognize its address when address appears on the address lines. The extemal device interface logic accepts inputs from address decoder, processor control lines and status signal from the 1/O device and generates control signals to control the direction and speed of data transfer between processor and 1/0 devices. ‘The Fig. 63 shows the 1/O interface for input device and output device. Here, for simplicity block schematic of 1/O interface is shown instead of detail connections. The address decoder enables the device when its address appears on the address lines. The data register holds the data being transferred to or from the processor. The status register Microprocessor & Microcontroller System 6-4 VO and Memory Interface contains information relevant to the operation of the 1/0 device. Both the data and status registers are assigned with unique addresses and they are connected to the data bus. Assess nes Dota nes Cont! ines {8} UO interface for input device ap rates tines Bus Data tines Control ines (©) UO interface for output device: Fig. 6.3 6.1.3 VO Ports The simplest form of 1/O interface is an I/O port. The data transfer ‘microprocessor and input device is done with the help of input port. The data between microprocessor and output device is done with the help of output port. between, ‘transfer Microprocessor & Microcontroller System 6-5 WO and Memory Interface Input port : It is used to read data from the input device such as keyboard. The simplest form of input port is a buffer. The input device is connected to the microprocessor through buffer eo shown Dalatom inp in the Fig. G4. This bulfer is trate vice buffer and its output ie available onl (Keyecar) —jinen enable. signal, is active. When microprocessor wants to road data from the input device (keyboard), the control Fig. 04 signals from the microprocessor activates the buffer by asserting enable input of the buffer. Once the buffer is enabled, data from the input device is available on the data ‘bus. Microprocessor reads this data by initiating read command Output port : It i woed to send data tothe output device ouch a0” display from the microprocessor. “The cimplost form of ‘output port is latch. The output device ie connected to the microprocessor > through latch, as shown in the Fig. 65. ‘Wado device When microprocessor wants to send data (Display) to the output device, it puts the data on the data bus and activates the clock signal of the latch, latching the data from the data bus at the output of latch Its then available at the output of latch Fig, 65 for the output device. 6.2 / Data Transfer Techniquos In 1/O data transfer, the system requires the transfer of data between I/O devices and microprocessor using I/O interface. It uses various techniques to perform I/O operations. ‘These are : * Program Controlled I/O or Programmed 1/0 or Polled 1/0. + Interrupt Driven 1/0. ‘* Hardware Controlled 1/0 or DMA.

You might also like