Oct Nov 2013
MICROPROCESSORS AND MICRO CONTROLLERS
Anna University
4 question papers available. Select an examination session to view its question paper.
MICROPROCESSORS AND MICRO CONTROLLERS
MICROPROCESSORS AND MICRO CONTROLLERS
MICROPROCESSORS AND MICRO CONTROLLERS
MICROPROCESSORS AND MICRO CONTROLLERS
Based on available extracted papers. Question groups and frequency are provisional, not official syllabus weightage or examination predictions.
What is the purpose for which the flag bit 'AC is available in 8085?.
0 eligible source papersWhat is the purpose for which the signal ALC is available in pP 8085/ pC 8051?.
0 eligible source papersShow the decoding hardware necessary to interface a 4Kbyte sized EPROM to the 8085 with a required memory mapping of 3000 - 3FFFH?
0 eligible source papersThere is no explicit instruction for' jumping if overflow flag is set' in pC 8051. How would you manage this, using the relevant bit - oriented instruction available?.
0 eligible source papersDistinguish between the operation performed by the instructions: INR D and INX D?
1 eligible source papersWhat is the purpose for ICW1 of the programmable interrupt controller 8259?
0 eligible source papersWhat are the roles for the HL register pair of pP 8085 ?.
0 eligible source papersDiscuss the operation performed by the 8051 instruction DIV AB. How does this instruction affect the overflow flag?
0 eligible source papersWhat is/are the instruction(s) available in pC 8051 to make reference to a look-up table included as a part of the program code?
0 eligible source papersWhat is the operation performed by the instruction ' PUSH PSW in uP 8085? And the same instruction in pC 8051? Distinguish between these two cases.
0 eligible source papersAlong with external hardware circuit and the machine cross-sectional diagram, explain how a stepper motor interface can be controlled from pC 8051. Use the port-1 of pC 8051. Assuming variable reluctance type stepper motor is available with a step angle of 2 degrees, write a program using 8051 assembly language for deflecting the stepper motor shaft by 30 degrees. Assume half-step mode.
0 eligible source papersa) i) Draw the timing diagram showing fetching and complete execution of the pP 8085 instruction MVI B, 9AH. Assume that this instruction is fetched from memory location 4567 H . ii) Along with a neat sketch of the functional block diagram / architecture, describe the salient features available in the 8-bit pP 8085. (8 + 8)
0 eligible source papersb) i) Write a subroutine for generating a time delay in pP 8085, using software delay loop. Also evaluate the count required to obtain a time delay of about 15 msec. Assume a pP clock frequency of 3 MHz.
0 eligible source papersList down the flags available in 8085? Which of them is/are not affected by the execution of the following instructions: INR B and CMA. Show the decoding hardware necessary to interface a 2Kbyte sized EPROM to the 8085 with a required memory mapping of 5000 ~ 57FFy? How would you store the contents of the (8085) stack pointer onto the top of the stack? Remember that the instruction PUSH SP is invalid in 8085. What do you understand by the term ‘baud rate’? What are the popular values of baud rates employed in the RS 232 based serial communication with a computer? What is the role for ICW3 of the programmable interrupt controller 8259? Distinguish between the operations of LX! H,2300,.and LHLD 2300,,? Also identify the addressing mode used in each of these instructions. Discuss the operation performed by the 8051 instruction MUL AB. How.does this instruction affect the overflow flag? What is/are the instruction(s) available in uC 8051 to make reference to a look-up table included as a part of the program code? Suggest an 8051 based scheme for measuring the speed of a motor shaft? Assume that an arrangement of teethed wheel along with electro-magnetic pick-up is available. PART -8 (5 x 16 = 80 ) Explain how the 20 bit long ‘physical address’ is evaluated jointly by the BIU and EU-of uP 8086, considering typical addressing modes and related base/ index registers? Also explain the other roles of these units BIU and EU, along with a neat sketch of the functional block diagram-of intel 8086. a) i) Draw the timing diagram showing fetching and complete execution of the uP 8085 instruction MV! M,65y. Assume that this instruction is fetched from memory location 4321, and that (HL) = 5678. ii) Atong with a neat sketch of the functional block diagram / architecture, describe the saltent ' features available in the 8-bit uP-8085. (8 + 8)
0 eligible source papersb) i) Correct the mistake in the following delay subroutine of பூ 8085. Also evaluate the count required to obtain a time delay of about 13 msec. Assume a uP clock frequency of 2 MHz. 13. Delay : ட, 8, 16-bit count Repeat : DCX B JNZ Repeat RET. ii) Using pP 8085 assembly language, write a time delay subroutine, which generates a delay of 13 msec. Use counter-0: of 8253 timer in ‘reading on fly /4atch on count’ mode. Assume its input clock frequency to be 100 kHz. iii) Using pC 8051 assembly language, write atime delay subroutine, which generates a delay of 13 msec. Use one of its internal timers in any suitable mode. Assume the crystal frequency to be 12 MHz. (51516) a) Along with relevant external hardware, internal block diagram and relevant control word formats, explain how keypad and displays have been interfaced to uP 8085 using.8279 in the uP kits. Also write a program segment which would display the messages ‘E-E.E.‘-and 166650 alternately {in the uP kit that you have used in the {aboratory). [OR] - b) i) Write an assembly language program which receives the 8-bit number made available 14. 15. serially at the SID pin? Store the received byte at the memory location 4500,,. Assume that there is only one delay subroutine available providing delay for half-bit-time. ii) Draw the external hardware necessary to insert RST 3 instruction in response to INTA signal from the uP. Also briefly explain the working, with the aid ofrelevant timing diagram. (8 +8) a) i) Discuss a scheme for measuring the room temperature with a resolution of 10? Use ADC 0801 and LM 135 as temperature sensor. ji) It is required to achieve a two-way/ staircase switch: If both S1 and S2 are ON or, if both are OFF, the LED is OFF. If exactly one of the two switches is ON, the LED should glow. Show how employing 8255 simplifies this work of interfacing the two switches and LED to the uP 8085? You may employ Pin portCy for LED connection, so that BSR mode can be employed for-controlling the LED. : (8 + 8)
0 eligible source papersb) i)A thumb wheel switch is connected as the input device, and two number-of 7-segment LEDs connected through 7447 decoders form the output device. Both these are interfaced to பூ 8085 through 8255 PPI. Assume suitable port connection. 8255 PPI itself is required to be-connected following peipheral mapped (/0 with address range of FO- F3y. Draw the hardware connections. Also write a program which reads in the BCD input from thumb wheel switch and displays the value of its square at the 7-segment displays. Use a look-up table for getting the square value. ii) Write a program in uC 8051 assembly language, to transmit a byte of data employing its UART facility (mode-1). Aliso explain the usage of its internal timer in mode-2, required for bit-time delay. (8+8) a) Along with external hardware/.power circuit and machine cross-sectional diagram, explain how a stepper motor interface can be controlled from பா? 8085 or uC 8051.
0 eligible source papersb) Along with a neat sketch of the functional block diagram / architecture, describe the salient features available in the 8-bit micro-controller 6051.
0 eligible source papersState any four differences between memory mapped I/O and peripheral mapped 1/0.
0 eligible source papersWhat is the vector address corresponding to TimerO interrupt of uC 8051 and that corresponding to RST5.5 of uP 8085?
0 eligible source papersCorrect the mistake in the following delay subroutine of uP 8085. Also evaluate approximately the count required to obtain a time delay of 7 msec. Assume a uP clock frequency of 3 MHz. Delay: LX! B, 16-bit count Repeat: DCX B JNZ Repeat RET
0 eligible source papersHow would you check if there was any framing error in the character recently received-by the USART 8251? .
0 eligible source papersHow would you initialize 8259 to have ISR address for IRO as 4560H, ISR address for IR1 as 4564H, etc.
0 eligible source papersDistinguish between the operations of LX! H,4500H and LHLD 4500H? Aliso identify the addressing mode used in each of these instructions.
0 eligible source papersThere is no-explicit instruction for performing ‘Jump if the overflow flag is set’ in uC 8051. How would you achieve this?
0 eligible source papersWhat is/are the instruction(s) available in uC 8051 to make reference to a look-up table included as a part of the program code?
0 eligible source papersHow is the IC 74373 (8-bit D-latch) useful in a uP / uC based system design?
0 eligible source papersAlong with a neat sketch of the functional block diagram / architecture, describe the salient features available in the 16-bit uP 8086. Discuss the role of both BIU and EU.
0 eligible source papersa) i) Draw the timing diagram showing fetching and complete execution of the uP 8085 instruction STA 4567H. Assume that this instruction is fetched from memory location 4321H. ii) Along with a neat sketch of the functional block diagram / architecture, describe the salient features available in the 8-bit uP 8085. _ (8 + 8) [OR] ஞ் 13. 14. 15.
0 eligible source papersb) i) Given two unsigned 8-bit numbers at memory locations 4200H and 4201H, write a program which finds the sum, difference (274 number minus 1° number, assumed positive), product (assumed lesser than OFFH), quotient and reminder on performing (274 number / 1 number ) and stores them at subsequent memory locations. Use uP 8085 or uC 8051 assembly language. ii) Using uP 8085 assembly language, write a time delay subroutine, which generates a delay of 1.msec. Use counter-0 of 8253 timer in ‘reading on fly / latch on count’ mode. Assume its input clock frequency to be 1 MHz. til) Using uC 8051 assembly language, write a time delay subroutine, which generates a delay of 1 msec. Use one of its internal timers in any suitable mode. Assume the crystal frequency to be 12 MHz. (6+5+5 ) a) Along with relevant external hardware, internal block diagram and relevant control word formats, expiain now keypad and displays have been interfaced to uP 8085 using 8279 in the uP kits. Also write a program segment which would display ‘EE 9252 ‘ in the uP kit that you have used in the laboratory. [OR] ட) Along with internal block diagram and relevant mode/ command/ status word — formats, describe the salient features of 8251 - Universal Synchronous Asynchronous Receiver Transmitter. Also comment on the UART features (only mode-1 required to be explained) available in uC 8051. a) A room’s temperature is to be maintained in the range 10°C to 35°C, by switching ON a fan in case of temperature exceeding 35°C and by switching ON a heater in case of temperature going below 10°C. Draw necessary hardware and give required 8085 program for achieving this objective. Assume LM 135 temperature sensor, connected to uP 8085 through 8255 PPI and ADC 0801.
0 eligible source papersb) i)A thumb wheel switch is connected as the input device, and two number of 7- segment LEDs connected through 7447 decoders form the output device. Both these are interfaced to uP 8085 through 8255 PPI. Assume suitable port connection. 8255 PPI itself is required to be connected following memory mapped I/O with address range of ₹000- FOO3H. Draw the hardware connections. Also write a program which reads in the BCD input from thumb wheel switch and displays the value of its square at the 7-segment displays. ii) Same external hardware is now connected to a uC 8051; thumbwheel switch to port -1 and 7447 decoder ICs to the port-2. Write a program in uC 8051 assembly language, to perform the same task. (11+5) a) Along with external hardware/ power circuit and machine cross-sectional diagram, explain how a stepper motor interface can be controlled from uP 8085 or uC 8051.
0 eligible source papersb) Along with a neat sketch of the functional block diagram / architecture, describe the salient features available in the 8-bit micro-controller 8051. State the purpose for each of the Special Purpose Registers, mentioning if bit-addressable or not.
0 eligible source papersWhat is the operation performed by the instruction ‘DAA’ available in 80857. What is the purpose for which the signal ‘ALE’ is available in uP 8085/ பே 80517. Given a 8Kbyte sized EPROM along with two number of 74138 ICs, how would you interface the memory to the 8085 with a required memory mapping of 4000 — SFFFy? Distinguish between Carry flag and Overflow flag?. Distinguish between the operation performed by the instructions: INR H and INX H? Distinguish between memory mapped I/O and the peripheral mapped 1/0? What are the roles for the signal BHE of ப 80867. Discuss the operation performed by the 8051 instruction DIV AB. How does this instruction affect - the overflow fiag? ஓ 11. 12. What is/are the status/ error indicating bits available in 8251? What is the purpose for employing IC 8279 in the uP 8085 and uC 8051 trainer kits? Distinguish between the opPART -8 (5 x 16 = 80 ) Along with a neat sketch of the functional block diagram / architecture, describe the salient features available in the 8-bit micro-controller 8051. List down its Special Function Registers, mentioning which of them are bit-addressable?. a) i) Draw the timing diagram showing fetching and complete execution of the பர் 8085 instruction INR M. Assume that this instruction is fetched from memory location 4567, and that the register pair HL contains 789A,. ii) Along with a neat sketch of the functional block diagram / architecture, describe the salient features available in the 8-bit uP 8085. (8 + 8)
0 eligible source papersb) i) Write a subroutine for generating a time delay in uP 8085, using software delay loop. Also evaluate the count required to obtain a time delay of about 1 sec. Assume a பா? clock frequency of 2 MHz. ii) Discuss how would you generate a time delay of 1.2 sec, using 8253 in its ModeO with ‘Reading on fly/ Latch on count’ feature? Assume that the clock to the 8253 counter to be of frequency: 1kHz. iii) Using uC 8051 assembly language, write a time delay subroutine, which generates a delay of 0.2 sec. Use one of its internal timers in any suitable mode. Assume the crystal frequency to be 12 MHz. ( 6+5+5 ) 13. 14. 15. a) i)Write an assembly language program which receives the 8-bit number made available seriaily at the SID pin? Store the received byte at the memory location 5000h. Assume that there is a delay subroutine available providing delay for haif bit-time. ii) Draw the functional block diagram of 8251 - USART IC, and describe the role for each block? (6+10)
0 eligible source papersb) i) Discuss a scheme for measuring the room temperature with a resolution of 1°C? Use ADC 0801 and LM 135 as temperature sensor. ii) Draw the functional block diagram of 8259 — Programmable Interrupt Controller iC, and describe the role for each block? (845) a) Given two 8-bit numbers in memory locations 4500, and 45011, write an assembly language program which finds the sum, difference, product and division of the given numbers and stores the results in the subsequent locations. You may employ 8085 or 8051’s assembly language. [OR] ட) i)A thumb wheel switch is connected as the input device, and one 7-segment LED connected through 7447 decoder forms the output device. Both these are interfaced to uP 8085 through 8255 PPI. Assume suitable port connection. 8255 PPI itself is required to be connected following peripheral mapped I/O with address range of 90- 93,,. Draw the hardware connections. Also write a program which reads in the BCD input from thumb wheel switch and displays the value of its 9’complement at the 7-segment display. ii) Discuss the control word format of 8255 used in the program. (12+4) a) What are the base and index registers available in பூ? 8086. Explain how are these useful, considering typical addressing modes? Also explain the roles of the units இப் and €U, along with a neat sketch of the functional block diagram of intel 8086. [OR] ட) Along with external hardware circuit and the machine cross-sectional diagram, explain how a stepper motor interface can be controlled from uC 8051. Use the port-1 of uC 8051. Assuming variable reluctance type stepper moior is available with a step angle of 3 degrees, write a program using 8051 assembly language for deflecting the stepper motor shaft by 45 degrees.
0 eligible source papersHistorical analysis based on extracted question papers. Topic classifications, marks and planning estimates are provisional.