SlideShare a Scribd company logo
1 of 31
Presented By :-
Diwaker Pant
ME (REGULAR- 2011)
NITTTR CHD
   What is Interfacing.

   Need of interfacing.

   Micro-controller Interfacing – Basics.

   Interfacing Methods.

   Microcontroller Interfaces Examples.



October 9, 2012                  Presented by :- Diwaker Pant   2
      Transfer of data between microcontrollers and
           peripherals (memory, I/O devices etc.) implemented
           using buses called inte rfacing .

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

          Creating man-machine interaction.




October 9, 2012                        Presented by :- Diwaker Pant   3
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.



October 9, 2012                      Presented by :- Diwaker Pant   4
October 9, 2012   Presented by :- Diwaker Pant   5
     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

October 9, 2012                                   Presented by :- Diwaker Pant   6
   Wires:                                            RD/WR
        ◦ Unidirectional                          Data Bus
        ◦ Bi-directional

       Bus
                                Microcontroller                          Memory
        ◦ Set of wires with a                     Enable
                                                                         (ROM)
          single function.
           Address bus,
           Data bus
                                                  Address
                                                    Bus



October 9, 2012                                     Presented by :- Diwaker Pant   7
P0
                  P1
                                                                         LATCH
                                              ALE                        Enable
                       Microcontroller
                           (8051)
                                          PSEN                         OE

                  P3                                                       ROM
                                         P2



 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
October 9, 2012                                     Presented by :- Diwaker Pant   8
   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


October 9, 2012                    Presented by :- Diwaker Pant   9
October 9, 2012   Presented by :- Diwaker Pant   10
Advantages                     Disadvantages

Simplest interface.         Only              on/off
                             control/monitoring
Lowest-cost to implement.
                             Short distance, few feet
High speed                  maximum.
Low programming             Single            device
overhead                     control/monitoring

October 9, 2012                         Presented by :- Diwaker Pant   11
Digital Input                    Digital output

      Reading the status of      Relay control
       buttons or switches
                                  LED Display
      Keypad Interface
                                  LCD
      Sensor Interface           DAC


October 9, 2012                    Presented by :- Diwaker Pant   12
Advantages              Disadvantages

    Simple interface      Not all microcontrollers
                            have analog I/O.
    High speed
                           Complicates the circuit
                            design when external
    Low programming
                            ADC /DAC are needed.
     overhead
                           Short distance, few feet
                            maximum.

October 9, 2012                         Presented by :- Diwaker Pant   13
October 9, 2012   Presented by :- Diwaker Pant   14
Presented by :- Diwaker Pant   October 9, 2012   15
October 9, 2012   Presented by :- Diwaker Pant   16
Presented by :- Diwaker Pant   October 9, 2012   17
PIC   I/O
                        Port




October 9, 2012                Presented by :- Diwaker Pant   18
P No. F
 in    unction             Description
  1       Vss            Connected to Ground
  2       Vcc                +5v supply
  3      VEE      Contrast control Power supply
  4       RS      0=Select Command Register
                    1=Select Data Register
  5      R/W           1=Read , 0=Write
  6       EN                       Enable
 7-14   DB0-DB7           8-bit data bus

                        Presented by :- Diwaker Pant   October 9, 2012   19
PIC
                  16F8XX




October 9, 2012            Presented by :- Diwaker Pant   20
   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.


                                   Presented by :- Diwaker Pant   October 9, 2012   21
 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.

                                  Presented by :- Diwaker Pant   October 9, 2012   22
SDA
      SCL

PIC




            Presented by :- Diwaker Pant   October 9, 2012   23
 In this system 4 signal   wires are used.

1.CS= Chip Select

2.DIN= Data In

3.DOUT= Data Out

4.CLK= Clock Signal




                                  Presented by :- Diwaker Pant   October 9, 2012   24
   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.


                                 Presented by :- Diwaker Pant   October 9, 2012   25
CS


             DIN
                                     MULTIMEDIA
PIC-16F8XX                             CARD
             DOUT                       MMC


             CLK




                    Presented by :- Diwaker Pant   October 9, 2012   26
