Download - Design and Interface Examples Using 8051
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)
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
ADIL SALMAN (2K6-EE-254)
TOPICS BEING PRESENTED
KEY PAD INTERFACELCD INTERFACE
RELAY INTERFACE
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.
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.
MATRIX TYPE KEYPAD
INTERFACE WITH MICROCONTROLLER
PROGRAM PROCEDURE
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….)
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.
INTERFACING OF LCD WITH 8051
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.
TYPES OF RELAY• Solid state
• Latching
• Contactor
• Reed • Overload Protection
RELAY STRUCTURE
RELAY INTERFACE WITH MICROCONTROLLER
BILAL MEHBOOB (2K6-EE-243)
TOPIC BEING PRESENTED
INTERFACE WITH LOUD SPEAKER
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.
STRUCTURE OF A LOUD SPEAKER
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
INTERFACE OF LOUD SPEAKER WITH MICROCONTROLLER
NAUMAN ASGHAR (2K6-EE-244)
TOPICS BEING PRESENTED
7-SEGMENT DISPLAY INTERFACEINTERFACE WITH SENSORS
RS-232 INTERFACE
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…..
TYPES & PINS CONFIGURATION
• On the basis of biasing» Common Anode» Common Cathode
• On the basis of pins» Multiplexed» Non multiplexed
INTERFACE WITH MICROCONTROLLER
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..
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
INTERFACE OF SENSOR WITH 8051
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.
Types
• RS-232 Serial connectors types depend upon their pin configurations.
» DB-9 (9 PIN CONNECTOR)
» DB-25 (25-PIN CONNECTOR)
PIN CONFIGURATIONS
INTERFACE WITH RS-232
JAWAD RASOOL (2K6-EE-208)
TOPICS BEING PRESENTED
INTERFACE TO STEPPER MOTORANALOG I/O INTERFACE
PARALLEL INTERFACE
INTERFACE TO STEPPER MOTOR
• Stepper motor is used for controlled movement or rotation.
• It can rotate in clock/anti clock wise.
TYPES OF STEPPER MOTOR
• There are two major types of stepper motor: 1.) Uni-Polar
2.) Bi-Polar
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)
INTERFACE WITH MICROCONTROLLER
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.
CONT….
• Following are some ADC,S being used to interface analog i/p with controller
» ADC 0804» ADC 0832
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
EXAMPLE OF ANALOG I/O,S
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
PIN CONFIGURATION OF DB-25
INTERFACE WITH MICROCONTROLLER