31
Presented By :- Diwaker Pant ME (REGULAR- 2011) NITTTR CHD

Interfacing methods of microcontroller

Embed Size (px)

DESCRIPTION

Various methods of interfacing various devices with micro controller.

Citation preview

Page 1: Interfacing methods of microcontroller

Presented By :- Diwaker PantME (REGULAR- 2011)NITTTR CHD

Page 2: Interfacing methods of microcontroller

What is Interfacing.

Need of interfacing.

Micro-controller Interfacing – Basics.

Interfacing Methods.

Microcontroller Interfaces Examples.

April 13, 2023 Presented by :- Diwaker Pant 2

Page 3: Interfacing methods of microcontroller

Transfer of data between microcontrollers and peripherals (memory, I/O devices etc.) implemented using buses called interfacing.

Connecting the computation capabilities of a microcontroller to external signals or to external world.

Creating man-machine interaction.

April 13, 2023 Presented by :- Diwaker Pant 3

Page 4: Interfacing methods of microcontroller

The basic need is to have some input/output peripherals and man-machine interface.

Interactions with a computer or TV are possible using the mouse /keyboard/display screen.

The no. of real world devices and systems like mobile phone and washing m/c need the keypad and display to enable human-computer interactions.

April 13, 2023 Presented by :- Diwaker Pant 4

Page 5: Interfacing methods of microcontroller

April 13, 2023 Presented by :- Diwaker Pant 5

Page 6: Interfacing methods of microcontroller

Address bus for example (A15-A0).

Data bus for example (D7-D0).

Control lines : For example in 8051 microcontroller.

EA (External Access). ALE (Address Latch Enable). PSEN (Program Store Enable). RD, WR

April 13, 2023 Presented by :- Diwaker Pant 6

Page 7: Interfacing methods of microcontroller

Wires:◦ Unidirectional ◦ Bi-directional

Bus◦ Set of wires with a

single function. Address bus, Data bus

April 13, 2023 Presented by :- Diwaker Pant 7

Microcontroller

Memory(ROM)

Data Bus

AddressBus

Enable

RD/WR

Page 8: Interfacing methods of microcontroller

Connects bus to microcontroller or memory Often referred to as a pin

◦ Actual pins on periphery of IC package that plug into socket on printed-circuit board

◦ Today, metal “pads” connecting processors and memories within single IC

April 13, 2023 Presented by :- Diwaker Pant 8

Microcontroller(8051)

P0

P2

P1

P3

ALELATCHEnable

PSENROM

OE

Page 9: Interfacing methods of microcontroller

Micro-controllers are useful to the extent that they communicate with other devices, such as sensors , motors, switches, keypads , displays memory and even other micro-controllers.

To solve the complex problem of balancing circuit design criteria such as

• Features , Cost , Size , Weight• Power consumption , Reliability ,

Manufacturability

April 13, 2023 Presented by :- Diwaker Pant 9

Page 10: Interfacing methods of microcontroller

April 13, 2023 Presented by :- Diwaker Pant 10

Page 11: Interfacing methods of microcontroller

Advantages

April 13, 2023 Presented by :- Diwaker Pant 11

Disadvantages

Simplest interface.

Lowest-cost to implement.

High speed

Low programming overhead

Only on/off control/monitoring

Short distance, few feet maximum.

Single device control/monitoring

Page 12: Interfacing methods of microcontroller

Digital Input Digital output

Reading the status of buttons or switches

Keypad Interface

Sensor Interface

Relay control

LED Display

LCD

DAC

April 13, 2023 Presented by :- Diwaker Pant 12

Page 13: Interfacing methods of microcontroller

Advantages Disadvantages

Simple interface

High speed

Low programming overhead

Not all microcontrollers have analog I/O.

Complicates the circuit design when external ADC /DAC are needed.

Short distance, few feet maximum.April 13, 2023 Presented by :- Diwaker Pant 13

Page 14: Interfacing methods of microcontroller

April 13, 2023 Presented by :- Diwaker Pant 14

Page 15: Interfacing methods of microcontroller

April 13, 2023Presented by :- Diwaker Pant 15

Page 16: Interfacing methods of microcontroller

April 13, 2023 Presented by :- Diwaker Pant 16

Page 17: Interfacing methods of microcontroller

April 13, 2023Presented by :- Diwaker Pant 17

Page 18: Interfacing methods of microcontroller

April 13, 2023 Presented by :- Diwaker Pant 18

PIC I/O Port

Page 19: Interfacing methods of microcontroller

April 13, 2023Presented by :- Diwaker Pant 19

Pin No.

Function

Description

1 Vss Connected to Ground

2 Vcc +5v supply

3 VEE Contrast control Power supply

4 RS 0=Select Command Register1=Select Data Register

5 R/W 1=Read , 0=Write

6 EN Enable

7-14 DB0-DB7

8-bit data bus

Page 20: Interfacing methods of microcontroller

April 13, 2023 Presented by :- Diwaker Pant 20

PIC16F8XX

Page 21: Interfacing methods of microcontroller

April 13, 2023Presented by :- Diwaker Pant 21

Serial Bus system is divided in two categories.

1. I2C (Inter Integrated Circuit Bus).

2. SPI (Serial Peripheral Interface Bus).

I2C is 2 wire, one master multiple slaves system.

SPI is 4 wire , one master multiple slaves system.

Page 22: Interfacing methods of microcontroller

In this system two signal (wire) are there namely SDA= Serial Data wire. SCL= Serial Clock wire.

To start the communications, the bus master (typically a microcontroller) places the address of the device with which it intends to communicate (the slave) on the bus. All slave devices monitor the bus to determine if the master device is sending their address. Only the device with the correct address communicates with the master.

April 13, 2023Presented by :- Diwaker Pant 22

Page 23: Interfacing methods of microcontroller

April 13, 2023Presented by :- Diwaker Pant 23

PIC

SDASCL

Page 24: Interfacing methods of microcontroller

In this system 4 signal wires are used.

1.CS= Chip Select

2.DIN= Data In

3.DOUT= Data Out

4.CLK= Clock Signal

April 13, 2023Presented by :- Diwaker Pant 24

Page 25: Interfacing methods of microcontroller

SPI bus is a master/slave interface.

Whenever two devices communicate, one is referred to as the "master" and the other as the "slave" device.

The master drives the serial clock.

SPI is full duplex: Data is simultaneously transmitted and received.

April 13, 2023Presented by :- Diwaker Pant 25

Page 26: Interfacing methods of microcontroller

April 13, 2023Presented by :- Diwaker Pant 26

PIC-16F8XXMULTIMEDIA

CARDMMC

CS

DIN

CLK

DOUT

Page 27: Interfacing methods of microcontroller

April 13, 2023Presented by :- Diwaker Pant 27

Page 28: Interfacing methods of microcontroller

We can say that by the help of suitable interfacing methods we can create Man-Machine interaction.

Nowadays all automatic systems uses embedded system and by the help of interfacing we can enjoy the technology and can make the technology more user friendly.

April 13, 2023 Presented by :- Diwaker Pant 28

Page 29: Interfacing methods of microcontroller

Microcontrollers(Theory and applications)-Ajay V. Deshmukh( Page no.215- 232).

Microcontroller interfacing techniques by BiPOM Electronics, INC (www.bipom.com)

April 13, 2023Presented by :- Diwaker Pant

29

Page 30: Interfacing methods of microcontroller

? Query

April 13, 2023 Presented by :- Diwaker Pant 30

Page 31: Interfacing methods of microcontroller

April 13, 2023 Presented by :- Diwaker Pant 31