Presented by :- Diwaker Pant   October 9, 2012   27
   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.




October 9, 2012                    Presented by :- Diwaker Pant   28
   Microcontrollers(Theory and applications)-Ajay V.
         Deshmukh( Page no.215- 232).

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




                                      Presented by :- Diwaker Pant
October 9, 2012                                                      29
?
                  Query
October 9, 2012       Presented by :- Diwaker Pant   30
October 9, 2012   Presented by :- Diwaker Pant   31

More Related Content

What's hot (20)

Embedded System Presentation
Embedded System PresentationEmbedded System Presentation
Embedded System Presentation
 
Intel 8051 Programming in C
Intel 8051 Programming in CIntel 8051 Programming in C
Intel 8051 Programming in C
 
PIC 16F877A by PARTHIBAN. S.
PIC 16F877A   by PARTHIBAN. S.PIC 16F877A   by PARTHIBAN. S.
PIC 16F877A by PARTHIBAN. S.
 
Serial Communication
Serial CommunicationSerial Communication
Serial Communication
 
Interfacing methods of microcontroller
Interfacing methods of microcontrollerInterfacing methods of microcontroller
Interfacing methods of microcontroller
 
(D/A) and (A/D)conversion
(D/A) and (A/D)conversion(D/A) and (A/D)conversion
(D/A) and (A/D)conversion
 
Keypad Interfacing with 8051 Microcontroller
Keypad Interfacing with 8051 MicrocontrollerKeypad Interfacing with 8051 Microcontroller
Keypad Interfacing with 8051 Microcontroller
 
1. Introduction to Embedded Systems & IoT
1. Introduction to Embedded Systems & IoT1. Introduction to Embedded Systems & IoT
1. Introduction to Embedded Systems & IoT
 
Interfacing LCD with 8051 Microcontroller
Interfacing LCD with 8051 MicrocontrollerInterfacing LCD with 8051 Microcontroller
Interfacing LCD with 8051 Microcontroller
 
Serial Peripheral Interface(SPI)
Serial Peripheral Interface(SPI)Serial Peripheral Interface(SPI)
Serial Peripheral Interface(SPI)
 
ARM CORTEX M3 PPT
ARM CORTEX M3 PPTARM CORTEX M3 PPT
ARM CORTEX M3 PPT
 
Unit4.tms320c54x
Unit4.tms320c54xUnit4.tms320c54x
Unit4.tms320c54x
 
Classification of embedded systems
Classification of embedded systemsClassification of embedded systems
Classification of embedded systems
 
Arm instruction set
Arm instruction setArm instruction set
Arm instruction set
 
UART
UARTUART
UART
 
Introduction to stm32-part1
Introduction to stm32-part1Introduction to stm32-part1
Introduction to stm32-part1
 
PIC Microcontrollers
PIC MicrocontrollersPIC Microcontrollers
PIC Microcontrollers
 
LCD Interacing with 8051
LCD Interacing with 8051LCD Interacing with 8051
LCD Interacing with 8051
 
Introduction to Arduino Microcontroller
Introduction to Arduino MicrocontrollerIntroduction to Arduino Microcontroller
Introduction to Arduino Microcontroller
 
OMAP
OMAPOMAP
OMAP
 

Similar to Interfacing methods of microcontroller

Prototyping Embedded Devices_Internet of Things
Prototyping Embedded Devices_Internet of ThingsPrototyping Embedded Devices_Internet of Things
Prototyping Embedded Devices_Internet of Thingsalengadan
 
Decibel meter using IoT with notice board
Decibel meter using IoT with notice boardDecibel meter using IoT with notice board
Decibel meter using IoT with notice boardIRJET Journal
 
GESTURE-BASED SMART HAND GLOVES FOR DISABLED PERSONS
GESTURE-BASED SMART HAND GLOVES FOR DISABLED PERSONSGESTURE-BASED SMART HAND GLOVES FOR DISABLED PERSONS
GESTURE-BASED SMART HAND GLOVES FOR DISABLED PERSONSIRJET Journal
 
