Sie sind auf Seite 1von 14

DON BOSCO INSTITUTE OF TECHNOLOGY

Kumbalagodu, Mysore Road, Bangalore - 560 074

DEPARTMENT OF ELECTRONICS & COMMUNICATION


ENGINEERING
(ACADEMIC YEAR 2014-2015)

LABORATORY MANUAL
SUBJECT: MICROCONTROLLER LAB
SUB CODE: 10ESL47
SEMESTER: IV

INSTITUTIONAL MISSION AND VISION


MISSION:
To foster an intellectual and ethical environment in which both skill and spirit will thrive
so as to impart high quality education, training, and service with an international outlook.
To create and develop technocrats and business leaders who will strive to improve the
quality of life.

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

DEPARTMENT VISION AND MISSION


MISSION:
To provide an excellent learning opportunity for all students and staff to develop
knowledge and skills essential in enlightening the individuals ability to think vitally and
utilize Electronics in detail to meet the technological challenges of tomorrow and to
refine knowledge and understanding through research and creative activities.

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 EDUCATIONAL OBJECTIVES AND


PROGRAMME OUTCOMES
PROGRAMME EDUCATIONAL OBJECTIVES:
Program Educational Objective 1: To prepare students for graduate and
postgraduate programmes and to succeed career in Electronics & Communication
Engineering related fields.
Program Educational Objective 2: To provide students with a foundation in
fundamental engineering principles together with in-depth disciplinary knowledge or
solid foundation in mathematical, scientific and engineering fundamentals required to
succeed in technical profession
Program Educational Objective 3: To train students with a broad-based scientific
and engineering knowledge so as to comprehend, analyze, design, and create
innovative products and solutions for the real life problems.
Program Educational Objective 4: To inculcate in students professional and ethical
attitude with a strong character and to uphold the spiritual and cultural values,
effective communication skills, teamwork skills, multidisciplinary approach, and an
ability to relate engineering issues to broader social context.
Program Educational Objective 5: To provide student with an academic
environment aware of advanced technological growth leading to life-long learning
needed for a successful professional career, excellence and leadership

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

h) The broad education necessary to understand the impact of engineering solutions


in a global, economic, environmental, and societal context
i) Recognition of the need for, and an ability to engage in life-long learning
j) Knowledge of contemporary issues,
k) An ability to use the techniques, skills, and modern engineering tools necessary
for engineering practice and
l) An ability to understand and apply knowledge of advanced mathematics,
including probability and statistics, differential and integral calculus, linear
algebra and complex variables.

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 program for data movement, exchanging of data


Able to program the data to sort ascending and descending order
Experiment 2
Objectives:

Understand practical experiments of Addition/subtraction, multiplication and


division
Students will able to square, Cube of 8,16 bit numbers
Generic Skills / Outcomes:

Students will able to program for arithmetic operations


Experiment 3
Objectives:
Understand practical experiments of calls and subroutines
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:

It provides practical experience with microcontroller systems for Boolean and


logical operations
Generic Skills / Outcomes:
The exercise shall make the students competent in performing Boolean & Logical

Instructions in programs
Experiment 5
Objectives:

Analyze the calls and subroutines made in the program


Generic Skills / Outcomes:
The above exercise shall make the students competent in how parameters are passed

to subroutines and how local workplace is created and accessed


Experiment 6

Objectives:

It provides practical experience of Data conversions programs


Generic Skills / Outcomes:
Students will be able to understand practical experiments of Code conversion from

BCD to ASCII; ASCII to Decimal


Students will be able to understand practical experiments of Code conversion from
Decimal to ASCII; HEX to Decimal and Decimal to HEX
Experiment 7
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
Experiment 8
Objectives:
Students will be able to understand practical experiments of Interfacing
Generic Skills / Outcomes:
Students

will be able to understand practical experiments of Interface


microcontrollers with the physical world using Hex keyboard
Hex keyboard interfacing finds many real time applications
Experiment 9
Objectives:

To interface microcontroller with LCD


Generic Skills / Outcomes:
The above exercise shall make the students competent in designing and developing

a real operational microcontroller-based sensor/controller /actuator systems


Experiment 10
Objectives:

To provide the computational details for hardware programs of external ADC


Generic Skills / Outcomes:
Students competent in designing and developing a real operational microcontroller-

based Temperature controller system


Experiment 11
Objectives:
Students will be able to understand practical experiments of Generating different

waveforms Sine, Square, Triangular, Ramp


Generic Skills / Outcomes:
The exercise shall make the students competent in designing & using DAC interface

to 8051 and change the frequency and amplitude


Experiment 12
Objectives:

Students will be able to interface Stepper and DC motor controller.


Generic Skills / Outcomes:

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:

Students will able to program for data movement, exchanging of data


Able to program the data to sort ascending and descending order
Experiment 15
Objectives:

Understand practical experiments of Addition/subtraction, multiplication and


division
Students will able to square, Cube of 8,16 bit numbers
Generic Skills / Outcomes:

Students will able to program for arithmetic operations


Experiment 16
Objectives:

It provides practical experience with microcontroller systems for Boolean and


