0% found this document useful (0 votes)
52 views5 pages

Assignment - MC

Uploaded by

Sri Vani
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
52 views5 pages

Assignment - MC

Uploaded by

Sri Vani
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 5

SJCIT Assignment

Estd: 1986

Department of Electronics and communication Engg


ASSIGNMENT
SUBJECT TITLE MICROCONTROLLER

SUBJECT TYPE ELECTIVE

SUBJECT CODE BEC405A

ACADEMIC YEAR 2024 (EVEN SEMESTER) BATCH 2022-2026

SCHEME CBCS 23 SCHEME

SEMESTER IV C
FACULTY NAME and
E N Srivani, Asst. Professor
DESIGNATION

Module -1

Q. Questions Bloom’s COs


No. LL
Design of an 8031-based system with 8K bytes of program ROM and 8K
1 L3 CO1
bytes of data ROM July2015
Assume that we need an 8031 system with 16KB of program space,16KB
of data ROM starting at 0000, and 16K of NV-RAM starting at 8000H.
2 L3 CO1
construct the design using a 74LS138 for the address decoder.

3 Show the how memory get organized in 8051 microcontroller. L3 CO1


Analyze the list file and how the code is placed in ROM

4 L4&L5 CO1

5 The entire 8 bits of Port 1 are accessed L4&L5 CO1


BACK: MOV A,#55H

Page | 1
SJCIT Assignment

MOV P1,A
ACALL DELAY
MOV A,#0AAH
MOV P1,A
ACALL DELAY
SJMP BACK
Rewrite the code in a more efficient manner by accessing the port directly
without going through the accumulator ( 2 methods) ,compile the
program using keil software and evaluate the time consuming of all the
methods.

Module -2

Q. Questions Blooms COs


No. LL
1 After executing following code show the contents of A and R0 register.
MOV R0,#30h; assume 30h as data OAh
MOV A,@RO
L3
SWAP A CO2
XCH A,@RO

2 After executing following code show the contents of all registers.


ORG 0000h
MOV R0, #0FFh
MOV R1, #7Fh
MOV R2, #0FFh
MOV R3, #7Fh
MOV A, R0 L3
ADD A, R2 CO2
MOV R4, A
MOV A, R1
ADDC A, R3
MOV R5, A
MOV R6, #01
END

If the internal memory 20h contains AAh and 07h contains 55H,Analyze the
content of register A and status of carry bit after executing the following code:
3 MOV C,07h
MOV A,#20h L3
CO2
ADDCA,07h

4 Examine the following code and analyze the result with flag register L4&L5
Content and validate the result using tool.
MOV A,# 96
MOV R1,# 70 CO2
ADD A, R1

Page | 2
SJCIT Assignment

INR R1
5 Develop and Examine to count the number of positive and negative numbers
present in the internal memory block starting with address 20H, containing N
L4&L5 CO2
bytes. Store the counts after the last data byte in the memory block.

Module -3

Q. Questions Bloom’s COs


No. LL
1 After reset the contents of internal memory of 8051 with address 0AH and 0BH
contains data 22h and 33h respectively, Analyze the contents of internal memory
from address 07h to 0BH and the show value of register SP, after executing the
following code:
PUSH 0Ah
L3 CO3
.
.
MOV 81H,#0BH
POP 09H
2 Develop an assembly language program to find the largest element in a given L3 CO3
string of n =10 bytes at location 30h. Store the largest element at location 40h.
3 Show the stack contents, SP contents and contents of any register affected after
each step of the following sequences of operation )
MOV SP,#70H
MOV R5,#30H
MOV A,#44H L3 CO3
ADD A,R5
MOV R4,A
PUSH 4
PUSH 5
POP 4
4 Analyze and validate following code with respect to stack.
MOV SP, #10H
L4&L5 CO3
PUSH SP
POP 0E0H
ADD A, #10H
5 Analyze and validate for SP contents and contents of any register affected after
each step of the following sequences of operation
CLR A
MOV R1, #60H CO3
MOV R7, #16 L4&L5
AGAIN: MOV @R1, A
INC R1
DJNZ R7, AGAIN
PUSH 07H

Module -4

Q. Questions Bloom’s COs


No. LL
1 Develop ALP program for 8051 to Generate square wave with an ON time of L3
3ms and OFF time of 10ms on all the pins of port 0. Assume an XTAL of

Page | 3
SJCIT Assignment

22MHz. CO3
2 Write 8051 C program to send 2 different messages “NORMAL SPEED” and
”HIGH SPEED” to the serial port assuming that SW is connected to pin 2.0
monitor its status and set the baud rate as follows. L3
SW=0, 28000 Baud rate CO3
SW=1, 56K Baud rate
3 Develop an 8051-C program to toggle only bit P1.5 continuously for every 50
ms using timer 0 mode 1. Assume crystal frequency as 11.0592 MHz L3
CO3
4 Design and validate an ALP in 8051 to generate a square wave of frequency
10KHz on pin P1.2 using time1 mode 1. Assume crystal frequency as L4&L5
CO3
11.0592Mhz.
5 Design and implement LEDs get automatically switched on and off by making
the corresponding port pins of the microcontroller high. At a particular period of
CO3
time, only the green light holds ON and the other lights remains OFF, and after
sometime, the changeover traffic light control from green to red takes place by L4&L5
making the succeeding change for glowing of yellow LED. This process
continues as a cycle and the timing for changing the LEDs can be displayed with
the use of a seven.

Module -5

Q. Questions Bloom’s COs


No. LL
1 Develop a program for 8051 to transfer the message “WELCOME TO SJCIT” L3 CO4
serially at baud rate e of 9600, 8bit data with 1 stop bit. Do this continuously
2 Develop a 8051 C Program to send the two messages “Normal Speed” and
“High Speed” to the serial port. Assuming that SW is connected to pin P2.0,
L3 CO4
monitor its status and set the baud rate as follows: SW = 0, 28,800 baud rate SW
= 1, 56K baud rate,
Assume that XTAL = 11.0592 MHz for both cases
3 Show the instructions toenable the serial interrupt, timer 0 interrupt, and external
hardware interrupt 1 (EX1), and disable (mask) the timer 0 interrupt, then show L3
CO4
how to disable all the interrupts with a single instruction.
4 Design an interface of 8051 controller with a stepper motor and a switch is
connected to pin P2.7. Write a program to monitor the status of SW and perform
L4&L5 CO4
the following
a) When SW=0, the stepper motor moves clock wise
b) When SW=1, the stepper motor moves counter clock wise
5 Design the block schematic of LCD interfaced to 8051 and write an ALP to L4&L5 CO4
display“ ECE” on LCD.

Note:
1. Questions shall be framed by consolidating comprehensively from the
following sources
 Exercise problems of text books/ references
 Previous year question VTU exam Question paper. (Mark the year/exam
beside the question)
 Questions by Experts during Interview/Academic Audit

Page | 4
SJCIT Assignment

 Internet sources/ other Universities examination question papers.


 Own / experience.
2. Questions shall follow all the Bloom’s learning levels with appropriate
action verbs
3. There shall be a total of 25 questions considering 5 questions from each
module, of which, 3 questions at L3, 2 questions each at L4/L5.
4. Ensure the coverage of all COs
Rubrics to be specified for all assignment questions

Page | 5

You might also like