Assignment - MC
Assignment - MC
Estd: 1986
SEMESTER IV C
FACULTY NAME and
E N Srivani, Asst. Professor
DESIGNATION
Module -1
4 L4&L5 CO1
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
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
Module -4
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
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
Page | 5