Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

V Semester B.Tech (Electrical & Electronics Engineering) End Semester Examinations, November 2017

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

Reg. No.

V SEMESTER B.TECH (ELECTRICAL & ELECTRONICS ENGINEERING)


END SEMESTER EXAMINATIONS, NOVEMBER 2017
SUBJECT: MICROCONTROLER BASED SYSTEM DESIGN [ELE 3106]
REVISED CREDIT SYSTEM

Time: 3 Hours Date: 27 NOVEMBER 2017 Max. Marks: 50


Instructions to Candidates:
 Answer ALL the questions.
 Missing data may be suitably assumed.

1A. Describe in detail the internal RAM organization of 8051 microcontroller and explain the
register banks of RAM. (03)
1B. Explain the following as applicable to 8051 instructions.
 Direct addressing mode  Register addressing Mode
 Indirect addressing mode  Immediate addressing mode
Use relevant ADD instruction for each of these modes and illustrate with an example. (04)
1C. Show the connection diagram to connect two switches (push button keys) say S1 and S2 to pins
P1.1 and P1.2 of 8051. Connect them in such a way that when switch is open, corresponding
pin must be low and when switch is closed it should be high. Write an 8051 ALP to perform the
following
 Keep monitoring pins P1.1 and P1.2.
 When S1 is closed, set general purpose flag bit 1 of PCON register.
 When S2 is closed, generate a high to low pulse at P 2.3. (03)
2A. Write an 8051 ALP to find the maximum score obtained in a particular course evaluated out of
50marks for a class strength of 40 students. The data is stored in external RAM locations
starting from 2000H onwards. Display the maximum marks scored at port ‘0’. If more than one
student has scored the same (highest) marks, display the count of such students at port ‘1’. (04)
2B. Write a brief note on parallel I/O ports of 8051 microcontroller & describe the alternate
functions of all the pins of port 3. (03)
2C. Calculate the exact time taken for the execution of the following 8051 program if (i) XTAL=
10MHz (ii) XTAL=16MHz.
MOV R0, #0EFH
LOOP1:NOP
NOP
DJNZ R0, LOOP1
MOV R1, #00H
LOOP3:NOP
NOP
MOV R2, #0A0H
LOOP2:NOP
DJNZ R2,LOOP2
DJNZ R1, LOOP3 (03)

ELE 3106 Page 1 of 2


3A. Show the interfacing circuit to interface DAC 0800, an ‘8’ bit DAC to 8051 microcontroller and
write an ALP to display the waveform shown in fig. Q3A. Use port ‘1’ of 8051 microcontroller
to give the digital input to DAC. Keep doing this continuously and when the Timer ‘0’ interrupts
the CPU after 1msec, transfer the current status (output) of the DAC serially at 4800 baud for
display. Return back to the main program and continue doing it. Assume XTAL=11.0592MHz. (06)
3B. i. Describe mode 2 operation of 8051 timers in timer mode and compare it with mode 1
operation highlighting clearly all the features and differences.
ii. Write an 8051 ALP to obtain a 1 KHz, 40% duty cycle waveform on pin P2.1. Use timer
‘0’ in mode 2 to obtain the delay (on and off periods of the wave). (04)
4A. Describe the functions of all the pins (signals) of a 14 pin, 16 X 2 LCD. Show the interfacing
circuit to interface this LCD to 8051. (03)
4B. i. For a 12 bit ADC with VREF + = 3.3 V and VREF - = 0V, determine a) Resolution b) Digital
output in binary for an analog input of 2.6V.
ii. Show the interfacing circuit to interface ADC 0809 (‘8’ channel, ‘8’ bit ADC) to 8051 and
write an 8051 ALP to convert the analog input applied to channel 3 (IN3) to digital.
Display the digital output at port 1. If the analog input is less than 4V, turn on the LED
connected to P3.5 pin. Assume VREF + = 5V and VREF - = 0V. (04)
4C. Show the interfacing circuit to interface a decimal keyboard (10 keys) in 2 X 5 matrix form to
8051. Assume keys ‘0’ to ‘4’ connected in row 0 and keys ‘5’ to ‘9’ in row 1. Use pins P1.0, P1.1
for rows and pins P2.0, P2.1, P2.2, P2.3 and P2.4 for columns. Write an 8051 ALP to detect the
key pressed and display the key code of the key pressed at port 0. Use software de bouncing
technique. (03)
5A. i. Highlight the main features of ARM7TDMI processor architecture and list the features
incorporated and the features not incorporated from Berkley RISC - I processor
architecture.
ii. Mention the various operating modes of ARM7 processor and list the visible (available)
registers in each of these modes. (03)
5B. Describe the following ARM7 instruction. Explain all the instruction fields clearly.
SBC {condn} <S> Rd, Rn, operand 2.
Give example instructions for each of the possible case of operand 2. Illustrate anyone with an
example. (03)
5C. Write ARM7 assembly code to perform the following operation
i. Add two 16 bit numbers available in memory locations 0X00009050, 9051 and
0X00009060, 9061. Store the result at 0X00009070 – 9073.
ii. Compliment bits D0, D5, D12, D25 and D31 (without affecting other bits) of a 32 bit
number available in memory locations 0x0000C020 – C023. Store the result at the same
memory locations. Assume little endian format.
iii. Multiply a 32 bit number in R0 register by 35 without using any multiplication
instruction. (04)

ELE 3106 Page 2 of 2

You might also like