3C.Embedded Systems-1
3C.Embedded Systems-1
COURSE TOPICS:
Unit
Unit Name Hours
No
2 8051 Architecture 09
Total 52
5. Write programs on Counter and Timer of 8051, programs for serial communication
and interrupts of 8051.
6. Design simple circuits for interfacing various peripherals with 8051.
Questio Questions
ns to be to be set
5 10
Max. set for for
Mar Mar Marks
Mar (5marks (10marks)
Un R/U/ Ho ks ks Weighta
Unit Name ks )
it A ur Qns. Qns. ge
per PART - PART - B
(%)
Unit A
Part Part R U A R U A
A B
Introducti
on to 8051
1 R/U 6 15 1 1 1 0 0 1 0 10
Microcontro
ller
8051
2 R/U 9 25 1 2 1 0 0 2 0 17
Architecture
8051
3 Instruction R/U 9 25 2 1.5 1 1 0.5 1 0 17
Set
8051
Assembly
4 and C A 7 20 1 1.5 0 0 1 0 1.5 14
Programmin
g
8051
Timers,
Serial port
5 and U/A 11 30 2 2 0 1 1 0 1 1 21
Interrupt
Programmin
g
8051
Interfacing R/U/
6 10 30 2 2 1 1 1 1 21
and A
Peripherals
9 10
TOTAL 52 145 9 10 (45 (100
Marks) Marks)
Programme Outcomes
Course
1 2 3 4 5 6 7 8 9 10
EMBEDDED
1 3 3 3 3 0 3 3 3 3
SYSTEMS
Unit –II
Registers, On chip 8051 chip ROM memory address range, 8051 data type and directives,
register banks, On-chip ROM memory and RAM Memory organization, stack and stack
pointer, SFR registers, I/O ports structure and operation bit address. Registers - A, B, SP,
DPTR, PC and SFRs. General Format and functions of each bit of PSW SFRs, machine
cycle, Time delay calculations.
Unit –III
8051 Instruction Set (9 Hrs)
Arithmetic instructions, Addressing modes ,Data transfer instructions, Logical and compare
instructions, Jump and Loop, Rotate and swap instructions, Branch instructions, Bit
manipulation instructions, Stack and Subroutine instructions.
Unit –IV
8051Assembly and C Programming (7 Hrs)
Programs on Loop and Jump instructions, call instructions, arithmetic and logic
instructions, Compare instruction, Rotate and Swap instructions, BCD and ASCII
conversion vice-versa programs, Bit manipulation programs.
8051 programming using C – Advantage of using C. Data types. Simple programs based on
arithmetic, logical, branching, bit manipulation, rotate and swap instructions.
Unit –V
8051 Timers, Serial port and Interrupt Programming (11 Hrs)
Timers of 8051 and their associated Registers, General format and function of each bit of
TMOD, TCON, Modes of operation of timers, programs on timers and counters in
assembly language.
Basics of serial communication, SBUF SFR, pin description of 9 pin RS232 connector, Pin
description of Max233, 8051 connection to RS232 using Max233, Baud rate and its
calculation, General format and function of each bit of SCON,PCON SFR’s, Programs on
serial communication in assembly language.
Interrupts versus polling, Interrupt service routine (ISR) Interrupts with vector table,
General format and function of each bit of IE,IP SFR, Programs on interrupts in assembly
language.
Interfacing an LCD and LED to 8051, 8051 interfacing with Hex keyboard, ADC, DAC
and sensor interfacing, Interfacing DC motor, Stepper motor, Relay, Opto isolator and
RTC.(Only circuit diagrams and explanation)
Text Book:
1.Muhammad Ali Mazidi,Janice GillispieMazidi and Rolin D McKinlay “ THE 8051
MICROCONTROLLER AND EMBEDDED SYSTEMS Using Assembly
and C”.Pearson Second edition.
Reference Books:
1. The 8051 Microcontrollers-II edition-Kenneth j Ayala. Perram Publications.
2. Embedded system Design-Frank Vahid /Tony Givargis WSE. Wiley
Publications.
3. 8051 Microcontroller-Hardware,Software and applications-V
Udayashankara/M S mallikarjunaswamy-Tata McGraw Hill
4. Programming and Customizing the 8051 Microcontroller-MykePredko-Tata
McGraw Hill
5. Intel 8 bit Embedded controller Handbook-Intel
6. Programming Embedded systems in C and C++ - Michael Barr –O’Reilly
7. 8051 Microcontroller – Uma S.Rao
e-Resources:
1)YouTube videos on interfacing various peripherals and devices
2)www.microdigital.com
Course
To Max Evidence
What Frequency Outcom
Whom Marks Collected
es
Three IA tests
for Theory:
CIE (Average Blue
I A Tests 20 1 to 6
(Conti marks of Three Books
nuous Tests to be
Student computed).
Interna
s
l Student Report of
Dire Evalua 05 1 to 6
ct Student Activity 3 pages
tion) Activity
Asse
ssme TOTAL 25
nt
SEE
(Semes
Answer
ter Stud End Of the
End Exam 100 Scripts at 1 to 6
End ents Course
BTE
Exami
nation)
Note: I.A. test shall be conducted for 20 marks. Average marks of three tests shall be
rounded off to the next higher digit.
9 Hours
Unit II 8051 Architecture
Explain A, B, SP, DPTR, 01 Hour
7.
22 01 Hour
Rotate and swap instructions – RR, RL, RRC, RLC, SWAP
23 01 Hour
Jump – LJMP,SJMP, Bit manipulation instructions
24 Stack and Subroutine instructions – PUSH, POP, LCALL,
01 Hour
ACALL, RET
07 Hour
UNIT IV 8051Assembly and C Programming
25 01 Hour
Programs on Loop and Jump instructions, call instructions
26 Programs on Arithmetic instructions Unsigned Addition, 01 Hour
Subtraction, Multiplication, Division
27
Signed number arithmetic and arithmetic operations 01 Hour
35 01 Hour
Basics of serial communication, SBUF SFR
36 Pin description of 9 pin RS232 connector, Pin description of
01 Hour
Max233, 8051 connection to RS232 using Max233
45 01 Hour
8051 interfacing to the keyboard with explanation
46 ADC interfacing to 8051 and explain 01 Hour
1. Draw an Elevator interface circuit with 8051 with assemble language/ C program and
execute on 8051 kit
2. Draw an LCD interface circuit with 8051 with assemble language/ C program and
execute on 8051 kit
3. Draw an LED interface circuit with 8051 with assemble language/ C program and
execute on 8051 kit
4. Draw an Hexkey board interface circuit with 8051 with assemble language/ C program
and execute on 8051 kit
5. Draw an ADC interface circuit with 8051 with assemble language/ C program and
execute on 8051 kit
6. Draw an DAC interface circuit with 8051 with assemble language/ C program and
execute on 8051 kit
7. Draw an DC MOTOR interface circuit with 8051 with assemble language/ C program
and execute on 8051 kit
8. Draw an STEPPER MOTOR interface circuit with 8051 with assemble language/ C
program and execute on 8051 kit
9. Draw and SENSOR interface circuit with 8051 with assemble language/ C program
and execute on 8051 kit
10. Draw an OPTO ISOLATOR interface circuit with 8051 with assemble language/ C
program and execute on 8051 kit
11. Draw an RTC interface circuit with 8051 with assemble language/ C program and
execute on 8051 kit
12. Draw an RELAY interface circuit with 8051 with assemble language/ C program and
execute on 8051 kit
CO5-Write programs using Counter and Timer of 8051, programs for serial
communication and interrupts of 8051.
CO6- Design simple circuits for interfacing various peripherals with 8051.
Unit 6 - 8051 Interfacing and Peripherals
120) Draw the ADC0804in free running mode and explain the function of each pin
121) Explain the stepper motor with the diagrams of rotor alignment and stator winding
configuration
122) Draw the pin diagram of DS12887 RTC and explain briefly the function of each pin.
123) Sketch the diagram of LCD interface to 8051
124) Draw the 8051 connection to ADC0804 with self clock
125) Draw the matrix key board connection to 8051
126) Draw the diagram to interface LM35 temperature sensor to the 8051
127) Draw the diagram to interface stepper motor to the 8051
VI Semester Examination
Diploma in Electrical and Electronics Engg.
Time: 3 Hours
Max Marks: 100
Note: i) Answer any SIX questions from PART - A. Each question caries 5 marks.
ii) Answer any SEVEN Questions from PART - B. Each question caries 10 marks.
PART – A
1) List the features of 8051 microcontroller
2) Explain briefly stack and stack pointer.
3) List the addressing modes.
4) Explain RRC and RLC instructions with examples
5) Write a program to multiply 25 by 10 using repeated addition
6) Draw the general format and function of each bit of SCON SFR.
7) Draw the 8051 connection to ADC0804 with self clock
8) Draw the pin diagram of DS12887 RTC
9) List the steps to program timer in mode 1.
PART – B
10) (a) Describe the function of any 5 pins of 8051 (5M)
(b) Explain the structure and function of Port 0 . (5M)
11) (a) Draw and explain the internal RAM organisation. (10M)
12) (a) Draw the PSW SFR and explain the function of each bit. (7 M)
(b) Explain machine cycle for the 8051. (3 M)
13) (a) Explain indirect addressing mode with examples (4 M)
(b) Explain ADD and XRL instructions with examples (6 M)
15) (a) Write a program to add two 16 bit numbers FC45H and 02ECH (3 M)
(b) Write a 8051 C program to toggle all the bits of P0 and P2 continuously (7 M)
with 250ms delay. Use the inverting operator.
16) (a) Draw the IE SFR and explain the function of each bit (7 M)
(b) Explain SBUF register (3 M)
17) (a) Draw the ADC0804in free running mode and explain the function of each (10M)
pin
19) (a) Explain, with diagram the interface of stepper motor to the 8051 (5 M)
(b) Explain, with diagram the interface of LM35 temperature sensor to the (5M)
8051