You are on page 1of 3

MICROCONTROLLERS AND ITS INTERFACING

AIM:

On Successful Completion of this course, the students will be able

To understand the difference between Microprocessors & Microcontroller.

To understand 8051 Architecture

To understand Instruction sets of 8051

To understand Parallel Device and its interfacing to 8051

To understand many types of Device Interfacing.

UNIT – I 8051 ARCHITECTURE

Introduction to Microprocessors & Microcontroller – Comparison of Microprocessor &


Microcontroller –Z80 and 8051 – 8051 Architecture – Hardware – Chip Specifications – Block
Diagram – Programming model – Clock – Pin details – PC and DP – CPU Registers – Flags –
Internal Memory – Internal RAM – stack – Special Registers – Internal ROM – Input/output
ports : port 0 – port 1 – port2 – port3 – External memory – counters & timers – serial
input/output – Serial data interrupts – Data Transmission – Register – modes – Mode 0 – Mode
1 – Baud Rates – Multiprocessor mode.

UNIT – II 8051 INSTRUCTIONS SET

8051 instruction set – Moving data : introduction – Address modes – External data moves –
code memory data moves – push & pop – data exchanges – Logical operations: introduction –
Byte level logical operation – Bit level – Rotate and swap – arithmetic operations : Introduction
– Flags – Increment & decrement – Addition – subtraction – multiplication & division – Decimal
arithmetic – jump and call instructions : introduction – Range – short and long absolute range –
jumps – calls - stack – interrupts and returns – Detailed interrupts.

UNIT - III 8051 TIMERS & INTERRUPTS1

ON – Chip Timers: Modes of operation – mode 0 – mode 1 – mode 2- mode 3 –time delay
generation: mode 0 - mode 1 - mode 2 – mode 3 on chip serial port : Features mode 0 – mode 1
– mode 2 – mode 3 – Interrupts – Timer Flag – Serial port Interrupt – External Interrupts – Reset
– Interrupt control – Interrupt Priority – Interrupt Destinations.
UNIT – IV INTERFACING PARALLEL DEVICES

Interfacing peripheral Devices - 8255 PPI – hardware – programming 8255 – modes of


operation : mode 0 – mode 1 – mode 2 – 8253 PIT – hardware details – programming 8253 –
Interfacing 8253 with 8051 – Reading status – modes of operation: mode 0 – mode 1 – mode 2-
mode 3 – mode 4 & DS1287 Real time clock : features – Pin description –address map-
interrupts- control registers – 8279 programmable KBD/Display interface – features – modes of
operation – Input mode – scanned mode – output mode – pin layout – programming 8279 –
Interfacing 8279.

UNIT - V INTERFACING

External Memory Interfacing : need of External memory – Interfacing signals – Program


memory – Data memory – Security - Keyboards interfacing – Key types – Interfacing a Key –
Bouncing – Hardware and software type – Key matrix – Display Devices: LED Interfacing –
Seven-segment display – DAC/ADC Interfacing – DAC working – Sample & Hold – Interfacing
DAC and ADC- DC motor working – Direction control – H-bridge – Speed control by DAC or
PWM – Interfacing Stepper Motor : Stepper Motor working – Step angle control – Half step –
Using Transistors – Speed control – Interfacing Servomotor – working – Inside a servo –
Interfacing – Home position – Case study - Home projection system – Overall system – Software
modules – Hardware Realization.

Text Books :

1. The “8051 Microcontroller” by Ayala 3rd Edition


2. 8051 Microcontroller Internals, Instructions, Programming and Interfacing by Subrata
Ghoshal, Pearson press.
3. 8051 Microcontroller MCS51 family and its variants satish shah, Oxford.

Reference:

1. The 8051 Microcontroller and embedded systems using Assembly and C, by Mohammad
Ali Mazidi.
2. Microprocessors and controllers by N. Senthil Kumar.
Experiments: (Conduct any of 6 Experiments - out of first 12 Experiments)

1. Addition, Subtraction, Multiplication and Division.


2. Connect Two 8051 & for full – duplex Communications at 4800 baud rate.
3. Write a program to transmit ASCII ‘A’ continuously with 9600 based by polled
operation.
4. Interface 8253 to generate 1 MHZ square wave.
5. Measure the frequency of a square wave.
6. Measure the pulse width of a square wave.
7. Control 8 LED’s Intensity, used for House Lighting through 8051 port.
8. Interface a serial I2C based RTC.
9. Traffic Light Interface
10. Interface 8279 and display 1234 in the 7 segment display and read various keys
from the keyboard
11. Generate a PWM of approximately 3KHz using PCA.
12. Interface 8 bit DAC chip using 8255.

Designing Applications

13. Study of any one of IDE Keil /IAR/Green Hills and write program for speed control of
a DC motor through H bridge.
14. Stepper motor interfacing for Full & Half step Rotation.
15. Build a Home security system with 4 sensor and 2 alarms interfaced to 8051.

Reference Books for Experiments:

1. The “8051 Microcontroller” by Ayala 3rd Edition


2. 8051 Microcontroller MCS51 family and its variants satish shah, Oxford.
3. 8051 Microcontroller Internals, Instructions, Programming and Interfacing by Subrata
Ghoshal, Pearson press.
4. User guide of any one IDE Keil/ IAR/Green Hills.

You might also like