Download - Design and Interface Examples Using 8051
![Page 1: Design and Interface Examples Using 8051](https://reader033.vdocuments.site/reader033/viewer/2022051413/5524f334550346126f8b4604/html5/thumbnails/1.jpg)
Design and interface examples using 8051
PRESENTED BY:
JAWAD RASOOL (2K6-EE-08)BILAL MEHBOOB (2K6-EE-43) NAUMAN ASGHAR (2K6-EE-44)ADIL SALMAN (2K6-EE-54)
![Page 2: Design and Interface Examples Using 8051](https://reader033.vdocuments.site/reader033/viewer/2022051413/5524f334550346126f8b4604/html5/thumbnails/2.jpg)
TOPICS BEING PRESENTED
• This chapter includes following interfaces techniques
» Keypad interface» 7-segmaent interface» LCD interface» Loudspeaker interface» RS 232 Serial interface» Parallel interface» Analog I/O interface» Interface to sensors» Interface to relays» Interface to stepper motor
![Page 3: Design and Interface Examples Using 8051](https://reader033.vdocuments.site/reader033/viewer/2022051413/5524f334550346126f8b4604/html5/thumbnails/3.jpg)
ADIL SALMAN (2K6-EE-254)
TOPICS BEING PRESENTED
KEY PAD INTERFACELCD INTERFACE
RELAY INTERFACE
![Page 4: Design and Interface Examples Using 8051](https://reader033.vdocuments.site/reader033/viewer/2022051413/5524f334550346126f8b4604/html5/thumbnails/4.jpg)
KEYPAD INTERFACE• Key pad is an essential part of control system which is used to send
numeric or alphabetical information to the system.• E.g. : The values send to a counter or timer can be set by using keypad. It is usually used in calculators.
![Page 5: Design and Interface Examples Using 8051](https://reader033.vdocuments.site/reader033/viewer/2022051413/5524f334550346126f8b4604/html5/thumbnails/5.jpg)
MATRIX KEYPAD STRUCTURE
• A key pad is basically an even matrix connected to two ports of microcontroller.
• Suppose if we want to make a 16 buttons keypad then we will use a 4*4 matrix.
![Page 6: Design and Interface Examples Using 8051](https://reader033.vdocuments.site/reader033/viewer/2022051413/5524f334550346126f8b4604/html5/thumbnails/6.jpg)
MATRIX TYPE KEYPAD
![Page 7: Design and Interface Examples Using 8051](https://reader033.vdocuments.site/reader033/viewer/2022051413/5524f334550346126f8b4604/html5/thumbnails/7.jpg)
INTERFACE WITH MICROCONTROLLER
![Page 8: Design and Interface Examples Using 8051](https://reader033.vdocuments.site/reader033/viewer/2022051413/5524f334550346126f8b4604/html5/thumbnails/8.jpg)
PROGRAM PROCEDURE
![Page 9: Design and Interface Examples Using 8051](https://reader033.vdocuments.site/reader033/viewer/2022051413/5524f334550346126f8b4604/html5/thumbnails/9.jpg)
LCD INTERFACE
• LCD (Liquid Crystal Display) is a powerful tool to display graphs , characters & numeric values etc….
• There are no's of types of types depending upon the number of characters in rows & columns.(E.g: 20*2 or 40*2 etc….)
![Page 10: Design and Interface Examples Using 8051](https://reader033.vdocuments.site/reader033/viewer/2022051413/5524f334550346126f8b4604/html5/thumbnails/10.jpg)
PIN CONFIGURATION OF LCD
1.Vss - Gnd 2.Vcc - +5V 3.Vee - Contrast control 4. RS - Register select [ Command / Data ] 5. RW - Read / Write 6. EN - Enable pulse. 7. D0 - Data bus LSB 8. D1 ........ ........ 14. D7 - Data bus MSB.
![Page 11: Design and Interface Examples Using 8051](https://reader033.vdocuments.site/reader033/viewer/2022051413/5524f334550346126f8b4604/html5/thumbnails/11.jpg)
INTERFACING OF LCD WITH 8051
![Page 12: Design and Interface Examples Using 8051](https://reader033.vdocuments.site/reader033/viewer/2022051413/5524f334550346126f8b4604/html5/thumbnails/12.jpg)
RELAY INTERFACE
• Relays are used where it is necessary to control a circuit by a low-power signal or where several circuits must be controlled by one signal.
![Page 13: Design and Interface Examples Using 8051](https://reader033.vdocuments.site/reader033/viewer/2022051413/5524f334550346126f8b4604/html5/thumbnails/13.jpg)
TYPES OF RELAY• Solid state
• Latching
• Contactor
• Reed • Overload Protection
![Page 14: Design and Interface Examples Using 8051](https://reader033.vdocuments.site/reader033/viewer/2022051413/5524f334550346126f8b4604/html5/thumbnails/14.jpg)
RELAY STRUCTURE
![Page 15: Design and Interface Examples Using 8051](https://reader033.vdocuments.site/reader033/viewer/2022051413/5524f334550346126f8b4604/html5/thumbnails/15.jpg)
RELAY INTERFACE WITH MICROCONTROLLER
![Page 16: Design and Interface Examples Using 8051](https://reader033.vdocuments.site/reader033/viewer/2022051413/5524f334550346126f8b4604/html5/thumbnails/16.jpg)
BILAL MEHBOOB (2K6-EE-243)
TOPIC BEING PRESENTED
INTERFACE WITH LOUD SPEAKER
![Page 17: Design and Interface Examples Using 8051](https://reader033.vdocuments.site/reader033/viewer/2022051413/5524f334550346126f8b4604/html5/thumbnails/17.jpg)
LOUD SPEAKER
• A loudspeaker is an electro acoustic transducer that converts an electrical signal into sound. The speaker moves in accordance with the variations of an electrical signal and causes sound waves.
![Page 18: Design and Interface Examples Using 8051](https://reader033.vdocuments.site/reader033/viewer/2022051413/5524f334550346126f8b4604/html5/thumbnails/18.jpg)
STRUCTURE OF A LOUD SPEAKER
![Page 19: Design and Interface Examples Using 8051](https://reader033.vdocuments.site/reader033/viewer/2022051413/5524f334550346126f8b4604/html5/thumbnails/19.jpg)
TYPES OF LOUD SPEAKERS
• LOUD SPEAKER CAN BE DIVIDED IN TO NO’S OF TYPES DEPENDING ON FREQUENCY RANGES.
• Full-range drivers• Subwoofer• Woofer• Mid-range driver• Tweeter• Coaxial drivers
![Page 20: Design and Interface Examples Using 8051](https://reader033.vdocuments.site/reader033/viewer/2022051413/5524f334550346126f8b4604/html5/thumbnails/20.jpg)
INTERFACE OF LOUD SPEAKER WITH MICROCONTROLLER
![Page 21: Design and Interface Examples Using 8051](https://reader033.vdocuments.site/reader033/viewer/2022051413/5524f334550346126f8b4604/html5/thumbnails/21.jpg)
NAUMAN ASGHAR (2K6-EE-244)
TOPICS BEING PRESENTED
7-SEGMENT DISPLAY INTERFACEINTERFACE WITH SENSORS
RS-232 INTERFACE
![Page 22: Design and Interface Examples Using 8051](https://reader033.vdocuments.site/reader033/viewer/2022051413/5524f334550346126f8b4604/html5/thumbnails/22.jpg)
INTERFACE WITH 7-SEGMENT DISPLAY
• A seven-segment display is a form of electronic display device for displaying alphabetic & numeric characters.
• It is digital clocks , calculators ,Electronic meters….etc…..
![Page 23: Design and Interface Examples Using 8051](https://reader033.vdocuments.site/reader033/viewer/2022051413/5524f334550346126f8b4604/html5/thumbnails/23.jpg)
TYPES & PINS CONFIGURATION
• On the basis of biasing» Common Anode» Common Cathode
• On the basis of pins» Multiplexed» Non multiplexed
![Page 24: Design and Interface Examples Using 8051](https://reader033.vdocuments.site/reader033/viewer/2022051413/5524f334550346126f8b4604/html5/thumbnails/24.jpg)
INTERFACE WITH MICROCONTROLLER
![Page 25: Design and Interface Examples Using 8051](https://reader033.vdocuments.site/reader033/viewer/2022051413/5524f334550346126f8b4604/html5/thumbnails/25.jpg)
INTERFACE WITH SENSORS
• A sensor is a device that measures a physical quantity and converts it into a signal which can be read by an observer or by an instrument .
• Light, motion, temperature, magnetic fields, gravity, humidity, vibration…..etc..
![Page 26: Design and Interface Examples Using 8051](https://reader033.vdocuments.site/reader033/viewer/2022051413/5524f334550346126f8b4604/html5/thumbnails/26.jpg)
TYPES OF SENSOR
• Types of sensor can be divided according to physical quantities they can measure
» Motion sensor» Temperature sensor» Light sensor» Chemical sensor» Position sensor» Pressure sensor
![Page 27: Design and Interface Examples Using 8051](https://reader033.vdocuments.site/reader033/viewer/2022051413/5524f334550346126f8b4604/html5/thumbnails/27.jpg)
INTERFACE OF SENSOR WITH 8051
![Page 28: Design and Interface Examples Using 8051](https://reader033.vdocuments.site/reader033/viewer/2022051413/5524f334550346126f8b4604/html5/thumbnails/28.jpg)
INTERFACE WITH RS-232
• RS-232 (Recommended Standard 232) is a standard (protocol)for serial binary single-ended data and control signals.
• It is commonly used in computer serial ports.
![Page 29: Design and Interface Examples Using 8051](https://reader033.vdocuments.site/reader033/viewer/2022051413/5524f334550346126f8b4604/html5/thumbnails/29.jpg)
Types
• RS-232 Serial connectors types depend upon their pin configurations.
» DB-9 (9 PIN CONNECTOR)
» DB-25 (25-PIN CONNECTOR)
![Page 30: Design and Interface Examples Using 8051](https://reader033.vdocuments.site/reader033/viewer/2022051413/5524f334550346126f8b4604/html5/thumbnails/30.jpg)
PIN CONFIGURATIONS
![Page 31: Design and Interface Examples Using 8051](https://reader033.vdocuments.site/reader033/viewer/2022051413/5524f334550346126f8b4604/html5/thumbnails/31.jpg)
INTERFACE WITH RS-232
![Page 32: Design and Interface Examples Using 8051](https://reader033.vdocuments.site/reader033/viewer/2022051413/5524f334550346126f8b4604/html5/thumbnails/32.jpg)
JAWAD RASOOL (2K6-EE-208)
TOPICS BEING PRESENTED
INTERFACE TO STEPPER MOTORANALOG I/O INTERFACE
PARALLEL INTERFACE
![Page 33: Design and Interface Examples Using 8051](https://reader033.vdocuments.site/reader033/viewer/2022051413/5524f334550346126f8b4604/html5/thumbnails/33.jpg)
INTERFACE TO STEPPER MOTOR
• Stepper motor is used for controlled movement or rotation.
• It can rotate in clock/anti clock wise.
![Page 34: Design and Interface Examples Using 8051](https://reader033.vdocuments.site/reader033/viewer/2022051413/5524f334550346126f8b4604/html5/thumbnails/34.jpg)
TYPES OF STEPPER MOTOR
• There are two major types of stepper motor: 1.) Uni-Polar
2.) Bi-Polar
![Page 35: Design and Interface Examples Using 8051](https://reader033.vdocuments.site/reader033/viewer/2022051413/5524f334550346126f8b4604/html5/thumbnails/35.jpg)
PIN CONFIGURATION (UNI-POLAR)
• There are 6 pins in this stepper motor
» Two pins for forward movement
» Two pins for backward movement
» Two common pins (one for forward movement & second for backward movement)
![Page 36: Design and Interface Examples Using 8051](https://reader033.vdocuments.site/reader033/viewer/2022051413/5524f334550346126f8b4604/html5/thumbnails/36.jpg)
INTERFACE WITH MICROCONTROLLER
![Page 37: Design and Interface Examples Using 8051](https://reader033.vdocuments.site/reader033/viewer/2022051413/5524f334550346126f8b4604/html5/thumbnails/37.jpg)
INTERFACE WITH I/O,S
• Two types of I/O,S:» Analog» Digital
• 8051 doesn't support direct interface with analog i/p so, analog i/p must be converted into digital before being interfaced with 8051.
![Page 38: Design and Interface Examples Using 8051](https://reader033.vdocuments.site/reader033/viewer/2022051413/5524f334550346126f8b4604/html5/thumbnails/38.jpg)
CONT….
• Following are some ADC,S being used to interface analog i/p with controller
» ADC 0804» ADC 0832
![Page 39: Design and Interface Examples Using 8051](https://reader033.vdocuments.site/reader033/viewer/2022051413/5524f334550346126f8b4604/html5/thumbnails/39.jpg)
CONT…..
• 8051 only produce digital o/p so we can't use this o/p for analog devices.
• So its o/p must be converted into analog form before interfacing with any analog o/p device.
• Some commonly used DAC,S are :
» MC1408-L8» DAC 0808
![Page 40: Design and Interface Examples Using 8051](https://reader033.vdocuments.site/reader033/viewer/2022051413/5524f334550346126f8b4604/html5/thumbnails/40.jpg)
EXAMPLE OF ANALOG I/O,S
![Page 41: Design and Interface Examples Using 8051](https://reader033.vdocuments.site/reader033/viewer/2022051413/5524f334550346126f8b4604/html5/thumbnails/41.jpg)
PARALLEL INTERFACE
• It is also known as a printer port or Centronics port.
• It is of two types depending upon its pin configuration.
» DB-25» 36 PIN MICRO RIBBON CONNECTOR
![Page 42: Design and Interface Examples Using 8051](https://reader033.vdocuments.site/reader033/viewer/2022051413/5524f334550346126f8b4604/html5/thumbnails/42.jpg)
PIN CONFIGURATION OF DB-25
![Page 43: Design and Interface Examples Using 8051](https://reader033.vdocuments.site/reader033/viewer/2022051413/5524f334550346126f8b4604/html5/thumbnails/43.jpg)
INTERFACE WITH MICROCONTROLLER