Professional Documents
Culture Documents
B.TECH.
Semester – VII
B.TECH.
Semester – VII
B.TECH.
Semester – VII
DIGITAL COMMUNICATION
(EE-427-E)
List of Experiments
AIM:
Write a program to add 2 numbers and display the result on LED’s in Binary form on port 0.
APPARATUS:
Universal microcontroller kit, 8051 IC, power supply, adaptor.
PROGRAM:
RESULT:
EXPERIMENT NO. : 03
AIM:
Write a program of flashing LED’s connected at port 1 of the microcontroller.
APPARATUS:
Universal microcontroller kit, 8051 IC, power supply, adaptor.
PROGRAM:
RESULT:
EXPERIMENT NO. : 04
AIM:
Write a program to multiply two numbers and display the result on ports.
APPARATUS:
Universal microcontroller kit, 8051 IC, power supply, adaptor.
PROGRAM:
RESULT:
EXPERIMENT NO. : 05
AIM:
Write a program for Seven Segment Display.
APPARATUS:
Universal microcontroller kit, 8051 IC, power supply, adaptor.
PROGRAM:
RESULT:
EXPERIMENT NO. : 06
AIM:
Write a program for alternate LED connected at port 0 of the microcontroller.
APPARATUS:
Universal microcontroller kit, 8051 IC, power supply, adaptor.
PROGRAM:
RESULT:
EXPERIMENT NO. : 07
AIM:
Write a program to generate 10 KHz square wave.
APPARATUS:
Universal microcontroller kit, 8051 IC, power supply, adaptor, CRO.
THEORY:
The 8051 has two timers: timer 0 and timer 1. They can be used either as timers or as event counters.
Both timer 0 & timer 1 are 16 bits wide. Since the 8051 has an 8-bit architecture, each 16 bit timer is
accessed as two separate registers of low byte and high byte. Both timer use the same register, called
TMOD, to set the various timer operation modes. TMOD is an 8-bit register in which the lower 4 bits are
set aside for timer 9 and the upper 4 bits for timer 1. In each case, the lower 2 bits are used to set the timer
mode and the upper 2 bits to specify the operation.
PROGRAM:
RESULT:
EXPERIMENT NO. : 08
AIM:
Write a program to generate 10 KHz frequency using interrupts.
APPARATUS:
Universal microcontroller kit, 8051 IC, power supply, adaptor, CRO, interrupting kit.
THEORY:
The six interrupts in the 8051are allocated as follows:
1. Reset when the reset pin is activated, the 8051 jumps to address location 0000. This is the power-up
reset.
2. Two interrupts are set aside for the timers: one for timer 0 and one for timer 1. Memory locations
000BH and 001BH in the interrupts vector table belong to timer 0 and timer 1. Respectively.
3. Two interrupts are set aside for external hardware interrupts. Pin numbers 12(P3.2) and 13(P3.3) in
port 3 are for the external hardware interrupts INT0 and INT1, respectively. These external interrupts
are also referred to as EX1 and EX2. Memory locations 0003H and 0013H in the interrupt vector
table are assigned to INT0 and INT1, respectively.
4. Serial communication has a single interrupt that belong to both receive and transmit. The interrupt
vector table location 0023H belong to this interrupt.
PROGRAM:
RESULT:
EXPERIMENT NO. : 09
AIM:
Write a program to interface one microcontroller with other using serial/parallel communication.
APPARATUS:
Universal microcontroller kit, 8051 IC, power supply, adaptor.
THEORY:
Serial data communication uses two methods, asynchronous and synchronous. The synchronous method
transfers a block of data at a time, while the asynchronous method transfers a single byte at a time. It is
possible to write software to use either of these methods, but the programs can be tedious and long.
PROGRAM:
RESULT:
EXPERIMENT NO. : 10
AIM:
Write a program for temperature and pressure measurement & to display on intelligent LCD.
APPARATUS:
Universal microcontroller kit, 8051 IC, power supply, adaptor, temp. kit.
THEORY:
The sensors of the LM34 series are precision integrated- circuit temperature sensors whose output voltage
is linearly proportional to the Fahrenheit temperature. The LM34 requires no external calibration since it
is internally calibrated. It outputs 10mv for each degree of Fahrenheit temperature change.
PROGRAM:
RESULT:
EXPERIMENT NO. : 11
AIM:
Develop an embedded system for traffic light controller using microcontroller.
APPARATUS:
Universal microcontroller kit, 8051 IC, power supply, adaptor, traffic control kit.
PROGRAM:
RESULT:
EXPERIMENT NO. : 12
AIM:
Write a program for PWM based speed control of motor.
APPARATUS:
Universal microcontroller kit, PIC, power supply, adaptor, speed control kit.
PROGRAM:
RESULT:
EXPERIMENT NO. : 13
AIM:
Write a program for PWM based regulator of voltage.
APPARATUS:
Universal microcontroller kit, PIC, power supply, adaptor, speed control kit.
PROGRAM:
RESULT:
Q1: How many timers do we have in the 8051?
Q2: In the instruction “MOV TH1,#-200”, find the hex value for the TH register.
Q3: In 8051, what memory area is assigned to the interrupt vector table?
Q4: Which pin of 8051 is assigned to the external hardware interrupt INT0 and INT1?
Q5: How many bytes of ROM space are assigned to the reset interrupt, and why?
Q1: Which timer of the 8051 is used to set the baud rate?
Q2: Which mode of the timer is used to set the baud rate?
Q4: Which register has the SMOD bit, and what is its status when the 8051 is powered up?