×
Don’t stop when you’re tired. STOP when you are DONE.
--Your friends at LectureNotes
Close

Solution to Previous Year Exam Questions for Microprocessor and Microcontroller - MPMC of BPUT by Mitu Baral

  • Microprocessor and Microcontroller - MPMC
  • 2014
  • PYQ Solution
  • Biju Patnaik University of Technology Rourkela Odisha - BPUT
  • Computer Science Engineering
  • B.Tech
  • 533 Views
  • 16 Offline Downloads
  • Uploaded 6 months ago
Mitu Baral
Mitu Baral
0 User(s)
Download PDFOrder Printed Copy

Share it with your friends

Leave your Comments

Text from page-1

Subject : MICROPROCESSOR & MICROCONTROLLER Subject Code : PCEL4303 Semester : 6TH Applicable Branch (es) : CSE, EE Question Code : F217 Year of Examination : 2014 Exam Type (Special/Regular): REGULAR Solution Prepared by Sl.No. Faculty Name Email ID 1 M. SURESH msuresh73@hotmail.com 2 DEBASISH Debasishch.me@gmail.com CHOWDHURY 3 MALABIKA PATTNAIK mala2007_patt@yahoo.co.in NATIONAL INSTITUTE OF SCIENCE &TECHNOLOGY PALUR HILLS, BERHAMPUR, ORISSA – 761008, INDIA

Text from page-2

PCEL4303 MICROPROCESSOR AND MICROCONTROLLER SEMESTER QUESTION SOLUTION QUESTION 1 a) Write four salient feature of 8085 microprocessor. Ans: 1) 8085 microprocessor is an 8 bit microprocessor. i.e. it can accept or provide 8 bit data simultaneously. 2) 8085 microprocessor provides 16 address lines, therefore it can access 2^16 = 64K bytes of memory. 3) 8085 microprocessor requires a single +5V DC power supply. 4) 8085 microprocessor provides on chip clock generator, therefore there is no need of external clock generator, but it requires external tuned circuit like LC, RC or crystal. b) Discuss the PSW register of 8051. Ans: PSW (program status word) register The program status word (PSW) register is an 8-bit register. It is also referred to as the flag register. Although the PSW register is 8 bits wide, only 6 bits of it are used by the 8051. The two unused bits are user-definable flags. Four of the flags are called conditional flags, meaning that they indicate some conditions that result after an instruction is executed. These four are CY (carry), AC (auxiliary carry), P (parity), and OV (overflow). The bits PSW.3 and PSW.4 are designated as RS0 and RS1, respectively, and are used to change the bank NATIONAL INSTITUTE OF SCIENCE & TECHNOLOGY PALUR HILLS, BERHAMPUR, ODISHA-761008, INDIA Page 1

Text from page-3

PCEL4303 MICROPROCESSOR AND MICROCONTROLLER SEMESTER QUESTION SOLUTION registers. The PSW.5 and PSW.l bits are general-purpose status flag bits and can be used by the programmer for any purpose. In other words, they are user definable. c) What is the difference between SI and DI? Ans: SI DI Source index register Destination index register Offset address register for source string operand in string related instruction Offset address register for Destination string operand in string related instruction d) State the difference between maximum and minimum mode operation of 8086. Ans: NATIONAL INSTITUTE OF SCIENCE & TECHNOLOGY PALUR HILLS, BERHAMPUR, ODISHA-761008, INDIA Page 2

Text from page-4

PCEL4303 MICROPROCESSOR AND MICROCONTROLLER SEMESTER QUESTION SOLUTION e) Which register pair in 8085 processor is used as memory pointer? Ans: For register ‘M’, HL register pair will be used as memory pointer. But, we can also use BC pair or DE pair as the memory pointer in LDAX and STAX instructions. f) Explain the difference between JUMP and Call instruction. Ans: JUMP CALL Not stored return address Store return address g) State the function of RS1 and RS0 bits in the flag register of Intel 8051 microcontroller. Ans: RS1 and RS0 are called Register Bank Select Bits These two are bit 3 and 4 of the PSW register of 8051 microcontroller used for selecting the register bank. Since there are four register banks, two bits are required for selecting a bank, as detailed below. PSW.4(RS1) 0 0 1 1 PSW.3(RS0) 0 1 0 1 Register Bank Bank0 Bank1 Bank2 Bank3 NATIONAL INSTITUTE OF SCIENCE & TECHNOLOGY PALUR HILLS, BERHAMPUR, ODISHA-761008, INDIA Page 3

Lecture Notes