You are on page 1of 10
ty of Asia Pacific Department of Electrical and Electronic Engineering Mid Semester Examination, Spring-2018 Program: B. Sc. Engineering (3° Year / 2" Semester) Comse Tile - Microprocessor and Interfacing Credits: 300 ‘Time ; 1.00 Hour Full Marks: 60 ‘our Questions. Answer any Three. Figure in the right margin indicate marks} [There ar 1. QY What are the differences between a general purpose and a single purpose processor? Describe [5+10] the work of segment registers of 8086 microprocessor. gy What is Flag register? Describe the work of the flag register of the 8086 microprocessor. i) 2. (a) Write the 8086 assembly language statement which will perform the following operations: (10) 1. Load the number 79H (o any register. 2. Copy the content of the AX register to BX register Mov Mae, 13. PC 3. Copy the content of memory location SQ0O1H to AL register. ae 4, Read value from port OSH and save the value in AL register.) N 5. Add 90 to the value of register AX. | ') Describe the operation that an $086 will perform when it execute each of the following instruc- [10] tion scsone se 8 CSat600 . MOV BX, O3ABH HOV AL, {02AcH) |. MOV EX, (DX) ‘ROR BX,1 . CHP AL, CL 3 @ What is pipelining? Draw block diagrams for different memory architecture for a microcom- (8) puter system. Which memory architecture is better for pipelining and explain why. (b) Write # delay loop using jump or loop instructions which produces a delay of 100ms. As- (12] sume the microprocessor is running with a 5 MHz clock. Required clock eycle for different instructions are given in table 1 7 ul gy *41 eran © woe. ae 18] Table 1. Clock eyele required for ditierent ansicuctiony Toract') ' ewe Scanned with CamScanner es when to tum on 4 Desien a system which check the temperature data of a room and aiid ond te I the temperature is higher than 25 degree Celsius, the AC shoul : A ie temperature is less than 19 degree AC should be turned OFF However, remember that the se 15 fol, and provides results which is? degree lower than the original temp if temperature is hiches than 25 degree Celsius. W F ite the assembly program for the system. Assume, you need to send value ae te Pet ade Oo urn ON the AC and 00H to turn OFF the AC. Also assume that the Pera sensor connected Wo port OSH, Write assembly code for the Problem, ae oN few us Scanned with CamScanner University of Asia Pacific Department of Electrical and Electronic Engineering Mid Semester Examination, Fall-2018 Program: B. Se. Engineering (3% Year / 2" Semester) Course Title: Microprocessor and Interfacing, Course Code: EE 313 Credits: 3.00 Pull Marks: ‘Time : 1,00 Hour Jnt margin indicate marks] [There are Four Questions. Answer any THe, Figure it the righ a {py Describe the intemal architectre of Intel 8086 microprocessor with appropriate diagrams (12) AV Explain the work of different segment registers Cf Intel 8086 microprocessor (8) ) 2G Write the 8086 assembly Language statement which will perform the following operations fo} 7 + Load the number AS39H to any register mov Aw, pgeel ) ov’ 2 Divide QBS YY —— mov i aay Cop thé ante of nmr location $0001T1Y0 Ab rN mre ON so df TE> Res ale fo po OTH and save the aun AH reser \ ge, BEor Jue of register AX.” No aby qoootsy if £59}"-5, Subsract 90 from the va » esr the operation that an 4086 wil perform when it execute each of the following instruc {10} 0 7 “Weg isnet Loud Te me Mmhere cana re OX * paren at ; ‘ “oral 2 py dhe tonic nd 95 the ivveworry OCEUNS gegnant 3 wo race rn DHE aso . S segs T en ant. i CS er 4. INC BL Be 6537 3> 5. CHP ALCL Sy Og os € show (10) jes for a 8086 microprocessor are given in the figure 1. {ng the following instructions and also the detail of the flag he contents of different reg “ale of which register(s) will be changed after execut sow the new results for those rgister(s). The instruction summary and sgister forthe 8086 microprocessor is atta Jhed at the end of the question paper. 10 LADD ALCL) ~ 8 sv 2. wUL CL * oe oe 7 3. MOV BL,CL: ¢ ax0059 j B-0050 pride) © bxs9000 yy P0000 rir okt oe ” sy Fapure 1 Register contents fa 8086 microprocessor w t w Scanned with CamScanner \ \ N in 30102H. Wnte a progra A9) Teves ae saved in three emery location 301008. eG ieaversce of the in assembly Janguage that collects the values from these location a numbers. 4. Devgna system which checks the temperature of a room and decides when to turn on an AC. If the ‘enperature is higher than 25 degree Celsius, the AC should be turned ON and when the temperature 's kss than 19 degree AC should be tumed OFF. However, remember that the sensor is faulty. and Provides results which is 7 degree lower than the original temp if temperature is less than 25 degree Celsius. ‘Write the assembly program for the system. Assume, you need to send value O1H to the Di addess O6H to tun ON the AC and OOH to turn OFF the AC. Also assume that the temperature sensor is connected to port OSH. mS Mov 05, 30008 prev ny [orcet!) mov MO, ( eres) nev hy Color) DOD al, OL- BOP BL ce MoV DL,9%H OtV DL Scanned with CamScanner University of Asia Pacific J Department of Electrical and Electronic Engineering, Mid Semester Examination, Spring-2017 Program: B. Sc. Engineering (3° Year / 2" Semester) Cowise Title : Micro, Course Code: EEE oe ¢ : Microprocessor and Intedf ac a Time : 1.00 Hour " = | ss Full Marks: 60 (There are Four Quest Questions. Answer any Three. Figure inthe right margin indicate marks) 1 8 bishiy whether a microprocessors considered an &-bit,a T6-bit ora 32-bitdevice, (5) Th cone of Afferent registers for a 8086 microprocesser ate given in the figure 1. Show (1°) nich ei) wl be fected after exccuting each of the following instructions and also aa areas recalls for those registers). The instruction surnmary and the dtal of te fag register forthe $086 microprocessor is altached atthe end of he question Paper Ling aL 00S 2 WL CL ~~ ~nzorey 3. ROL BL,CL axe0cs9 ps+0700 Bx=ceso Bs+0700 cx=0co4 cseo710 x=¢c00 s8-0710 P0000 FL=0000 Figuce 1: Register contents of 6086 microprocessor 4. (a) gue 2 shows the pin diagram of 8086 microprocessor. Describe te functions of Pins ape 0 ADIS and A! processor s [8 Ae wp aarees/ ® gars [S84 Addr nS re Tc AT®. Which pins are used 10 control the READ and WRITE. operation of the ata Od ys se ee ine 4 " gancess / oie w seo \ purding Sess MEPS pani oy panties cyte ; yoten . ' sy paane ss 2hS i F aanraes 16 EE bik ON woe gyal stqetl | add ees ORS ve aagher the “4 purer eS § s debi se conn & Scanned with CamScanner the microprocessor is running with a § MHz clock. 3. (@) What is pypelining? Draw block diagrams for different memory architecture for a microcom- {yy ~_ getersystem. Which memory architecture is better for pipelining and explain why. fi What are the differences between a general purpose processor and a single purpose processer? {44 Draw the block diagram of a simple microcomputer system. 4. (a) Write a program which collects two numbers (data) from memory location 20001H and 20002H (29) vy and execute the following tasks in the given order. () Addition (u) Subtraction (iii) Division (iv) Multiplication After « ch tasks chovk if the result is higher than 25. If the result is higher, save the result in a memory cation wad or smvll-r neabers discard the result. The instruction summary for the ‘86 microprocessor is attached at the end of the question paper. x gy i Enabk - q S7/BHE —> one stands don Aus Wigh Eval 54 Ts availabe at pin 34- « used to trdidate th gran shen " Ysing dala Bua O8- PIS: a 9 Stay ad pin 32+ “ed to (Read (a) 5 ut ts feel sala fo Raad operation. e fron fe RET > 94 phy ana used to rusarth © xeeu ¢ stgnet (2) seetve Signek & pin 29 3 Me stends Son wut = yt [RE 4 ay sleds Jor cyiensrit] cor fe) LS bude Preble (o6N) sayeh(t€) wat Addyuss ena ble l Scanned with CamScanner a University of Asia Pacific ‘partment of Electrical and Electronic Engineering ‘Mid Semester Examination, Fall-217 . St. Engineering (3° Year / 2" Semester) Progra Tile : Micteprocessor 7 an reprocessor and Interfacing Course Code: EEE 313 Credits: 3.00 ao Full Marks: 60 [There are Four Questions. Answer any Three. Figure in the right margin indicate marks} ‘essor? Describe (5+10] » 1. @ Wat ace the differences between a general purpese and a single purpose proc thelbasic architecture of a general purpose processor. for a microcomputer system. which (5) ® v (B dew block diagrams for different memory architecture + is better for pipelining and explain why. form the following operations (101 nory archi the 8086 assembly language statement which will per the number 7986H intothe BX register. ” gister to DX register 0 AL register. 1. Loa Copy the content of the AX 1 4 Copy the content of memory location S0001H t x the lower 4 bits of BL. ‘ Add the value of register AX and BX. ' sform when it execute each oft (10) cribe the operation that an 8086 will pe he following instruc MoV BX, OSFFH AL, (O3ABH) ROL BX,1 5. CMP AL, CL at® ) Describe how the Intel 8086 microprocessor accesses immediate and register data Also de- {8} serie how B086 access data in memory. which produces & _ ‘of 100ms. As- (12) ys (b) Wric a delay loop using jump oF 100P instructions tome the microprocessor is running with aS MHZ ‘clock. Requited clock dycle for difterent patructions are given in table 1. cians 07 ae red tor difterent ate vstion Scanned with CamScanner “om (9) Designa system which check the temperature data of a room and decides at what temperature an ‘air-conditioner or a heater should operate. The air-conditioner should be ON when temperature 'Sover 35 degree and the heater should be ON when temperature is below 15 degree. However, the sensor that collects the temperature is faulty and always provides a result which is 7 degree lower than original temperature. Assume, port address for temperature sensor is OOOAH, port address for air-conditioner is (OBH and port address for heater is OOOCH. To tum on a device You need to send ‘OLH’ and to switch off ‘OOH’ needs to be sent to the appropriate port address Draw flow chart and write the program using assembly language. F-1% Scanned with CamScanner University of Asia Pacific Department of !ectrical and Electronic En; neering Mid Semester Examination, Fall-2016 Program: B. Se, Engineering (3° Year /2™ Semester) Course Title m1 EE3I3 | Mle Microprocessor and Interfacing Course Coded EEE 313 | Credits: 3.00 Time : 100 Hours ull Marks: 60 (Phere are Fe es : 5 re ate Four Questions. Aniwer any Three. Figure in the right margin indicate marks) 1, (GY What are th : of Ware the differences between a general purpose processor and a single purpose processor? (8) w the block diagram of a simple microcomputer system. (b) a 4 block diagram of the b vic architecture of a general-purpose register and explain the {12} Aificrent phases of executing the following instruction sequence using that architecture. MOV RO, M{500] INC RL MoV Ri, M{501] 2 Ow is pipelining? Draw block diagrs ms for different memory architecture for a microcom- {3} puter systein, Which memory architecture is better for pipelining and explain why. (b) Use 8 flowchart to show the algorithm for a program which gets a number from a memory [15] location, subtract 20H from it and outputs 01H to port 3AH if the result of the subtraction is preater than 251 3 of different registers for a 8086 microprocessor are given in the figure 1. Show (10) (s) will be affected after executing the following instructions and also show the hose register(s). The instruction summary and the detail of the flag register for rocessor is atached at the end of the question paper. 0 erm eta et SE 00 SD, FO ‘ a: aveek ali _ 5904 25O py = 0164 pxeoce ps-0700 bx=0650 ES=0700 “a Ch=0004 CS-0710 bk0000 $8=0710 £06 FL*0900 o Tiyute 1: Kepisier contents cf a 8086 micro (gio 7 Fe \eh* (% O0ee GICs gone Scanned with CamScanner ch stores the temperature of a room in MEMOT), Te OSH, However, your temperature sensor 15 faulty + than the real temperature of the room. Your tusk llect the data from the sensor, correct the the address 03100H. The j of the question paper 1b) Suppose, you need to design a system whi temperature $ nsor 1s connected to the port sehich always gives the result 3 degree highe 1s 0 write a program in assembly language which c carot in the reading and store the final value in memory stovting from struction summary for the 8086 microprocessor is attached at the en tion 20001H and 2C002H (20) (a) Write a program which collects two numbers (data) from memory loca and execute the following tasks in the given order. () Addition {n) Subtraction (ii) Division (iv) Multiplication ‘After each task check if the result is highcr than 25. If the result is higher, save the result in a memory location and for smaller numbers discard the result. The instruction summary for the 8086 microprocessor is attached 2 the end of the question poper. Scanned with CamScanner

You might also like