Sei sulla pagina 1di 2

CAMBRIDGE INSTITUTE OF TECHNOLOGY

DEPARTMENT OF CSE/ISE
Question Bank
Sub Name: Microprocessor and Microcontroller Sub Code: 15CS44

Module 3
49. Explain the concept of signed numbers in computers.
50. Explain signed byte operand and write the range of positive and negative numbers.
51. Explain signed word operand and write the range of positive and negative numbers.
52. Show how the computer would represent byte operand -5.
53. Show how the computer would represent byte operand -36h.
54. Show how the computer would represent byte operand – 126.
55. Explain , when the overflow flag is set in 8-bit operations,
56. Show the status of Overflow flag(OF) after the execution of following instructions.
ALL NUMBERS ARE SIGNED NUMBERS
I) MOV DL, -126 II) MOV AL, -8 III) MOV DH, +8
MOV CH, -6 MOV CL,-6 MOV BH, +29
ADD DL, CH ADD CL, AL MOV BH, DH
57. Explain , when the overflow flag is set in 8-bit operations,
58. Explain the sign extension of 8 bit and 16 bit operands ( CBW and CWD).
59. Explain the signed number division (IDIV) and multiplication( IMUL) instructions with examples.
60. Explain the string instructions with examples( MOVS, LODS, STOS, CMPS, SCAS)
61. Explain the instructions to process table( XLAT)/ Bring out the importance of XLAT instruction using a
suitable program.
62. EXPLAN THE USE OF REP, REPE/REPZ AND REPNE/REPNZ WITH EXAMPLES.
63. Write a program that uses STOS to store byte ABH in 200 memory locations. Use LODS to test the
contents of each location to see if ABH is there. If the test fails, the system should display message “
bad memory”
64. Assuming that there is a spelling of Europe” in an electronic dictionary and user types in “ Euorope”, r
Write a program that compares these two and diaplays the following message depending on the
result: i) Tf they are equal, “display “ the spelling is correct”
ii) If they are not equal, display “ wrong spelling”
65. Write a program using string instructions that scans the name “ “ Mr. Gones” and replaces the “G”
with the letter “J”
66. Write a program that scans the initials “IbM” and replaces the lower case “b” with uppercase”B”
67. Find the Address range of the following memory design. ( Refer text book 1: question 17 in section
10.2)
68. Using nand gates and inverters, design decoding circuitry for the address range C000H to C0fffh.
69. Find the address range for Y0, Y3 AND Y6 OF THE 74138 FOR THE FOLLOWING DESIGN ( Refer text
book 1: question 19 in section 10.2)
70. Using 74138, design a MEMORY DECODING CIRCUITRY IN WHICH THE MEMORY BLOCK CONTROLLED
BY Y0 IS IN THE RANGE 00000H to 03FFFh . Indicate the size of memory block controlled by each
block. Also find the address range for Y3, Y6 and Y7.
71. Using 74138, design a MEMORY DECODING CIRCUITRY IN WHICH THE MEMORY BLOCK CONTROLLED
BY Y0 IS IN THE RANGE 80000H to 807FFh . Indicate the size of memory block controlled by each
block. Also find the address range for y1. Y4, Y5 and Y7.
CAMBRIDGE INSTITUTE OF TECHNOLOGY
DEPARTMENT OF CSE/ISE
Question Bank
Sub Name: Microprocessor and Microcontroller Sub Code: 15CS44

72. Assume that we have 4 bytes of hexadecimal data: 25h, 62h, 45h, 58h
a. Find the checksum byte.
b. Perform the checksum operation to ensure data integrity.
c. If the second byte 62h had been changed to 22h, show how checksum detects the error.
73. Assuming that last byte of the following data is the checksum byte, show whether the data has been
corrupted or not for each of case:
i)28H, C4H, BFH, 9EH, 87H, 65H,83H,50H,A7H and 51H.
ii)29H, 1CH,16H38H AND 6DH
III) 29H, 1CH, 16H, 30H AND 6DH
74. Find the checksum byte for the following data: 34H, 54H, 7FH, 11H E6H, 99H.
75. Explain 16 bit memory interfacing with necessary diagrams.
76. Explain the accessing of data from even and odd bank with the help of an example.
77. Calculate the memory cycle time of a 20Mhz 80386 sytem with a) 0WS b) 1WS and c) 2WS
78. Calculate the memory bus band width for the following microprocessors the bus speed is 20Mhz.
a) 286 with 0WS and 1WS ( 16 bit data bus)
b) 386 with 0WS and 1WS ( 32-bit data bus)
79. Calculate the memory bus band width for the following systems
i. 80286 of 10MHZ and 0WS ii.
80386 of 16MHZ and 2 WS
80. Explain 8086 Input /Output (IN and OUT) instructions with examples.
81. In a given 8088 based system, port address 22h is an input port for monitoring the temperature.
Write assembly language instructions to monitor that port continuously for the temperature of 100
degrees. If it reaches 100, then register BH should contain ‘Y’.
82. Show the design of an outpur port with an IO address of 31Fh using the 74373.
83. Draw a logical design for OUT 16H,AL using AND and inverter gates in addition to 74373.
84. Draw a logical design for OUT 16H,AL using NAND and inverter gates in addition to 74373.
85. Draw a logical design for IN AL, 81H using AND and inverter gates. in addition to 74244.
86. Draw a logical design for IN AL, 81H using NAND and inverter gates in addition to 74244.
87. Explain 8255 and its Control word format with diagrams.
88. Find the control word if PA=out, PB=in, PC0-PC3=in and PC4-PC7=out. Program the 8255 to get data
from port A and send it to port B. In addition, the data from PCL is sent out to the PCU. Use Port
address of 300H-303H for the 8255 chip.
89. Show the address decoding where port A of the 8255 has an I/O address of 300H, then write a
program to toggle all bits of PA continuously with a delay. Use INT 16H to exit if there is a key press.
90. Show the decoding circuitry for the 8255 if we want Port A to have address 68H. Use NAND and
inverter gates.
91. Which of the following port addresses cannot be assigned to PORT A of 8255 and why? 32h, 45h,
89h, Bah
92. If 91H is the control word , indicate which port is input and which is output.
93. Find the control word if PA=input, PB=input, and PC0-PC7=output.
94. Write a program to monitor PA for a temperature of 100. If it is equal, it should be saved in register
BL. Also, send AAh to port B and 55H to port C. Use the port address of your choice.
95. Explain how do you interface a stepper motor to 8086 to rotate the motor in clockwise direction by
360 degrees and anti clock wise direction by 180 degrees using 8255. Write neat diagram and ALP
96. Write an ALP to display 0 to 9 on a 7 segment LED display device

Potrebbero piacerti anche