Saurastra University 2006 M.C.A Microprocessor & Microcontroller (New ) - Question Paper
SU-8172 Seat Seat No.
USUI-81721*
*SU-8172*
M. C. A. (Sem. IV) Examination May / June - 2006 Microprocessor & Microcontroller
[Total Marks : 75
Time : 3 Hours]
1 Attempt any three :
15
(a) Specify different criteria needed for choosing a micro controller.
(b) Specify the features of 8051 microcontroller.
(c) Specify the use of different files created during the assembling and running of 8051 program.
(d) Explain 8051 data types and directives.
2 Attempt any three : 15
(a) Write a program to complement the content of accumulator 500 times.
(b) Explain the use of CALL instruction and stack with example.
(c) Write a program to monitor the P 2.7 bit. where it is low, send 55H and AAH to PO continuously.
(d) Explain direct addressing mode in reference to stack with example.
3 Attempt any three : 15
(a) What is the significance of PSW register ?
(b) Desribe the categorization of RAM space in 8051.
(c) Explain the concept of signed numbers in computers.
(d) Explain concepts of serial communication.
SU-8172]
[Contd.
1
4 Do as directed : (any three)
Show the status of CY, AC, P flags after the addition of 8BH and 73H.
(a)
(b)
Find the time delay for the delay subroutine shown below, if the system frequency is 11.0592 MHz.
DELAY : |
MOV |
R5, |
# 100 | |
BACK : |
MOV |
R2, |
# 200 | |
AGAIN : |
MOV |
R3, |
# 250 | |
HERE : |
NOP | |||
NOP | ||||
DJNZ |
R3, |
HERE | ||
DJNZ |
R2, |
AGAIN | ||
DJNZ |
R5, |
BACK | ||
RET | ||||
(Machine |
cycles : |
(1) |
MOV 2 i | |
DJNZ |
2 (4) RET |
1) |
Find the value of DV flag, for following code :
(c)
MOV A, # - 128 MOV R4, # - 2 ADD A, R4
Write a program to create a square wave of 50% duty cycle on P1.0.
(d)
5 Attempt following programs : 15
(a) To see whether the D0 and Di bits of A are high. If so divide it by 4.
(b) To find the position of first high bit in an 8-bit data item. Data is scanned from D0 to D7.
(c) To add 897F9AH to 34BC48H and save the result in RAM memory location starting at 40H.
SU-8172] 2
d by dei ftp:/ .dooudei
Attachment: |
Earning: Approval pending. |