BEE403
BEE403
Note: 01. Answer any FIVE full questions, choosing at least ONE question from each MODULE.
02. Include suitable comments to your program
*Bloom’s
Module -1 Taxonomy Marks
Level
Q.01 a What are the differences between microcontrollers and microprocessors L1 5
c Draw the architecture of 8051 micro controller and explain the following blocks L2 10
(a)Program counter and data pointer (b)Accumulator, Register B and CPU
registers (c) Stack and stack pointer
OR
Q.02 a Calculate the memory map of AT89C51 microcontroller with 4 KB of on chip L2 5
ROM .
b Explain the working of flag and PSW register . What is the status of PSW after L2 10
adding (i) 67H with 72H (ii)55H with 88H
c L1 5
Explain the functions of EA and ALE pin .
Module-2
Q. 03 a Define assembler directive and explain the working of ORG 100 and L1 5
ORG 100H directive.
b 20 hex numbers are stored in RAM locations 60H onwards. Write a program to L3 10
find the smallest number in the set and save the result in RAM location 90H.
OR
Q.04 a L2 5
Explain the conflict between stack and bank 1 and how this can be avoided.
b L4 10
RAM locations 50H-59H contain daily temperature readings for ten days , if any
one of the value is 33H, write a program to give its location to registrar R0,else
make R0=0.
c L2 5
Write a program to select bank 2 and load the value 89H in the registers R0-R7.
Module-3
Q. 05 a Explain the difference between unsigned and signed char and int declarations in L2 5
8051 C. Give examples.
b Write 8051 C program to toggle all the bits of P0 and P1 with 100 mS delay. Use L3 10
Page 01 of 02
BEE 403
EX-OR operator.
b Write 8051 program to generate 50 KHz on the pin 2.5. Use timer 1 in mode 1 L4 10
and assume XTAL =22 MHz .Show the count calculations.
c Calculate the values of TMOD for the following modes (i)Mode-1 for timer 1 L1 5
and Timer 0 (ii) Mode 2 for timer 1 and timer 0
Module-4
Q. 07 a Explain the bit status of SCON register. L1 5
b Write 8051C program to send the message ‘VTU’ serially at 9600 baud rate and L4 10
do it continuously. Assume 8 bit data with 1 stop and 1 start bit. Show the
calculations of TMOD,TH1and SCON
c With XTAL=22MHz, calculate the TH1 value for the following baud rates L1 5
(i)1200 (ii)2400
OR
Q. 10 a Using DAC interface, write a program to generate staircase waveform. Assume L3 5
number of steps to be 5.
*Bloom’s Taxonomy Level: Indicate as L1, L2, L3, L4, etc. It is also desirable to indicate the COs and POs to be
attained by every bit of questions.
Page 02 of 02