summer training report (2)
summer training report (2)summer training report (2)
summer training report (2)Kavya Gupta
 
Electronic code lock device
Electronic code lock deviceElectronic code lock device
Electronic code lock deviceAmitoj Kaur
 
Interfacing of a LED display with laptop using Arduino
Interfacing of a LED display with laptop using ArduinoInterfacing of a LED display with laptop using Arduino
Interfacing of a LED display with laptop using ArduinoDiksha Prakash
 
regmap: The power of subsystems and abstractions
regmap: The power of subsystems and abstractionsregmap: The power of subsystems and abstractions
regmap: The power of subsystems and abstractionsMark Brown
 
REAL-TIME LOCATION TRACKER FOR HEALTH PATIENT IN CRISIS
REAL-TIME LOCATION TRACKER FOR HEALTH PATIENT IN CRISISREAL-TIME LOCATION TRACKER FOR HEALTH PATIENT IN CRISIS
REAL-TIME LOCATION TRACKER FOR HEALTH PATIENT IN CRISISIRJET Journal
 
Wireless led notice board
Wireless led notice boardWireless led notice board
Wireless led notice boardRohith R
 
Micro Controller 8051 of Speedo Meter using KEIL Code
Micro Controller 8051 of Speedo Meter using KEIL CodeMicro Controller 8051 of Speedo Meter using KEIL Code
Micro Controller 8051 of Speedo Meter using KEIL CodeSunil Kumar R
 
Report on Embedded Based Home security system
Report on Embedded Based Home security systemReport on Embedded Based Home security system
Report on Embedded Based Home security systemNIT srinagar
 
Pc to pc optical fiber communication
Pc to pc optical fiber communicationPc to pc optical fiber communication
Pc to pc optical fiber communicationPadmakar Mangrule
 
microcontroller and embedded system
microcontroller and embedded systemmicrocontroller and embedded system
microcontroller and embedded systempradeep rana
 
Smart LED Notice Board
Smart LED Notice BoardSmart LED Notice Board
Smart LED Notice Boardswarnimmaurya
 
Embedded computer system
Embedded computer systemEmbedded computer system
Embedded computer systemGovind Kaintura
 

Similar to Interfacing methods of microcontroller (20)

Prototyping Embedded Devices_Internet of Things
Prototyping Embedded Devices_Internet of ThingsPrototyping Embedded Devices_Internet of Things
Prototyping Embedded Devices_Internet of Things
 
339_311 PPT
339_311 PPT339_311 PPT
339_311 PPT
 
Decibel meter using IoT with notice board
Decibel meter using IoT with notice boardDecibel meter using IoT with notice board
Decibel meter using IoT with notice board
 
Lcd tutorial
Lcd tutorialLcd tutorial
Lcd tutorial
 
GESTURE-BASED SMART HAND GLOVES FOR DISABLED PERSONS
GESTURE-BASED SMART HAND GLOVES FOR DISABLED PERSONSGESTURE-BASED SMART HAND GLOVES FOR DISABLED PERSONS
GESTURE-BASED SMART HAND GLOVES FOR DISABLED PERSONS
 
summer training report (2)
summer training report (2)summer training report (2)
summer training report (2)
 
Electronic code lock device
Electronic code lock deviceElectronic code lock device
Electronic code lock device
 
Interfacing of a LED display with laptop using Arduino
Interfacing of a LED display with laptop using ArduinoInterfacing of a LED display with laptop using Arduino
Interfacing of a LED display with laptop using Arduino
 
regmap: The power of subsystems and abstractions
regmap: The power of subsystems and abstractionsregmap: The power of subsystems and abstractions
regmap: The power of subsystems and abstractions
 
REAL-TIME LOCATION TRACKER FOR HEALTH PATIENT IN CRISIS
REAL-TIME LOCATION TRACKER FOR HEALTH PATIENT IN CRISISREAL-TIME LOCATION TRACKER FOR HEALTH PATIENT IN CRISIS
REAL-TIME LOCATION TRACKER FOR HEALTH PATIENT IN CRISIS
 
