X reviewer2@nptel.iitm.ac.in Courses» and Microcontrollers Unit 4 - Week 3 Announcements Course Ask a Question Progress Mentor Course outline How to access the portal Week 3 Assignment The due date for submitting this assignment has passed. Submitted assignment Due on 2018-02-14, 23:59 IST. Week 1 1) How many times will the following loop be executed? Week 2 Week 3 Lecture 12 : LOOP: XRA A MVI C, 05H DCR C JNZ LOOP Depends on the initial value of A Five times A project of Lecture 13 : Lecture 14 : Lecture 15 : Lecture 16 : Week 3 Lecture Slides Quiz : Week 3 Assignment Week 3 Assignment Answers Infinite times Once Five times 2) Which of the following flags is not affected by a conditional branch statement in an microprocessor? Sign flag Auxiliary Carry flag Zero flag Carry flag Auxiliary Carry flag 3) The interrupt in an microprocessor that is not affected by the value of the Interrupt Enable (IE) flip flop is 2014 NPTEL - Privacy & Terms - Honor Code - FAQs - In association with Funded by 1 of 6 Wednesday 16 May 2018 04:56 PM
Week 8 Week 9 Week 10 Week 11 Week 12 DOWNLOAD VIDEOS No, the answer Powered is incorrect. by TRAP 4) Which of the following statements regarding interrupts is FALSE? An interrupt can either be a maskable or a non-maskable one. An interrupt is a process that starts from an I/O device and is asynchronous. An interrupt is serviced only after the microprocessor completes the execution of its current program. An interrupt can either be a vectored or a non-vectored one. An interrupt is serviced only after the microprocessor completes the execution o its current program. 5) What are the status of the ZERO flag and the contents of the accumulator after the execution of the following assembly code? Assume that contents of all other registers and memory locations are unknown. MOV A, 65H MOV B, 32H CMP B 0, 00H 1, 65H 0, 65H 1, 00H 0, 65H 6) Determine the operand type of the following instruction. ADD C Register Memory address Immediate data Implied operand Register 7) How many bytes does the following set of instructions occupy? MVI A, 35H MVI B, 23H ADD B Six bytes Five bytes 2 of 6 Wednesday 16 May 2018 04:56 PM
Three bytes Four bytes Five bytes 8) Which of the following control signals must be shown in a timing diagram of an microprocessor? ALE, INTR, RD, WR ALE, INTR, S 0, S 1 ALE, IO/ M, RD, WR ALE, INTR, IO/ M, RD ALE, IO/ M, RD, WR 9) Determine the instruction, as well as its starting address, for the following timing diagram. Instruction: MVI B, 26h. Starting Address: 2626h. Instruction: MOV B, 26h. Starting Address: 2626h. Instruction: MOV B, 26h. Starting Address: 2627h. Instruction: MVI B, 26h. Starting Address: 2627h. 3 of 6 Wednesday 16 May 2018 04:56 PM
Instruction: MVI B, 26h. Starting Address: 2626h. 10) Which of the following statements about the stack in an microprocessor is FALSE? Information is retrieved on the stack by popping it off. Stack is a last-in-first-out structure. Information is saved on the stack by pushing on it. Size of the register associated with the stack is 8 bits. Size of the register associated with the stack is 8 bits. 11) Which of the following operations on stack is an invalid one? LXI SP, 0FFFH POP C SPHL PUSH PSW POP C 12) The Program Status Word register pair in an microprocessor is realized as the pair of which of the following registers? Program Counter and Flag Register Program Counter and Stack Pointer Program Counter and Accumulator Accumulator and Flag Register Accumulator and Flag Register 13) Which of the following statements regarding CALL and RET instructions is FALSE? In an program, the first CALL instruction may appear before the first RET instruction An program may contain multiple RET instructions In an program, the first RET instruction may appear before the first CALL instruction An program may contain multiple CALL instructions In an program, the first RET instruction may appear before the first CALL instruction 4 of 6 Wednesday 16 May 2018 04:56 PM
14) What will be the contents of the registers A, B, and C, respectively, after the execution of the following program? MVI C, 03H LXI H, 2000H MOV A, M DCR C L1: INX H MOV B, M CMP B JNC L2 MOV A, B L2: DCR C JNZ L1 STA 2100H HLT Contents of the memory locations are as follows. 2000H: 18H 2001H: 10H 2002H: 2BH 2BH, 2AH, and 01H 2BH, 2BH, and 02H 2AH, 2BH, and 01H 2BH, 2BH, and 01H 2BH, 2BH, and 01H 15) If an microprocessor works at a frequency of 1 MHz, determine the total delay of the following sequence of instructions (in seconds). MVI A, 0FH MVI B, 0FH L1: DCR B JNZ L1 223μs 221μs 224μs 222μs 221μs Previous Page End 5 of 6 Wednesday 16 May 2018 04:56 PM
6 of 6 Wednesday 16 May 2018 04:56 PM