Microcontroller Lab - RB - For Circulation
Microcontroller Lab - RB - For Circulation
[RI2109-1]
LAB MANUAL
AY 2023-24
COURSE SYLLABUS
1
Department of Robotics & AI
[RI2109-1] Microcontroller Lab
Microcontroller Lab
Course Code: RI2604-1 Course Type PCC Lab
Teaching Hours/Week (L: T: P: S) 0:0:2:0 Credits 01
Total Teaching Hours 25 CIE + SEE Marks 50+50
Prerequisite CS1001-1, EC1001-1
Teaching Department: Robotics & AI Engineering
Course Objectives:
1. Introduce the instruction sets to 8051microcontrollers
2. Write program for interface display units
3. Write program to interface signal processing units
4. Write program to interface motor control units
5. Write program to interface serial communication
List of Experiments
1. Data Transfer - Block move, Exchange- Assembly Language.
Arithmetic Instructions - Addition/subtraction, multiplication and division,
2.
Number conversion – Assembly language.
DAC interface-8051to generate different waveforms Sine, Square, Triangular, Ramp etc. with
3.
varying frequency & amplitude.
4. External ADC and Temperature control interface to 8051.
5. LED, Seven Segment and Switch interface – Embedded C programming.
6. Solenoid valve interfacing using relay – Embedded C Programming.
7. DC Motor speed control using PWM – Embedded C Programming.
8. DC motor control interface to 8051.
9. Rotary encoder interfacing to 8051 – Embedded C Programming.
10. Servo motor interface – Embedded C Programming.
11. Stepper motor control interface to 8051.
12. Linear actuator Interfacing using stepper motor – Embedded C Programming.
13. Gyro sensor interfacing for Robotic ARM with X-Y-Z axis motion to STM32.
14. Light Sensor interfacing for datalogging to STM32
Course Outcomes: At the end of the course student will be able to
1. Use instruction sets to solve logical problems using Assembly language.
Develop embedded-C coding to interface LED, Seven-segment, LCD, embedded-C coding to
2.
interface ADC & DAC.
Develop embedded-C coding to interface stepper motor, servo motor, DC motor control, Rotary
3. encoder, linear actuator to 8051and develop embedded-C coding to demonstrate serial
communication using STM32 Microcontroller.
Course Outcomes Mapping with Program Outcomes & PSO
Program Outcomes→ PSO↓
1 2 3 4 5 6 7 8 9 10 11 12
↓ Course Outcomes 1 2 3
RI2604-1.1 3 2 1 - - - - - - - - 1 2 1 2
RI2604-1.2 3 2 1 - - - - - - - - 1 2 2 2
RI2604-1.3 3 2 1 - - - - - - - - 1 2 2 2
1: Low 2: Medium 3: High
REFERENCE BOOKS: Laboratory Manual for microcontroller laboratory
2
Department of Robotics & AI
TABLE OF CONTENTS Page
Architecture of 8051, Pin Diagram 2
Instruction Set 4
Steps to be followed for microcontroller software programs 4
The 8051 Board 8
Experiments
1
ARCHITECTURE OF 8051
2
3
8051 INSTRUCTION SET:
1. Go to Keil uVision
4.
4
5.
5
7. Add an existing file to the source group
8.
6
9.
10.
7
11. Create HEX file for Interfacing experiments.