Laboratory Experiments
I. PROGRAMMING
1. Data Transfer: Block Move, Exchange, Sorting, Finding largest element in an array.
2. Arithmetic Instructions - Addition/subtraction, multiplication and division, square, Cube – (16 bits Arithmetic operations – bit addressable).
3. Counters.
4. Boolean & Logical Instructions (Bit manipulations).
5. Conditional CALL & RETURN.
6. Code conversion: BCD – ASCII; ASCII – Decimal; Decimal - ASCII; HEX - Decimal and Decimal - HEX.
7. Programs to generate delay, Programs using serial port and on-Chip timer/counter.
II. INTERFACING
1. Interface a simple toggle switch to 8051 and write an ALP to generate an interrupt which switches on an LED
(i) continuously as long as switch is on and
(ii) only once for a small time when the switch is turned on.
2. Write a C program to
(i) transmit and
(ii) to receive a set of characters serially by interfacing 8051 to a terminal.
3. Write ALPs to generate waveforms using ADC interface.
4. Write ALP to interface an LCD display and to display a message on it.
5. Write ALP to interface a Stepper Motor to 8051 to rotate the motor.
6. Write ALP to interface ADC-0804 and convert an analog input connected to it.
Course Outcomes:
On the completion of this laboratory course, the students will be able to:
• Write Assembly language programs in 8051 for solving simple problems that manipulate input data using different instructions of 8051.
• Interface different input and output devices to 8051 and control them using Assembly language programs.
• Interface the serial devices to 8051 and do the serial transfer using C programming.
Conduct of Practical Examination:
• All laboratory experiments are to be included for practical examination.
• Students are allowed to pick one experiment from the lot.
• Strictly follow the instructions as printed on the cover page of answer script for breakup of marks.
• Change of experiment is allowed only once and 15% Marks allotted to the procedure part to be made zero.