0% found this document useful (0 votes)
2 views

assignment-1

The document outlines quizzes and assignments for a B Tech course on Microprocessors and Microcontrollers at Dr B R Ambedkar National Institute of Technology, Jalandhar. It includes details about quiz formats, question types, and specific topics covered, such as 8085 and 8086 microprocessors, as well as instructions for an assignment on assembly language. The quizzes are scheduled for specific dates and include a mix of multiple-choice and recall-type questions.

Uploaded by

atharvg.cs.23
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

assignment-1

The document outlines quizzes and assignments for a B Tech course on Microprocessors and Microcontrollers at Dr B R Ambedkar National Institute of Technology, Jalandhar. It includes details about quiz formats, question types, and specific topics covered, such as 8085 and 8086 microprocessors, as well as instructions for an assignment on assembly language. The quizzes are scheduled for specific dates and include a mix of multiple-choice and recall-type questions.

Uploaded by

atharvg.cs.23
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

Name:…………….

Group:……… Roll No………………

Dr B R Ambedkar National Institute of Technology, Jalandhar


B Tech 4th Semester (Computer Science &Engineering)
ECPC-252, Microprocessor and Microcintroller
Quiz - 1–6th March 2024
Total Time: 30 min (12.30 PM to 1.00 PM)

Note: Total questions are 30. All are compulsory.


This quiz is of 20 marks. These marks can be further scaled down to 15 or 10

1. The data bus of an 8085 microprocessor is_____.


A. Unidirectional
B. Bidirectional
C. Unidirectional and Bidirectional both
D. None of above
2. The address bus of 8085 microprocessor is____bit.
A. 8
B.20
C.16
D. 32
3. The number of status flags in 8085 are
A.5 B. 6 C. 8 D. 9
4. How many pins of 8085 microprocessor includes?
A. 28 B. 32 C. 40 D. 64
5. Which stack in 8085?
A. FIFO B. LIFO C. FILO D. LILO
6. In 8086 microprocessor, the address bus is bit wide.
A. 12bit B.10bit C.16bit D.20bit
7. The register AX in 8086 is for medby grouping
A. AH&AL B.BH&BL C.CH&CL D.DH&DL
8. The 16 bit flag of 8086 microprocessor is responsible to indicate
A. the condition of result of ALU operation
B. the condition of memory
C. the result of addition only
D. the result of subtraction only

Page 1 of 5
Name:……………. Group:……… Roll No………………

9. The BIU in 8086 contains FIFO register of size____bytes


A. 8 B. 6 C. 4 D. 12
10. The BIU prefetches the instruction from memory and store them in
A. queue B. register C. memory D. stack
11. Instruction Pointer (IP) of 8086 contains offset address of ________ segment.
A. Data segment
B. Code segment
C. Stack segment
D. Extra segment
12. Direction flag is used with ____.
A. String instructions
B. Stack Instructions
C. Arithmetic Instructions
D. Branch Instructions
13. In 8086, if_________ flag is set; the processor enters the single step execution mode.
A. Direction
B. Trap
C. Interrupt
D. Zero
14. In 8086, if segment address = 1005 H, offset address = 5555 H, then the physical address is-
_____.
A. 655A H
B. 155A5 H
C. 4550 H
D. 56555
15. In 8086, if the size of the segment is 64 kb, what will be the starting and ending off set
addresses of it

A. 0000H to 7FFFH
B. 0000H to FFFFH
C. 8000H to FFFFH
D. 00000H to FFFFFH
16. ______register is used as a default counter in case of string and loop instructions of 8086.
A. AX B. BX C. CX D. DX
Page 2 of 5
Name:……………. Group:……… Roll No………………

17. Which of the following is not a machine control flag in 8086?


A. Direction flag
B. Interrupt flag
C. Overflow flag
D. Trap flag
18. In 8086 the overflow flag is set when______.
A. The sum is more than 16 bit
B. Carry and sign flags are set
C. Signed numbers go out of their range after an arithmetic operation
D. During subtraction
19. In PUSH instruction, after each execution of the instruction, the stack pointer is
A. incremented by 1
B. decremented by 1
C. incremented by 2
D. decremented by 2

20. LDS instruction in 8086 copies two consecutive words from memory to register and______.
A. ES B.DS C.SS D. CS
21. The instruction that loads the AH register with the lower byte of the flag register is
A. SAHF
B. POPF
C. LAHF
D. PUSHF

22. If MN/MX is low the 8086 operates in __________ mode.

A. Minimum

B. Maximum

C. Both a and b

D. Medium

23. If any interrupt will come to 8086, the following event will occur

A. IF and TF both are set

B. IF set and TF reset


Page 3 of 5
Name:……………. Group:……… Roll No………………

C. IF reset and TF set

D. IF and TF both reset

24. In 8086 break point interrupt is generated by

A. Setting the DF

B. Setting the TF

C. Executing INT 3 instruction

D. None of above

25. In FAR jump instruction of 8086 the following will happen

A. Only IP value is changed

B. Only CS value is changed

C. Both CS and IP values are changed

D.Neither CS nor IP is changed

26. Upon the execution of FAR call instruction of 8086 the following will happen

A. SP is incremented by 2

