Beruflich Dokumente
Kultur Dokumente
LABORATORY MANUAL
SUBJECT: MICROCONTROLLER LAB
SUB CODE: 10ESL47
SEMESTER: IV
VISION:
To become a world-class center in providing globally relevant higher education in the
field of management, technology and applied science embedded with human values
VISION:
To impart value based technical education and train students through continuous
improvement in effectiveness and efficiency of teaching, learning and associated
processes and to collaborate with industry, foreign universities and institutions for
academic exchange programme for faculty and students.
PROGRAMME OUTCOMES:
a) An ability to apply knowledge of mathematics, science, and engineering
b) An ability to design and conduct experiments, as well as to analyze and interpret
data
c) An ability to design a system, component, or process to meet desired needs within
realistic constraints such as economic, environmental, social, political, ethical,
health and safety, manufacturability, and sustainability
d) An ability to function on multidisciplinary teams
e) An ability to identify, formulates, and solves (complex) engineering problems
f) An understanding of professional and ethical responsibility
g) An ability to communicate effectively
MICROCONTROLLER LAB
Sub Code
Hrs/ Week
Total Hrs.
:
:
:
10ESL47
03
48
I.
IA Marks
Exam Hours
Exam Marks
:
:
:
25
03
50
8051 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. 8051 INTERFACING
Write C programs to interface 8051 chip to Interfacing modules to develop single chip solutions
8. Simple Calculator using 6 digit seven segment display and Hex Keyboard interface to 8051.
9. Alphanumeric LCD panel and Hex keypad input interface to 8051.
10. External ADC and Temperature control interface to 8051.
11. Generate different waveforms Sine, Square, Triangular, Ramp etc. using DAC interface to
8051; change the frequency and amplitude.
12. Stepper and DC motor control interface to 8051.
13. Elevator interface to 8051.
III. MSP430 PROGRAMMING
14. Data Transfer - Block move, Exchange, Sorting, Finding largest element in an array.
15. Arithmetic Instructions - Addition/subtraction, multiplication and division, square, Cube .
16. Boolean & Logical Instructions (Bit manipulations).
17. Code conversion: BCD ASCII; ASCII Decimal; Decimal - ASCII; HEX - Decimal and
Decimal - HEX .
18. Programs to generate delay, Programs using serial port and on-Chip timer / counter
REFERENCE BOOK:
1. The 8051 Microcontroller and Embedded Systems using assembly and CMuhammad Ali Mazidi and Janice Gillespie -,PHI,2006/pearson,2006
2. The 8051 Microcontroller, V.Udayashankar and MallikarjunaSwamy,
TMH,2009
3. MSP430 Microcontroller Basics, John Davies, Elsevier, 2008
MICROCONTROLLER LAB
Sub Code
Hrs/ Week
Total Hrs.
:
:
:
10ESL47
03
48
IA Marks
Exam Hours
Exam Marks
:
:
:
25
03
50
Experiment 1
Objectives:
It provides practical experience with microcontroller systems for move, Exchange,
Sorting
Finding largest & smallest element in an array
Generic Skills / Outcomes:
Students will able to Understand the way in which subroutines are called and
returns made in counters
Analyze the calls and subroutines made in the program
Experiment 4
Objectives:
Instructions in programs
Experiment 5
Objectives:
Objectives:
The exercise shall make the students competent in generating delays using timers
and serial programming
Experiment 8
Objectives:
Students will be able to understand practical experiments of Interfacing
Generic Skills / Outcomes:
Students
The exercise shall make the students competent in designing DC motor for
industrial applications
Students will be able to analyze the real time applications of stepper motor
Experiment 13
Objectives:
Students will be able to interface Elevator with the microcontroller
Generic Skills / Outcomes:
Experiment 14
Objectives:
It provides practical experience with microcontroller systems for move, Exchange,
Sorting
Finding largest & smallest element in an array
Generic Skills / Outcomes:
Instructions in programs
Experiment 17
Objectives:
Objectives:
Students will be able to understand practical experiments of timers and counters
Generic Skills / Outcomes:
The exercise shall make the students competent in generating delays using timers
and serial programming
REFERENCE BOOK:
1. The 8051 Microcontroller and Embedded Systems using assembly and CMuhammad Ali Mazidi and Janice Gillespie -,PHI,2006/pearson,2006
2. The 8051 Microcontroller, V.Udayashankar and MallikarjunaSwamy,
TMH,2009
3. MSP430 Microcontroller Basics, John Davies, Elsevier, 2008
Subject Overview:
The objective of this course is to teach students design and interfacing of
microcontroller-based embedded systems.
To Understand how real-world embedded devices integrate hardware and software
Experience the designing and developing a real operational microcontroller-based
sensor/controller /actuator systems, and Interface microcontrollers with the
physical world.
Objectives:
On completion of this subject students will be able to:
Breadth Options:
This subject potentially can be taken as a breadth subject component for the following
courses:
Bachelor of engineering specialization in Electronics & Communication,
Telecommunication & Electrical Engineering.
Prerequisite:
Apply knowledge of basic science and engineering fundamentals.
Concepts of programming model of computer, Instruction sets and addressing
modes
LAB CYCLES
CYCLE 1:
1. Data Transfer - Block move, Exchange, Sorting, Finding largest element in an array.
2. Arithmetic Instructions - Addition/subtraction, multiplication and division, square, Cube
(16bits Arithmetic operations bit addressable).
3. Counters.
4. Boolean & Logical Instructions (Bit manipulations).
CYCLE 2:
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.
CYCLE 3:
8. Simple Calculator using 6 digit seven segment display and Hex Keyboard interface to
8051.
9. Alphanumeric LCD panel and Hex keypad input interface to 8051.
10. External ADC and Temperature control interface to 8051.
11. Generate different waveforms Sine, Square, Triangular, Ramp etc. using DAC interface to
8051; change the frequency and amplitude.
12. Stepper and DC motor control interface to 8051.
13. Elevator interface to 8051.
CYCLE 4:
14. Data Transfer - Block move, Exchange, Sorting, Finding largest element in an array.
15. Arithmetic Instructions - Addition/subtraction, multiplication and division, square, Cube
16. Code conversion: BCD ASCII; ASCII Decimal; Decimal - ASCII; HEX - Decimal
and Decimal HEX.
14.Boolean & Logical Instructions (Bit manipulations).
CONTENT LIST
SL.
NO.
TOPIC
PAGE NO.
3. RBS
BYTES OF DATA
1
2-3
OF DATA
5. RBS
4-6
7-9
6. SB
10-12
7. SB
13-14
8. SB
15-16
9. AVR
17-19
10. AVR
20-22
PROGRAM 9: DECIMAL TO
11. AVR
HEXADECIMAL CONVERSION
PROGRAM 10: HEXADECIMAL TO
12. SRK
DECIMAL CONVERSION
PROGRAM 11: BCD TO ASCII NUMBER
13. SRK
CONVERSION
PROGRAM 12: ASCII NUMBER TO BCD
14. SRK
CONVERSION
PROGRAM 13: HEXADECIMAL TO BCD
15. SR
CONVERSION
16. SR
17. SR
OPERATIONS
PROGRAM 16 DATA TRANSFER WITH
23-25
26-27
28-29
30-31
32-34
35-37
38-40
41-43
18. SR2
OVERLAP
19. SR2
44-45
20. SR2
46-49
21. SVKR
50-53
22. SVKR
54-56
23. SVKR
57-58
59-60
24. TKH
COUNTER
25. TKH
61-62
26. TKH
63-65
TIMERS
66-68
SERIALLY
69-70
30. SB
71-72
73-74
BY USING DAC
PROGRAM 31- TO GENERATE A SQUARE
33. SR
34. SR2
35. SVKR
INTERFACE
PROGRAM 32 - DC MOTOR INTERFACE
PROGRAM 34 LCD DISPLAY WITH KEY
75-76
77-78
79-81
82-83
84-85
86-89
36. TKH
PRESSED
37. SPG
90-91
38. NK
92-94
INTERFACE
95-97
98-101
41.SB
42. AVR
16 BIT NUMBERS
PROGRAM 40 LOGICAL AND
43. SRK
44. SR
OPERATION
PROGRAM 41 LOGICAL OR OPERATION
PROGRAM 42 LOGICAL EXOR
45. NK
OPERATION
PROGRAM 43 LOGICAL INVERSION
46. SVKR
OPERATION
102
103
104-105
106
107-108
109-110
47. TKH
111-112
48. SPG
113-114
49. SR2
115-116
50. SRK
117-118
119-120
51. SR
CONVERSION
PROGRAM 50 ASCII TO DECIMAL
53. SPG
CONNVERSION
121-122
123-124