logical operations
Generic Skills / Outcomes:
The exercise shall make the students competent in performing Boolean & Logical

Instructions in programs
Experiment 17
Objectives:

It provides practical experience of Data conversions programs


Generic Skills / Outcomes:
Students will be able to understand practical experiments of Code conversion from

BCD to ASCII; ASCII to Decimal


Students will be able to understand practical experiments of Code conversion from
Decimal to ASCII; HEX to Decimal and Decimal to HEX
Experiment 18

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

Question Paper pattern:


Two lab programs to be conducted for 50 marks in 3 hours duration

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:

To provide students in-depth practical base of the Microcontroller programs


To familiarize the students regarding interfacing systems
To provide the computational details for hardware programs
This course covers Software and Hardware programs
The objective of this course is to introduce students to embedded, services and
business models of Electronics Commerce related applications

Generic Skills / Outcomes:


On completion of this subject students will be able to:

Able to program simple combinational logics using basic gates.


Able to optimize Data transfer logics & arithmetic and logical operations.
Experience the designing and developing a real operational microcontroller-based
sensor/controller /actuator systems, and Interface microcontrollers with the
physical world.

Will understand how real-world embedded devices integrate hardware and


software

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

DON BOSCO INSTITUTE OF TECHNOLOGY,


BANGALORE -74
DEPARTMENT OF ELECTRONICS AND COMMUNUICATION ENGINEERING
ACADEMIC YEAR (2013-2014)

Subject: Microcontroller Lab

Subject code: 10ESL47


Semester: 4TH

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.

1. ASSEMBLY LANGUAGE PROGRAMS-8051


2.

INTRODUCTION KEIL VISION 2


PROGRAM 1: BLOCK TRANSFER OF N

3. RBS

BYTES OF DATA

1
2-3

PROGRAM 2: EXCHANGE OF N BYTES


4. RBS

OF DATA

5. RBS

PROGRAM 3: 16 BIT ADDITION

4-6
7-9

6. SB

PROGRAM 4: 16 BIT SUBTRACTION

10-12

7. SB

PROGRAM 5: LARGEST NUMBER

13-14

8. SB

PROGRAM 6: SMALLEST NUMBER

15-16

9. AVR

PROGRAM 7: ASCENDING ORDER

17-19

10. AVR

PROGRAM 8: DESCENDING ORDER

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

PROGRAM 14:ASCII TO DECIMAL


CONVERSION
PROGRAM 15 LOGICAL BYTE

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

PROGRAM 17 LOGICAL BIT OPERATION

44-45

20. SR2

PROGRAM 18 16 BIT MULTIPLICATION

46-49

21. SVKR

PROGRAM 19- SQUARE OFA 16BIT NUMBER

50-53

22. SVKR

PROGRAM 20 CUBE OF A 8 BIT NUMBER

54-56

23. SVKR

PROGRAM 21- HEXADECIMAL UP COUNTER

57-58

PROGRAM 22 HEXADECIMAL DOWN

59-60

24. TKH

COUNTER
25. TKH

PROGRAM 22 BCD UP COUNTER

61-62

26. TKH

PROGRAM 24 BCD DOWN COUNTER

63-65

PROGRAM 25 TO GENERATE DELAY USING


27. SPG

TIMERS

66-68

PROGRAM 26 TO TRANSMIT A STRING


28. SPG

SERIALLY

69-70

SPG8051 INTERFACING PROGRAMS


PROGRAM 27- TO GENERATE POSITIVE
29. RBS

RAMP SIGNAL BY USING DAC


PROGRAM 28- TO GENERATE NEGATIVE

30. SB

RAMP SIGNAL BY USING DAC

71-72

73-74

PROGRAM 29 -TO GENERATE A


31. AVR

TRIANGULAR WAVE USING DAC

PROGRAM 30 TO GENERATE SINE WAVE


32. SRK

BY USING DAC
PROGRAM 31- TO GENERATE A SQUARE

33. SR

WAVE BY USING DAC


PROGRAM 32 - STEPPER MOTOR

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

PROGRAM 35 TEMPERATURE SENSOR

90-91

38. NK

PROGRAM 36 - ELEVATOR INTERFACE

92-94

PROGRAM 37 LCD DISPLAY


39. NK

INTERFACE

95-97

MSP 430 PROGRAMS


40.RBS

MSP 430 SOFTWARE FLOW

98-101

41.SB

PROGRAM 38 ADDITION OF TWO 16


BIT NUMBERS
PROGRAM 39 SUBTRACTION OF TWO

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

PROGRAM 44 BLOCK MOVEMENT

111-112

48. SPG

PROGRAM 45 EXCHANGE OF DATA

113-114

49. SR2

PROGRAM 46 8 BIT MULTIPLICATION

115-116

50. SRK

PROGRAM 47 SQUARE OF A NUMBER

117-118

PROGRAM 48 CUBE OF A NUMBER

119-120

51. SR

PROGRAM 49 BCD TO ASCII


52. TKH

CONVERSION
PROGRAM 50 ASCII TO DECIMAL

53. SPG

CONNVERSION

121-122

123-124

Das könnte Ihnen auch gefallen