For More Question Papers Visit - www.pediawikiblog.com
~
1~~~ <."
-:~ifth Semester B.E. Degree Examination, Dec.2017/Jan.201SO ') r,r :'\ 8051 Microcontroller r -..,.:"i
-y.
, Ji
m
~
Time: 3 hrs. ' \ . \
Max.,lvlarks:
80
/ .
Module-l \", ?) a. Compare and c6nh:fstr~icroprocessors and microcontrollers. /:.,I.~:'~.) (04 Marks) b. What does the terrKEmbedded system mean? \,", } (02 Marks) c. Describe the hardwm"6 features of8051 microcontrollers, with.a 'neat internal block diagram, <: N/ \:/ (10 Marks) \
>.-';,
, "-/'(\, . --::%/'
c-; ~I",
a. b.
(r
Briefly discuss the uses oh\{ir ~nd PSW registers.., ' Show how to interface external fROM and external RM1to ' ,vr~ them, r» / l, ""N'
(06 Marks)
8051. Explain how 8051 access (10 Marks)
ib
2
OR
J
lo
-,,:-
g.
I.
1
~
co
Note: Am/l~erFJVEfuli q-uestions,choosing one full question from each module.
::--.0)
Morlule-2~ Explain any 4 data addressing modes of pOS1 with Ian example for each mode. Show the status ofCY, AC and P flags after eXecution offollowing instructions MOY A, # 9 C H d':)D A, # 64ft c. Write a program to copy the value 55H into RAM location 40H to 45H using i) Direct addressing, without using loop. ii) Register indirect addressing, withOI~tusing loop, ':.:;
ia
,
I
\
c '/
w
c.
w
.., (5 z
6
(06 Marks)
'/
'-Z;7~"
I ~
ed
.p
a. b.
a.
/
'S~/(
~/ ~ What are the benefits subroutines? (02 Marks) Discuss two instructions used to call subroutines with their ranges and write the significance of stack with re pect to all instructions. (06 Marks) Ten 8 - bit numbers are stored in RAM locations 40H onwards. Write an ALP to find the Largest number and store it in memory location 50H. (08 Marks)
w
5
(04 Marks)
OR ~-.J .''-, a. Discu~s the three a?dress ran/~~~~at are util.ized ~y jUnlP (~<J'pall instructions. (06 Marks) b. Explain byte and bit leve~ 1,~cal OR operation with examples .>' (04 Marks) c. Write an ALP to verify ,wheth'ef the data present in 10cation/lQOOH is odd/even. If odd store OOHin location 2000H: bt~erwise store EEH in 2000H. ~ (06 Marks) I~
4
(06 Marks)
ik
a. b.
w
3
of
Module-3
,. r../
\
/
,
00
-/
Write 'an ALP to read switch given in fig.Qota). if switch is closed turn ON the LI\Q ~I.ge turrr bJ'l the LED. (O~)Marks) /~
-rS'v
~o
c..
.§
Fig,Q6(a)
1 of2
For More Question Papers Visit - www.pediawikiblog.com
\~?
For More Question Papers Visit - www.pediawikiblog.com
15EC563
l'>
aq /6~n
8051 system of 11.0592 MHz. Find the time delay for the following subroutine // D laV' MOY R3 , # 250 (06 Marks) Back op "'J up J)lb ~ R3 , BACK ~T Write an ,f fi d factorial of an 8 - bit number N. Assume value QfN! does not exceed
c.
At:
.
8 bit.
/
ik ib lo g. co
m
b.
(;,
/.-
/'/,/ '-'i v-;:) \~~
(? \.
7
( )
~.
c
(06 Marks)
Module-4 ~ Describe the various i odes of operation of 8051 Timers. (04 Marks) Write an ALP to create/>p lse width of 50ms on P2.3 using TUner '0' operating in Mode 1. Assume crystal frequem:y#:H.0592 MHz. (06 Marks) Write an ALP to generat £~ 'are wave of frequency 1KHz on P13 using Mode 2. Timer O. Assume crystal frequency ~ :1zMHz. r (06 Marks)
a. b. c.
)
8
a.
List the advantages of serial dati &::mu~~ation over parallel and explain briefly details of SCON register. ( (04 Marks) Write an ALP to transfer a letter 'M' serially at 9600 baud rate continuous by through P3.1 . Assume XT AL frequency as 11.0592MHz. ' (06 Marks) Write an 8051 'C' program to receive data b}(tes serially and put them in Pl. Set the baud rate at 4800, 8 bit data and 1 stop bit. Assume XTAL frequency as 11.0592 MHz. (06 Marks)
b.
aw
c.
I
\
"Modtlle-5 j'/ a. Briefly explain the software interrup v / f 8051. '... (04 Marks) b. Discuss the role ofTCON register ip:handling interrupts giving its bit details. (04 Marks) c. Write a program using interr~p.ts to'get data from Pl.0 ~rid'send it to P2.0, while timer '0' is generating a square wave of on P2.4. Assume XT~.L- frequency as 11.0592 MHz.
di
9
,/
r ./
kI-GJ,
Ii,.
.p e
z..."'II/ ;;:. . oI/
./
'
OR
<:
-:
(08 Marks)
" -
10 a. A switch is connected to pj'il P2.7 and a stepper motor to port 'k Write a program to monitor
w
w
w
the status as of swirc~in9 and ' If SW = 0, stepper motor should rotate clock wise, continuously. If SW = 1, stepper m tor should rotate anti clock wise, continuously. (08 Marks) b. Interface ADC 0804' to 8051 and write an ALP to convert the analog input to digital value. (08 Marks)
*****
20f2
For More Question Papers Visit - www.pediawikiblog.com