You are on page 1of 6
Pe tao im) fF Ol} 03 | or | og | [introduction of wl" Koil Microcontroller nfo joel -- |-)-] _ | INetworking a! o lTechnology 03-| 09: | 02 ) 08 | -].- | ag [Total 04 | 04 | 12 Q.1) tate the conee alternative andra te tllcsbor mista ls f@) Zero flag is not affected in instruction. () XRAA (i) | SUBA ? 3 (ii) CMPA (iv) MVIA,OOH (0) The interrupt isnot a vectored. ‘ 1 (@) INTR (i) TRAP (ii), RST 75 (iv) RST65 (0 The most expensive cable amongst the following is 1 “@) UIP (ii). Fiber Optic . (ii) Co-axial (wv) STP (@ The internal ROM of 8051 is 1 (@) 2KB (i) 8KB (iii) 4KB (iv) _16KB Ans.: (a) Gv) (b) @ (© Gi) _(@) Gi) Q.1(B) Answer any two of the following : cor for each of the following : 3 (2) Write any two instructions of 8085 microprocess (Ch. 2/Q. 7/Pg. No. 2-5) (i) 1 byte (ii) 2bytes (iii) 3 bytes RLC, HLT, CMC, STC, MOV M, Ay etc: 01H, ete. STA 2500 H, 1byte : MOV, CMA, RRC, 2bytes : MVI A, 02 H, ADI 00H, ACI H, etc. 3bytes : LXTH, 2000 H, LDA 7000 H, SHLD 2500 @ scanned with OKEN Scanner Question TPS Computer Science - 11 __ Os ———— (©) Explain the following characteristics of transmission media 3 (i) Cost of Media {ii) Electromagnetic interference i) Band width (Ch, 5/Q. 5/Pg. No. 5-3) r (6) Write the following points for the instruction LDAX B in 8085 Microprocesso a (i) Interpretation of Mnemonic (ii) Addressing mode (ii) Number of byte(S) Ans.: (i) Interpretation of Mnemonic (Ch. 2/Appendix I (ii)/Pg. No. 2-34 and 2-35) (ii) Addressing mode : Register Indirect (iii) __Number of byte(S) : 1 Byte Q.2(A) Answer any two of the following? (a) Write a short note on Co-axial Cable. (Ch. 5/Q. 8/Pg. No. 5-5) 3 ©) Write the function of following pins in 8085 Microprocessor: 3 @ WR (Ch. 17Q.9 Giiyipg. No. 1-9) Gi) RESETIN (Ch. /Q. 10 (o/Pg. No.1-9) (iii) READY (Ch. VQ.11 (1)/Pg. No. 1-10) (©) Write the difference between LAN and WAN. (Any three points) (Ch. 5/Q. 7/Pg, No. 5-5) 3 Q.2(B) “Answer any one the following: (a) If Accumulation contains AA H and register B contains 55 H, write the contents of Accumulator in hexadecimal after execution of each of the following, instruction dependently (one after another) :(Ch.2) 4 (i) ORA,B (i) CMA (iii) ADI, FFH (iv) INRA a Ans.: (i) ORA,B = FFH ii) CMA = OOH (ii) ADI, FFH = FFE (iv) INRA = OOH — (Cy =Notaffected) {b) _Write a short note on ‘Modem’. (Ch. 5/Q. 37/Pg. No. 5-32) 4 Q.3(A) Answer any two of the following: ; (a). Write ROM and RAM size of the following Microcontrollers : (Ch. 4/Q. 71Pg. No. 4-5) 3 (i) 8050 (ii) 8051. (iii) 8052 Ans, : RAM ROM () 805056 byte = g Kbyte Gi) 8051 128 byte 4g Kbyte (it) 8052256 byte og Kbyte @ scanned with OKEN Scanner 2] pow! o @ (ii), Q.3 @ o) Di of Accu fore - yntents imulator is f ~ we oy 8B 1 ett the Qestion Papery after the executi . Mod cary Hon of instruction IN 20 foe Atay a ; Mletoprocessen tc (ok zoos = 01 Oh) 5 pusitary = 01H = Set / ery flag, = Not affected Compare 1286 and 80486 Processors onthe following ays 0 Data bus ING attributes : 3 ;) Address bus (ii) Physical memory size Data bus _ 16bit 32 bit Addressbus = Abit 32 bit Physical memory size 16Mbyte 4 Gbyte ) Answer any one of the following Write any two instruction of the following four group (i Logical group (Ch. 2/Appendix-3/Pg, No, 2B t0 251) ; (i) Data transfer group (Ch. 2/Appendix - Pg. No. 2-31 to 2: (iii) Arithmetic group (Ch. 2/Appendix - 2/Pp. No. 2-35 to a (iv) Branching group (Ch. 2/Appendix - 4/Pg. No. 2-52 to 2-57) Draw and label the programming model of 80486 processor. (Ch. 3/Q. 12/Pg.No.3-7)_ 4 Q.MiA) Answer any two of the following: @ 0) © Write any three points which specifies Accumulat rt ‘ purpose register. (Ch. 1/0. 2A, No. 1-22) int of SS SIRE aap Write any six features of 8051 Microcontroller. (Ch. 4/Q. 3/Pg. No. 4-2) 3 Answer the following with respect to hardware interrupts of 8085 Microprocessor: 3 (i) List all interrupts (Ch. 1/Q. 26/Pg. No. 1-17) (ii) Specify the highest and lowest priority interrupt (Ch. 1/Q. 28/Pg, No. 1-18) (iii) Specify whether maskable or Non-maskable interrupt. (Ch. VQ. 28/Pg, No. 1-18) Q.4(B) Answer any one of the following : fa) ) Draw block diagram of internal architecture of 8085 Microprocessor. (Ch. 1/Q. 29/Pg, No. 1-19) Write a short note on STAR topology using following points: 4 (i) ‘Definition (ii) Diagram (iii) Advantages i (iv) Disadvantages (Ch. 5/Q. 25/Pg. No. 5-16) @ scanned with OKEN Scanner TPS Computer Science - II Q.125 er any two of the following : nt number of zeros in a number stored at cou Question Papers 5 Write an Assembly Language Program to memory location 2600H. Store the count at 2601H. Label_[ Mnemonics+ Operand a Frumber START | LXIH, 2600H “Initialize H-L pair with address 0 MOV B,M ; Get number in B register M' ny Ma np ; Initialize register E to store counter for 8-bit number. Loop | MOV A,B + Transfer the 8-bit number into accumulator RLC ; Rotate content of accumulator left side by one bit to check the bit. MOVB,A + Store the rotated data in register B. JC DOWN If carry ? Yes, jump to DOWN INRC Increment register C contents by 1 if there is no carry means bit is zero DOWN | DCRE ; Get answer i.e. number of zeros to accumulator JNZ Loop Jump if no zero to Loop MOVA,C. 7 Qet answer i.e number of zero’s to acc. STA 2601H tore the count in location 2601 END _| HLT ; Stop the processing () Write an Assembly Language Program to find the largest number in a block of memory locations begins from 2400H, block length is stored at 23 FFH, Store the largest number after the end of the block. Ans.: Label__| Instruction | Comments START | LXTH, 23 FFH | ; Address for countin HL pair MOVC,M__| ; Get count in reg. C SUBA i clear accumulator Loop | INXH iGo to address of next memory CMP M ; Compare memory with ACC JNC AHEAD | ;No larger in ACC, go to label. AHEAD MOV A,M_~ | ; Get larger no. In ace AHEAD | DCR i Decrement count LINZ LOOP "|; Go to label loop INXH iIncrement memory location by1 ND my MA iStore result at memory location istop @ scanned with OKEN Scanner nt Tee an iAssembly Language Program to fing wen memory locations 2500 Hand s @ 2501 4, Nea Question absolute dif “hk Mere agmy” Mm "I ans Label Comments LXIH, 2500 H iSetHL pointer to 2994 MOVA,M |, Move 1" no. in Accumulator INXH increment H-L par SUBM. i Subtract 2” no, form 1" no, JPGO. i If positive Tesult, jump to Go MOVAM |; Move 2" no, in Acc DCXH + Decrement H-L Pair SUBM # Subtract 1" no. from 2" no. GO | STA2502H | ; Store result in 2502 1 HLT iStop OR Q5 Answer epee Pega, to exchange the digits ofa number the digits ofa @ vee oer ed in C200H and add it to the original number. Store the result at C201H. 5 ar Label_| Mnemonics and Operand Semicaty DiGi H ; Set HL with C200 H MOV A.M ; Copy mem. To Acc. ae } ; Rotation right 4 time to ao + exchange nibbles RRC ; BRE, vada memory content with ac. site ; Store Acc to C201 H STA C201H ; Stop HLT KEN Scanner © scanned with o Quy Question re of timen data DOH present in» ; ee ; ber “SPH, Store the () Write an Assembly Language Program to count num tored at C3PPH. Store the memory block begins from C400H, The length of the block Is ‘ result after end of the block. Ans: Label || Mnemonics Operand | === Comments id START | LX, C3PFH ; Initialize H-L pair with starting address MVIC,M. }Store count in register C MV1B, 00H Initialize occurrence count in register B, INX H ; Increment memory location by 1 Loop | Mov A.M Get the number in accumulator CPIDSH 7 Check whether the number in accumulator is DOH | JNZ NEXT ;Ifno 2 jump to label NEXT { INRB ; Yes, increment content in register B by 1. . NEXT | INXH ; Increment H-L pair DcRC ; Decrement count JNZ LOOP. Is count zero ? No-jump to label LOOP INXH jIncrement memory location MOV M,B ; Get count in memory END | HLT i Stop processing (©) Ablock of data is stored in memory locations from C200H to C20FH. Write an Assembly Language Program to transfer the block in reverse order to memory locations 300K, and onwards. ! Ans. : Assembly language program : Memory | Label Mnemonics ‘Comments -address 000 LXIH, C200H i set up HL as a pointer to source C003 LXID, C30FH set up DE as a pointer to destination C006 MVIB, 10H 7 set up B to count 008 | Loop | Mov A.M i get data byte from memory C009 STAXD ; Store data byte at destination Co0A INXH Increment source pointer COOB DCXD ; Decrement destination pointer cooc DCRB ; Decrement count Coop JNZ Loop 7ifnot zero, go back HLT Stop ao @ scanned with OKEN Scanner

You might also like