B. SP is decremented by 2

C. SP is incremented by 4

D. SP is decremented by 4

27. TheresultofMOVAL,65H istostore


A. 0100 0010inAL
B. 42HinAL
C. 40HinAL
D. 0110 0101 in AL
28. BHE signal in 8086 is used to indicate
A. the transfer of data over higher order data bus (D8 – D15)
B. the transfer of data over lower order data bus (D0 – D7)
C. the transfer of address over higher order address bus (A8 – A15)
D. the transfer of address over lower order address bus (A0 –A7)
Page 4 of 5
Name:……………. Group:……… Roll No………………

29. If the status on 𝐷𝑇/𝑅̅ pin on 8086 is 1, then


A. buffers will be set up to transmit data from the 8086 to ROM, RAM, ports
B. buffers will be set up to allow data to come into 8086 from ROM, RAM, ports
C. buffers get disabled
D. 8086 interrupts gets enabled
30. SHR instruction of 8086 can be used to
A. divide unsigned byte or word by power of 2
B. divide signed byte or word by power of 2
C. multiply unsigned binary number by power of 2
D. multiply signed binary number by power of 2

Page 5 of 5
Name:……………. Group:……… Roll No………………

Dr B R Ambedkar National Institute of Technology, Jalandhar


B Tech 4th Semester (Computer Science &Engineering)
ECPC-252, Microprocessor and Microcontroller
Quiz 2 (Recall Type) 24th April 2024
Total Time: 15 min (12.30 PM to 12.45 PM)

Note: Total questions are 15. All are compulsory. This quiz is of 5 marks.

1. The program counter of 8051 is_____bits wide.

2. ______&_______bits of 8051 PSW register are used for the selection of register banks.

3. Does the stack of 8051 grows upwards or downwards? _______________.

4. In 8051, in the instruction ACALL the target address is limited to ___________Kbytes from
the present PC.

5. True or False. The target address of 8051 short jump is within -128 to +127 bytes of the
current PC. _________________

6. True or False. In 8051 POP 02H is a legal instruction. ______________

7. There are total_______ports in 8051.

8. True or False. In 8051 MOV A, @R2 is a legal instruction. ______________

9. In 8051, _________address is assigned to R2 of bank 0.

10. The status of carry flag is ___________(0/1) after the execution of following program.

CLR C

JNC OVER

CPL C

OVER:………

11. In port 3 of 8051, its ______&______pins are meant for RxD & TxD.

12. True or False. “Interrupt on start count” is the mode 0 of 8253. ______________

13. Mode________ of the Intel 8253 timer can generate a square wave?

Page 1 of 2
Name:……………. Group:……… Roll No………………

14. _____________________register in 8259 stores all the interrupt requests in it in order to


serve them one by one on a priority basis.

15. In a cascaded mode, a total of__________number of vectored interrupts provided by 8259.

_____________________________________________________________________________________
Rough Work

Page 2 of 2
Name:……………. Group:……… Roll No………………

Dr B R Ambedkar National Institute of Technology, Jalandhar


B Tech 4th Semester (Computer Science &Engineering)
ECPC-252, Microprocessor and Microcontroller
Quiz 3 (Recall Type) 8th May 2024
Total Time: 10 min (12.30 PM to 12.40 PM)

Note: Total questions are 10. All are compulsory. This quiz is of 5 marks.

1. What is the clock source for the timers in 8051? Tick mark the correct option
(a) some external crystal applied to the micro-controller for executing the timer

(b)from the crystal applied to the micro-controller

(c) through the software

(d)through programming

2. What is the function of the TMOD register of 8051? Tick mark the correct option
(a) TMOD register is used to set various operation modes of timer/counter

(b) TMOD register is used to load the count of the timer

(c) Is the destination or the final register where the result is obtained after the operation of the timer

(d) Is used to interrupt the timer

3. True or false. D0 to D3 bits of TMOD register are assigned to program timer 1 of 8051.___________.

4. In mode 2 operation of 8051 timer, the counter rolls over when it goes from_______to________.

5. ___________bit of TMOD register when modified make each of the 8051 timers operate as counters.

6. Mode_______ of 8051 timer is used to set the baud rate in serial com port programming.

7. True or false. SCON register of 8051 is bit-addressable.

8. True or false. Upon reset, the external hardware interrupt of 8051 is low-level triggered.

9. What address in the interrupt vector table is assigned to timer 1 interrupt?____________

10. True or False. Bit RI in SCON register of 8051 is raised when a received character is loaded into

SBUF register.

Page 1 of 2
Name:……………. Group:……… Roll No………………

_____________________________________________________________________________________
Rough Work

Page 2 of 2
Assignrment-1
Microprocessors and Microcontrollers (ECPC-252)
B.Tech CSE 4th Sem (Jan-June 2024)

Write and explain all the 8086 assembly language instructions in terms of:

1. Working operation

2. ⁠Addressing mode

3. ⁠Flags affected

4. ⁠No. of bytes

5. ⁠Examples

Submission date: 11th March 2024 at 12:30 PM

Make assignment on white colour A4 size paper with blue or black ink pen.

Write your name, roll number and group on the cover page of assignment. Also mention number
of pages used in the assignment.

You might also like