Wireless led notice board
Wireless led notice boardWireless led notice board
Wireless led notice board
 
Important
ImportantImportant
Important
 
Micro Controller 8051 of Speedo Meter using KEIL Code
Micro Controller 8051 of Speedo Meter using KEIL CodeMicro Controller 8051 of Speedo Meter using KEIL Code
Micro Controller 8051 of Speedo Meter using KEIL Code
 
Report on Embedded Based Home security system
Report on Embedded Based Home security systemReport on Embedded Based Home security system
Report on Embedded Based Home security system
 
Pc to pc optical fiber communication
Pc to pc optical fiber communicationPc to pc optical fiber communication
Pc to pc optical fiber communication
 
microcontroller and embedded system
microcontroller and embedded systemmicrocontroller and embedded system
microcontroller and embedded system
 
Smart LED Notice Board
Smart LED Notice BoardSmart LED Notice Board
Smart LED Notice Board
 
An hemmanur
An hemmanurAn hemmanur
An hemmanur
 
Wireless notice board using zigbee
Wireless notice board using zigbeeWireless notice board using zigbee
Wireless notice board using zigbee
 
Embedded computer system
Embedded computer systemEmbedded computer system
Embedded computer system
 

More from Diwaker Pant

satellite Communication
 satellite Communication satellite Communication
satellite CommunicationDiwaker Pant
 
Microprocessor Fundamentals
Microprocessor FundamentalsMicroprocessor Fundamentals
Microprocessor FundamentalsDiwaker Pant
 
Diversity Techniques in mobile communications
Diversity Techniques in mobile communicationsDiversity Techniques in mobile communications
Diversity Techniques in mobile communicationsDiwaker Pant
 
Pass Transistor Logic
Pass Transistor LogicPass Transistor Logic
Pass Transistor LogicDiwaker Pant
 
Frequency Domain Image Enhancement Techniques
Frequency Domain Image Enhancement TechniquesFrequency Domain Image Enhancement Techniques
Frequency Domain Image Enhancement TechniquesDiwaker Pant
 
Domain name system
Domain name systemDomain name system
Domain name systemDiwaker Pant
 
Bartlett's method pp ts
Bartlett's method pp tsBartlett's method pp ts
Bartlett's method pp tsDiwaker Pant
 
Drive circuitry for LEDs and LASER
Drive circuitry for LEDs and LASERDrive circuitry for LEDs and LASER
Drive circuitry for LEDs and LASERDiwaker Pant
 

More from Diwaker Pant (9)

satellite Communication
 satellite Communication satellite Communication
satellite Communication
 
Microprocessor Fundamentals
Microprocessor FundamentalsMicroprocessor Fundamentals
Microprocessor Fundamentals
 
Diversity Techniques in mobile communications
Diversity Techniques in mobile communicationsDiversity Techniques in mobile communications
Diversity Techniques in mobile communications
 
Pass Transistor Logic
Pass Transistor LogicPass Transistor Logic
Pass Transistor Logic
 
Frequency Domain Image Enhancement Techniques
Frequency Domain Image Enhancement TechniquesFrequency Domain Image Enhancement Techniques
Frequency Domain Image Enhancement Techniques
 
Domain name system
Domain name systemDomain name system
Domain name system
 
Electronic mail
Electronic mailElectronic mail
Electronic mail
 
Bartlett's method pp ts
Bartlett's method pp tsBartlett's method pp ts
Bartlett's method pp ts
 
Drive circuitry for LEDs and LASER
Drive circuitry for LEDs and LASERDrive circuitry for LEDs and LASER
Drive circuitry for LEDs and LASER
 

Interfacing methods of microcontroller

  • 1. Presented By :- Diwaker Pant ME (REGULAR- 2011) NITTTR CHD
  • 2. What is Interfacing.  Need of interfacing.  Micro-controller Interfacing – Basics.  Interfacing Methods.  Microcontroller Interfaces Examples. October 9, 2012 Presented by :- Diwaker Pant 2
  • 3. Transfer of data between microcontrollers and peripherals (memory, I/O devices etc.) implemented using buses called inte rfacing .  Connecting the computation capabilities of a microcontroller to external signals or to external world.  Creating man-machine interaction. October 9, 2012 Presented by :- Diwaker Pant 3
  • 4. 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. October 9, 2012 Presented by :- Diwaker Pant 4
  • 5. October 9, 2012 Presented by :- Diwaker Pant 5
  • 6. 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 October 9, 2012 Presented by :- Diwaker Pant 6
  • 7. Wires: RD/WR ◦ Unidirectional Data Bus ◦ Bi-directional  Bus Microcontroller Memory ◦ Set of wires with a Enable (ROM) single function.  Address bus,  Data bus Address Bus October 9, 2012 Presented by :- Diwaker Pant 7
  • 8. P0 P1 LATCH ALE Enable Microcontroller (8051) PSEN OE P3 ROM P2  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 October 9, 2012 Presented by :- Diwaker Pant 8
  • 9. 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 October 9, 2012 Presented by :- Diwaker Pant 9
  • 10. October 9, 2012 Presented by :- Diwaker Pant 10
  • 11. Advantages Disadvantages Simplest interface. Only on/off control/monitoring Lowest-cost to implement. Short distance, few feet High speed maximum. Low programming Single device overhead control/monitoring October 9, 2012 Presented by :- Diwaker Pant 11
  • 12. Digital Input Digital output  Reading the status of  Relay control buttons or switches  LED Display  Keypad Interface  LCD  Sensor Interface  DAC October 9, 2012 Presented by :- Diwaker Pant 12
  • 13. Advantages Disadvantages  Simple interface  Not all microcontrollers have analog I/O.  High speed  Complicates the circuit design when external  Low programming ADC /DAC are needed. overhead  Short distance, few feet maximum. October 9, 2012 Presented by :- Diwaker Pant 13
  • 14. October 9, 2012 Presented by :- Diwaker Pant 14
  • 15. Presented by :- Diwaker Pant October 9, 2012 15
  • 16. October 9, 2012 Presented by :- Diwaker Pant 16
  • 17. Presented by :- Diwaker Pant October 9, 2012 17
  • 18. PIC I/O Port October 9, 2012 Presented by :- Diwaker Pant 18
  • 19. P No. F in unction Description 1 Vss Connected to Ground 2 Vcc +5v supply 3 VEE Contrast control Power supply 4 RS 0=Select Command Register 1=Select Data Register 5 R/W 1=Read , 0=Write 6 EN Enable 7-14 DB0-DB7 8-bit data bus Presented by :- Diwaker Pant October 9, 2012 19
  • 20. PIC 16F8XX October 9, 2012 Presented by :- Diwaker Pant 20
  • 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. Presented by :- Diwaker Pant October 9, 2012 21
  • 22.  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. Presented by :- Diwaker Pant October 9, 2012 22
  • 23. SDA SCL PIC Presented by :- Diwaker Pant October 9, 2012 23
  • 24.  In this system 4 signal wires are used. 1.CS= Chip Select 2.DIN= Data In 3.DOUT= Data Out 4.CLK= Clock Signal Presented by :- Diwaker Pant October 9, 2012 24
  • 25. 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. Presented by :- Diwaker Pant October 9, 2012 25
  • 26. CS DIN MULTIMEDIA PIC-16F8XX CARD DOUT MMC CLK Presented by :- Diwaker Pant October 9, 2012 26
  • 27. Presented by :- Diwaker Pant October 9, 2012 27
  • 28. 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. October 9, 2012 Presented by :- Diwaker Pant 28
  • 29. Microcontrollers(Theory and applications)-Ajay V. Deshmukh( Page no.215- 232).  Microcontroller interfacing techniques by BiPOM Electronics, INC (www.bipom.com) Presented by :- Diwaker Pant October 9, 2012 29
  • 30. ? Query October 9, 2012 Presented by :- Diwaker Pant 30
  • 31. October 9, 2012 Presented by :- Diwaker Pant 31