SlideShare a Scribd company logo
1 of 76
UNIT 3
PROGRAMMABLE PERIPERAL
INTERFACE
Content
• Introduction
• Architecture of 8255
• Keyboard interfacing
• LED display –interfacing
• ADC and DAC interface
• Temperature Control
• Stepper Motor Control
• Traffic Control interface
Introduction
• To communicate with the outside world,
microprocessor use peripherals (I/O devices)
• Input devices – Keyboards, A/D converters
etc.,
• Output devices – CRT, Printers, LEDs etc.,
• Peripherals are connected to the
microprocessors through electronic circuit
known as interfacing circuits.
Microprocessors unit with I/O devices
Input
devices
(keyboard)
Micro
processors
Output
devices
(LED)
Input
peripherals
Output
peripherals
• Each I/O device requires separate interfacing
circuit
• The circuit converts the data in input device in
to compitable format
• Output device converts o/p of microprocessor.
• Some of the interfacing devices are listed below:
– General purpose device
– Special purpose device
• Some of the general purpose interfacing devices
– I/O ports
– Programmable peripherals interface (PPI)
– D/A controllers
– Interrupt controller
• Some of the special purpose interfacing devices
– CRT controller
– Keyboard
– Display
– Floppy Disc controllers
Peripheral interfacing Chips are used
generation of I/O ports
• Programmable peripherals interface Intel 8255 (PPI)
• Programmable Interrupt controller (PIC) Intel 8259
• Programmable communication interface (PCI) Intel
8251
• Keyboard display Controller Intel 8279
• Programmable counter /Inverter timer Intel 8253
• A/D and D/A Converter Interfacing
Microprocessors unit with I/O devices
Example
Input
devices
(key
board)
PPI
8255
Micro
proce
ssors
8279
Display
Output
device
(LED)
Peripheral
Interface
Display
Interface
Address Space Partitioning
• The Microprocessors uses 16 bit wide address
bus for addressing memories and I/O devices.
• Using 16 bit wide address bus, it can access 216
= 64k bytes of memory and I/O devices
• Two schemes for the allocation of addresses to
memories and I/O devices
– Memory mapped I/O
– I/O mapped I/O
Memory mapped I/O
• It has only one address space
• Address space is defined as the set of all possible
addresses that a microprocessor can generate
• Some addresses assigned to memories and Some
addresses to I/O devices.
• Memory locations are assigned with addresses from
8000 to 80FF
• I/O devices are assigned with addresses from 8500
to 85FF
I/O mapped I/O scheme
• In this scheme, addresses assigned to
memories locations can also be assigned to
I/O devices
• Since the same address may be assigned to
memories locations or an I/O devices
• The microprocessor has a signal to distinguish
whether the address on the address bus is for
memories locations or an I/O devices
I/O mapped I/O scheme
• When signal is high, then address on the address bus is for an I/O
devices
• When signal is low, then address on the address bus is for
memory locations
• Two extra instruction IN and OUT are used to address I/O devices.
• The IN instruction is used to read the data of an input devices.
• The OUT instruction is used to send the data of an input devices.
• This scheme is suitable for a large system.
PROGRAMMABLE PERIPHERALS INTERFACE INTER 8255
(PPI) (16 mark)
• It is a multi port device.
• Ports can be programmed in variety ways
required by an operator.
• It is a general purpose programmable i/o devices
• It has 24 i/o pins 3*8 bit parallel ports.
• Port A, Port B, Port C,
• Port C can be groped in to two groups as 4 bits
FEATURES OF 8255
• 8255 is a widely used , programmable ,
parallel i/o devices
• It can easily transfer data under various
conditions
• Compatible with all micro processors
• Bit reset allows set reset of port C
• 8255 can operate 3 i/o modes
– Mode 0, Mode1 , mode 2
BLOCK DIAGRAM OF 8255
• It consists of Two 8 bit ports Port-a port – b, and
two 4 bit ports port C( upper and lower)
• GROUP-AAND GROUP –B CONTROLS:
– Group A control PC7-PC4
– Group B control PC3-PC0
• Port A 8 bit latched with three modes MODE
0,1,2
• Port B has 8 bit data input buffer mode 0,1
• Port C Port c 8 bit i/o buffer.
• DATA BUS BUFFER:
– Tri state bi directional buffer used to interface
internal bus data
– Read the data from the buffer/ write the data from
buffer
OPERATING MODE OF 8255
• Bit Set Reset (BSR) Mode
• I/O Mode
• BSR MODE:
– Reset the bits in port C
• I/O MODE :
– Mode 0- simple I/O ports
– Mode 1 – I/O ports with handshake
– Mode 2 – Bi directional I/O data transfer
BIT SET RESET (BSR) MODE
BSR control word format
I/O Mode
• Mode 0: Simple Input and Output
– Port A,B,C1 and C2 Each 8 bits
– Outputs are latched
– Ports do not have handshake
I/O Mode
• MODE 1: INPUT/ OUTPUT WITH
HANDSHAKE
– Input or output data transfer controlled by
handshaking signals
– Hand shaking speed and data transfer speeds are not
same
– Ports A and B are designed to operate port C
– Port a And Port B are programmed at mode 1
– PINS ARE
• PORT A - PC3, PC4, PC5 output port
• PORT C –PC6, PC7 i/p or o/p
• Port A in Mode 1- Port B is operated in MODE 0
I/O Mode
• D0-D7 data bus
– bi directional, tri state data bus line
– It is used to transfer data and control word from 8085
to 8255
• RD (Read)
– When this pin is low, the CPU can read data in the
port or status word through the data buffer
• WR (write)
– When this pin is low, the CPU can write data in the
port or in the control register through the data buffer
Mode2
• Mode 2 – Bi-directional I/O
• Port A can be programmed to operate as a
bidirectional operation.
• The mode 2 operation is only for port A
• When port A is programmed in Mode 2, the Port B
can be used in either Mode 1 or Mode 0.
• Mode 2 operation the port a is controlled by PC3 to
PC7 of port C.
PIN
DIAGRAM
OF 8255
• RESET:
– High input is used to reset 8255.
– Reset input is high control register is cleared
– Reset signal from 8085 is used to reset 8255
• A0 and A1
– Input signals with RD and WR status
• PA0-PA7 (port –a)
– 8 bit bi-directional I/O pins datas send data to output
device and receive data to input device
• PB0-PB7 (Port –B)
– I/O pins datas send data to output device and receive
data to input device
PROGRAMMING and
OPERATION of 8255
I) Programming in MODE 0
• A,B,C configured as input and output ports.
• D7 –set to 1
• D6,D5,D2- all set to 0 –MODE 0
• D4,D3,D1 and D0- determine weather the
corresponding ports are to configured as
input or output
A B GROUP A GROUP B
D4 D3 D1 D0 PORT A PORTC U PORT B PORT C L
0 0 0 0 OUT OUT OUT OUT
0 0 0 1 OUT OUT OUT IP
0 0 1 0 OUT OUT IP OUT
0 0 1 1 OUT OUT IP IP
0 1 0 0 OUT IP OUT OUT
0 1 0 1 OUT IP OUT IP
0 1 1 0 OUT IP IP OUT
0 1 1 1 OUT IP IP IP
1 0 0 0 IP OUT OUT OUT
1 0 0 1 IP OUT OUT IP
1 0 1 0 IP OUT IP OUT
1 0 1 1 IP OUT IP IP
1 1 0 0 IP IP OUT OUT
1 1 0 1 IP IP OUT IP
1 1 1 0 IP IP IP OUT
1 1 1 1 IP IP IP IP
• INPUT MODE
– After initializing the 8255 input mode 0
– CPU can read through initiate the read command (
example PENDRIVE)
– READ command activates RD signal
• OUTPUT MODE:
– After initializing the output mode 0
– CPU can write data in initiating command with
proper port address.
Programming in MODE 1
• IBF- input buffer full
• INTR- interrupt request
• INTE-interrupt enable
• OBF-output buffer full
• INTR-interrupt request
• INTE-interrupt enable
• OUTPUT BUFFER FULL
– Output signal goes low when microprocessor unit
writes data in the output latch 8255
– 8255 receives acknowledgement to that peripheral
• ACK (acknowledgement)
– Input peripheral has low output pheripheral devices
has receive data
• INTR AND INTE
– Interrupt request
– Interrupt enable
Programming in MODE 2
Bi-directional bus
• INPUT CONTROL SIGNAL:
– STB
• Low input signal enables PORT A
– IBF
• High input devices indicates loaded loaded on port a
– INTE2
• Interrupt enable with input buffer full.
• OUTPUT CONTROL SIGNAL:
– OBF
• Low output indicates cpu written data in port a
– ACK
• Low input signal enables output buffer of port A
Keyboard Interfacing & Interfacing
cable
• Keyboard consists of number of switches for
entering datas
• First of all location of key must be determined
• Now we consider four keys
•We can interface connecting with all the
inputs together for high signals
•For example 64 key required 8-bit ports
2 X 2 Key operation
Keyboard Microprocessor Interface software Flowchart
INTERFACING-keyboard
LED Operation
Microprocessor interface to LED
(Common anode)
Microprocessor interface to 7 segment LED
(Parallel)
Microprocessor interface to 7
segment LED (serial)
Serial interface of 7
segment LED to
Microprocessor
software flowchart
INTERFACE-LED display
ADC INTERFACE
BLOCK diagram of ADC 0808
PIN diagram of ADC 0808
DAC INTERFACE
Pin diagram of DAC
Pin diagram of DAC
INTERFACING diagram for DAC
TEMPERATURE CONTROL
• Temperature sensor –convert temp to
electrical signal by thermistor
• Transducer convert physical data into
electrical signal
• Physical data –temp, light, flow, speed etc…
• LM34 & LM35 –temperature sensor by
NATIONAL SEMICONDUCTOR CO-OPERATION
• LM34
• Output voltage is
linearly proportional to
Fahrenheit temp
• No external calibration
• 10mV for each degree
of Fahrenheit temp
• LM35
• Output voltage is
linearly proportional to
Celsius temp
• No external calibration
• 10mV for each degree
of Centigrate temp
STEPPER MOTOR CONTROL interface
• Digital motor used to translate electrical pulse
into mechanical movement
• Center tap winding connected to 12 V supply
• Motor can be excited by grounding four
terminals of the two windings
• ROTOR-Stepper motor has permanent magnet
rotor .It is also known as shaft
• STEP ANGLE-It is minimum degree of rotation
associated with a single step
Stepper Motor Interface
Excitation Table
Step X1 X2 X3 X4
1 0 1 0 1
2 1 0 0 1
3 1 0 1 0
4 0 1 1 0
1 0 1 0 1
Traffic Light Control System
• Allow traffic from W to E and E to W transition
for 20 seconds
• Give transition period of 5 seconds (yellow
bulbs ON)
• Allow traffic from N to s and S to n for 20
seconds
• Give transition period of 5 seconds (yellow
bulbs ON)
• Repeat the process
Traffic Light Control System
Interfacing diagram for Traffic Light
Control System
PPI-MECHATRONICS

More Related Content

What's hot

Industrial communication
Industrial communicationIndustrial communication
Industrial communicationMahmoud Hussein
 
Watch-dog Timer in LPC1768
Watch-dog Timer in LPC1768Watch-dog Timer in LPC1768
Watch-dog Timer in LPC1768Srishti Kakade
 
Chapter 16 timers and counters
Chapter 16 timers and countersChapter 16 timers and counters
Chapter 16 timers and countersforgotteniman
 
PLC Internal Relays
PLC Internal RelaysPLC Internal Relays
PLC Internal RelaysAmeen San
 
8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONS
8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONS8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONS
8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONSRamaPrabha24
 
UNIT III PROGRAMMABLE PERIPHERAL INTERFACE
UNIT III PROGRAMMABLE PERIPHERAL INTERFACE UNIT III PROGRAMMABLE PERIPHERAL INTERFACE
UNIT III PROGRAMMABLE PERIPHERAL INTERFACE ravis205084
 
Part 5 PLC inputs & outputs
Part 5 PLC inputs & outputsPart 5 PLC inputs & outputs
Part 5 PLC inputs & outputsKuldeepMakwana6
 
Interfacing of io device to 8085
Interfacing of io device to 8085Interfacing of io device to 8085
Interfacing of io device to 8085Nitin Ahire
 
microcontroller vs microprocessor
microcontroller vs microprocessormicrocontroller vs microprocessor
microcontroller vs microprocessorsobhadevi
 
Schematic and PCB Design Using Eagle
Schematic and PCB Design Using EagleSchematic and PCB Design Using Eagle
Schematic and PCB Design Using EagleMoe Moe Myint
 

What's hot (20)

Industrial communication
Industrial communicationIndustrial communication
Industrial communication
 
8255 ppi
8255 ppi8255 ppi
8255 ppi
 
Watch-dog Timer in LPC1768
Watch-dog Timer in LPC1768Watch-dog Timer in LPC1768
Watch-dog Timer in LPC1768
 
Chapter 16 timers and counters
Chapter 16 timers and countersChapter 16 timers and counters
Chapter 16 timers and counters
 
8051 block diagram
8051 block diagram8051 block diagram
8051 block diagram
 
PLC Internal Relays
PLC Internal RelaysPLC Internal Relays
PLC Internal Relays
 
8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONS
8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONS8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONS
8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONS
 
UNIT III PROGRAMMABLE PERIPHERAL INTERFACE
UNIT III PROGRAMMABLE PERIPHERAL INTERFACE UNIT III PROGRAMMABLE PERIPHERAL INTERFACE
UNIT III PROGRAMMABLE PERIPHERAL INTERFACE
 
PLC in Automation
PLC in AutomationPLC in Automation
PLC in Automation
 
8051 interfacing
8051 interfacing8051 interfacing
8051 interfacing
 
Dio
DioDio
Dio
 
Part 5 PLC inputs & outputs
Part 5 PLC inputs & outputsPart 5 PLC inputs & outputs
Part 5 PLC inputs & outputs
 
LCD Interacing with 8051
LCD Interacing with 8051LCD Interacing with 8051
LCD Interacing with 8051
 
Interfacing 8255
Interfacing 8255Interfacing 8255
Interfacing 8255
 
Interfacing of io device to 8085
Interfacing of io device to 8085Interfacing of io device to 8085
Interfacing of io device to 8085
 
Plc basics
Plc   basicsPlc   basics
Plc basics
 
plc-basics.pptx
plc-basics.pptxplc-basics.pptx
plc-basics.pptx
 
microcontroller vs microprocessor
microcontroller vs microprocessormicrocontroller vs microprocessor
microcontroller vs microprocessor
 
Schematic and PCB Design Using Eagle
Schematic and PCB Design Using EagleSchematic and PCB Design Using Eagle
Schematic and PCB Design Using Eagle
 
Adc and dac
Adc and dacAdc and dac
Adc and dac
 

Similar to PPI-MECHATRONICS

MECHATRONICS-Unit 3-PROGRAMMABLE PERIPERAL INTERFACE.ppt
MECHATRONICS-Unit 3-PROGRAMMABLE PERIPERAL INTERFACE.pptMECHATRONICS-Unit 3-PROGRAMMABLE PERIPERAL INTERFACE.ppt
MECHATRONICS-Unit 3-PROGRAMMABLE PERIPERAL INTERFACE.pptCHANDRA KUMAR S
 
PROGRAMMABLE PERIPHERAL INTERFCAE.ppt
PROGRAMMABLE PERIPHERAL INTERFCAE.pptPROGRAMMABLE PERIPHERAL INTERFCAE.ppt
PROGRAMMABLE PERIPHERAL INTERFCAE.pptkarthik R
 
20ME702– MECHATRONICS -UNIT-3.ppt
20ME702– MECHATRONICS -UNIT-3.ppt20ME702– MECHATRONICS -UNIT-3.ppt
20ME702– MECHATRONICS -UNIT-3.pptMohanumar S
 
Unit 3-PROGRAMMABLE PERIPHERAL INTERFACE-ME6702– MECHATRONICS
Unit 3-PROGRAMMABLE PERIPHERAL INTERFACE-ME6702– MECHATRONICS Unit 3-PROGRAMMABLE PERIPHERAL INTERFACE-ME6702– MECHATRONICS
Unit 3-PROGRAMMABLE PERIPHERAL INTERFACE-ME6702– MECHATRONICS Mohanumar S
 
UNIT- 3.pptx
UNIT- 3.pptxUNIT- 3.pptx
UNIT- 3.pptxBASKARS53
 
UNIT 3 Peripheral Interfacing.pptx
UNIT 3 Peripheral Interfacing.pptxUNIT 3 Peripheral Interfacing.pptx
UNIT 3 Peripheral Interfacing.pptxGowrishankar C
 
MicroProcessors and MicroControllersUnit3
MicroProcessors and MicroControllersUnit3MicroProcessors and MicroControllersUnit3
MicroProcessors and MicroControllersUnit3deepakdmaat
 
8255 ppi students material for ppi mpmc study
8255 ppi students material for ppi mpmc study8255 ppi students material for ppi mpmc study
8255 ppi students material for ppi mpmc studySirisha Vamsi
 
Mod-2 M&M.pptx
Mod-2 M&M.pptxMod-2 M&M.pptx
Mod-2 M&M.pptxTechCook1
 
8255-PPI MPMC text book for engineering.ppt
8255-PPI MPMC text book for engineering.ppt8255-PPI MPMC text book for engineering.ppt
8255-PPI MPMC text book for engineering.pptkhushiduppala
 
Microprocessor and Application (8085)
Microprocessor and Application (8085)Microprocessor and Application (8085)
Microprocessor and Application (8085)ufaq kk
 
Peripherals and interfacing
Peripherals  and interfacingPeripherals  and interfacing
Peripherals and interfacingRAMPRAKASHT1
 

Similar to PPI-MECHATRONICS (20)

MECHATRONICS-Unit 3-PROGRAMMABLE PERIPERAL INTERFACE.ppt
MECHATRONICS-Unit 3-PROGRAMMABLE PERIPERAL INTERFACE.pptMECHATRONICS-Unit 3-PROGRAMMABLE PERIPERAL INTERFACE.ppt
MECHATRONICS-Unit 3-PROGRAMMABLE PERIPERAL INTERFACE.ppt
 
PROGRAMMABLE PERIPHERAL INTERFCAE.ppt
PROGRAMMABLE PERIPHERAL INTERFCAE.pptPROGRAMMABLE PERIPHERAL INTERFCAE.ppt
PROGRAMMABLE PERIPHERAL INTERFCAE.ppt
 
20ME702– MECHATRONICS -UNIT-3.ppt
20ME702– MECHATRONICS -UNIT-3.ppt20ME702– MECHATRONICS -UNIT-3.ppt
20ME702– MECHATRONICS -UNIT-3.ppt
 
Unit 3-PROGRAMMABLE PERIPHERAL INTERFACE-ME6702– MECHATRONICS
Unit 3-PROGRAMMABLE PERIPHERAL INTERFACE-ME6702– MECHATRONICS Unit 3-PROGRAMMABLE PERIPHERAL INTERFACE-ME6702– MECHATRONICS
Unit 3-PROGRAMMABLE PERIPHERAL INTERFACE-ME6702– MECHATRONICS
 
UNIT- 3.pptx
UNIT- 3.pptxUNIT- 3.pptx
UNIT- 3.pptx
 
UNIT 3 Peripheral Interfacing.pptx
UNIT 3 Peripheral Interfacing.pptxUNIT 3 Peripheral Interfacing.pptx
UNIT 3 Peripheral Interfacing.pptx
 
MicroProcessors and MicroControllersUnit3
MicroProcessors and MicroControllersUnit3MicroProcessors and MicroControllersUnit3
MicroProcessors and MicroControllersUnit3
 
8255 ppi students material for ppi mpmc study
8255 ppi students material for ppi mpmc study8255 ppi students material for ppi mpmc study
8255 ppi students material for ppi mpmc study
 
8255.pdf
8255.pdf8255.pdf
8255.pdf
 
Programmable Peripheral Devices
Programmable Peripheral Devices Programmable Peripheral Devices
Programmable Peripheral Devices
 
8255 PPI
8255 PPI8255 PPI
8255 PPI
 
Mod-2 M&M.pptx
Mod-2 M&M.pptxMod-2 M&M.pptx
Mod-2 M&M.pptx
 
8255 PPI.pptx
8255 PPI.pptx8255 PPI.pptx
8255 PPI.pptx
 
8255-PPI MPMC text book for engineering.ppt
8255-PPI MPMC text book for engineering.ppt8255-PPI MPMC text book for engineering.ppt
8255-PPI MPMC text book for engineering.ppt
 
8255 & IO Interfacing.pdf
8255 & IO Interfacing.pdf8255 & IO Interfacing.pdf
8255 & IO Interfacing.pdf
 
Microprocessor and Application (8085)
Microprocessor and Application (8085)Microprocessor and Application (8085)
Microprocessor and Application (8085)
 
8255 Programmable parallel I/O
8255 Programmable parallel I/O 8255 Programmable parallel I/O
8255 Programmable parallel I/O
 
MPMC
MPMC MPMC
MPMC
 
7 8255
7 82557 8255
7 8255
 
Peripherals and interfacing
Peripherals  and interfacingPeripherals  and interfacing
Peripherals and interfacing
 

More from selvakumar948

FRICTION IN MACHINE ELEMENTS-SCREW AND NUT.pptx
FRICTION IN MACHINE ELEMENTS-SCREW AND NUT.pptxFRICTION IN MACHINE ELEMENTS-SCREW AND NUT.pptx
FRICTION IN MACHINE ELEMENTS-SCREW AND NUT.pptxselvakumar948
 
UNIT V clutches-TYPES OF CLUTCHES-..pptx
UNIT V clutches-TYPES OF CLUTCHES-..pptxUNIT V clutches-TYPES OF CLUTCHES-..pptx
UNIT V clutches-TYPES OF CLUTCHES-..pptxselvakumar948
 
GEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLE
GEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLEGEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLE
GEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLEselvakumar948
 
UNIT-4-KOM-GEARS-TYPES AND NOMENCLATURE.
UNIT-4-KOM-GEARS-TYPES AND NOMENCLATURE.UNIT-4-KOM-GEARS-TYPES AND NOMENCLATURE.
UNIT-4-KOM-GEARS-TYPES AND NOMENCLATURE.selvakumar948
 
KINEMATICS OF CAM LINKAGES-TYPES AND CONCEPTS
KINEMATICS OF CAM LINKAGES-TYPES AND CONCEPTSKINEMATICS OF CAM LINKAGES-TYPES AND CONCEPTS
KINEMATICS OF CAM LINKAGES-TYPES AND CONCEPTSselvakumar948
 
KINEMATIC VELOCITY OF SIMPLE MECHANISMS-FOUR BAR & SINGLE SLIDER
KINEMATIC VELOCITY OF SIMPLE MECHANISMS-FOUR BAR & SINGLE SLIDERKINEMATIC VELOCITY OF SIMPLE MECHANISMS-FOUR BAR & SINGLE SLIDER
KINEMATIC VELOCITY OF SIMPLE MECHANISMS-FOUR BAR & SINGLE SLIDERselvakumar948
 
KINEMATICS OF MACHINES-UNIT-I-BASIC CONCEPTS & INTRODUCTION
KINEMATICS OF MACHINES-UNIT-I-BASIC CONCEPTS & INTRODUCTIONKINEMATICS OF MACHINES-UNIT-I-BASIC CONCEPTS & INTRODUCTION
KINEMATICS OF MACHINES-UNIT-I-BASIC CONCEPTS & INTRODUCTIONselvakumar948
 
ETD-UNIT-I-BASIC CONCEPTS& FIRST LAW.pptx
ETD-UNIT-I-BASIC CONCEPTS& FIRST LAW.pptxETD-UNIT-I-BASIC CONCEPTS& FIRST LAW.pptx
ETD-UNIT-I-BASIC CONCEPTS& FIRST LAW.pptxselvakumar948
 
MICROPROCESSORS AND MICROCONTROLLERS
MICROPROCESSORS AND MICROCONTROLLERSMICROPROCESSORS AND MICROCONTROLLERS
MICROPROCESSORS AND MICROCONTROLLERSselvakumar948
 
MECHATRONICS-Introduction
MECHATRONICS-IntroductionMECHATRONICS-Introduction
MECHATRONICS-Introductionselvakumar948
 
Thermodynamics kinetics
Thermodynamics kineticsThermodynamics kinetics
Thermodynamics kineticsselvakumar948
 
Thermodynamics-HEAT ENGINES
Thermodynamics-HEAT ENGINESThermodynamics-HEAT ENGINES
Thermodynamics-HEAT ENGINESselvakumar948
 
LAWS OF THERMODYNAMICS
LAWS OF THERMODYNAMICSLAWS OF THERMODYNAMICS
LAWS OF THERMODYNAMICSselvakumar948
 

More from selvakumar948 (20)

FRICTION IN MACHINE ELEMENTS-SCREW AND NUT.pptx
FRICTION IN MACHINE ELEMENTS-SCREW AND NUT.pptxFRICTION IN MACHINE ELEMENTS-SCREW AND NUT.pptx
FRICTION IN MACHINE ELEMENTS-SCREW AND NUT.pptx
 
UNIT V clutches-TYPES OF CLUTCHES-..pptx
UNIT V clutches-TYPES OF CLUTCHES-..pptxUNIT V clutches-TYPES OF CLUTCHES-..pptx
UNIT V clutches-TYPES OF CLUTCHES-..pptx
 
GEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLE
GEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLEGEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLE
GEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLE
 
UNIT-4-KOM-GEARS-TYPES AND NOMENCLATURE.
UNIT-4-KOM-GEARS-TYPES AND NOMENCLATURE.UNIT-4-KOM-GEARS-TYPES AND NOMENCLATURE.
UNIT-4-KOM-GEARS-TYPES AND NOMENCLATURE.
 
KINEMATICS OF CAM LINKAGES-TYPES AND CONCEPTS
KINEMATICS OF CAM LINKAGES-TYPES AND CONCEPTSKINEMATICS OF CAM LINKAGES-TYPES AND CONCEPTS
KINEMATICS OF CAM LINKAGES-TYPES AND CONCEPTS
 
KINEMATIC VELOCITY OF SIMPLE MECHANISMS-FOUR BAR & SINGLE SLIDER
KINEMATIC VELOCITY OF SIMPLE MECHANISMS-FOUR BAR & SINGLE SLIDERKINEMATIC VELOCITY OF SIMPLE MECHANISMS-FOUR BAR & SINGLE SLIDER
KINEMATIC VELOCITY OF SIMPLE MECHANISMS-FOUR BAR & SINGLE SLIDER
 
KINEMATICS OF MACHINES-UNIT-I-BASIC CONCEPTS & INTRODUCTION
KINEMATICS OF MACHINES-UNIT-I-BASIC CONCEPTS & INTRODUCTIONKINEMATICS OF MACHINES-UNIT-I-BASIC CONCEPTS & INTRODUCTION
KINEMATICS OF MACHINES-UNIT-I-BASIC CONCEPTS & INTRODUCTION
 
ETD-UNIT-I-BASIC CONCEPTS& FIRST LAW.pptx
ETD-UNIT-I-BASIC CONCEPTS& FIRST LAW.pptxETD-UNIT-I-BASIC CONCEPTS& FIRST LAW.pptx
ETD-UNIT-I-BASIC CONCEPTS& FIRST LAW.pptx
 
MICROPROCESSORS AND MICROCONTROLLERS
MICROPROCESSORS AND MICROCONTROLLERSMICROPROCESSORS AND MICROCONTROLLERS
MICROPROCESSORS AND MICROCONTROLLERS
 
MECHATRONICS-Introduction
MECHATRONICS-IntroductionMECHATRONICS-Introduction
MECHATRONICS-Introduction
 
Assembly
Assembly Assembly
Assembly
 
Solid modeling
Solid modelingSolid modeling
Solid modeling
 
Solid model
Solid modelSolid model
Solid model
 
CSG
CSGCSG
CSG
 
coordinates system
coordinates systemcoordinates system
coordinates system
 
Thermodynamics kinetics
Thermodynamics kineticsThermodynamics kinetics
Thermodynamics kinetics
 
Thermodynamics-HEAT ENGINES
Thermodynamics-HEAT ENGINESThermodynamics-HEAT ENGINES
Thermodynamics-HEAT ENGINES
 
Thermodynamics
ThermodynamicsThermodynamics
Thermodynamics
 
Free convection
Free convectionFree convection
Free convection
 
LAWS OF THERMODYNAMICS
LAWS OF THERMODYNAMICSLAWS OF THERMODYNAMICS
LAWS OF THERMODYNAMICS
 

Recently uploaded

Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingrakeshbaidya232001
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSISrknatarajan
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxpranjaldaimarysona
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...roncy bisnoi
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Call Girls in Nagpur High Profile
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSSIVASHANKAR N
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)simmis5
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...ranjana rawat
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Dr.Costas Sachpazis
 

Recently uploaded (20)

Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptx
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 

PPI-MECHATRONICS

  • 2. Content • Introduction • Architecture of 8255 • Keyboard interfacing • LED display –interfacing • ADC and DAC interface • Temperature Control • Stepper Motor Control • Traffic Control interface
  • 3. Introduction • To communicate with the outside world, microprocessor use peripherals (I/O devices) • Input devices – Keyboards, A/D converters etc., • Output devices – CRT, Printers, LEDs etc., • Peripherals are connected to the microprocessors through electronic circuit known as interfacing circuits.
  • 4. Microprocessors unit with I/O devices Input devices (keyboard) Micro processors Output devices (LED) Input peripherals Output peripherals
  • 5. • Each I/O device requires separate interfacing circuit • The circuit converts the data in input device in to compitable format • Output device converts o/p of microprocessor. • Some of the interfacing devices are listed below: – General purpose device – Special purpose device
  • 6. • Some of the general purpose interfacing devices – I/O ports – Programmable peripherals interface (PPI) – D/A controllers – Interrupt controller • Some of the special purpose interfacing devices – CRT controller – Keyboard – Display – Floppy Disc controllers
  • 7. Peripheral interfacing Chips are used generation of I/O ports • Programmable peripherals interface Intel 8255 (PPI) • Programmable Interrupt controller (PIC) Intel 8259 • Programmable communication interface (PCI) Intel 8251 • Keyboard display Controller Intel 8279 • Programmable counter /Inverter timer Intel 8253 • A/D and D/A Converter Interfacing
  • 8. Microprocessors unit with I/O devices Example Input devices (key board) PPI 8255 Micro proce ssors 8279 Display Output device (LED) Peripheral Interface Display Interface
  • 9. Address Space Partitioning • The Microprocessors uses 16 bit wide address bus for addressing memories and I/O devices. • Using 16 bit wide address bus, it can access 216 = 64k bytes of memory and I/O devices • Two schemes for the allocation of addresses to memories and I/O devices – Memory mapped I/O – I/O mapped I/O
  • 10. Memory mapped I/O • It has only one address space • Address space is defined as the set of all possible addresses that a microprocessor can generate • Some addresses assigned to memories and Some addresses to I/O devices. • Memory locations are assigned with addresses from 8000 to 80FF • I/O devices are assigned with addresses from 8500 to 85FF
  • 11. I/O mapped I/O scheme • In this scheme, addresses assigned to memories locations can also be assigned to I/O devices • Since the same address may be assigned to memories locations or an I/O devices • The microprocessor has a signal to distinguish whether the address on the address bus is for memories locations or an I/O devices
  • 12. I/O mapped I/O scheme • When signal is high, then address on the address bus is for an I/O devices • When signal is low, then address on the address bus is for memory locations • Two extra instruction IN and OUT are used to address I/O devices. • The IN instruction is used to read the data of an input devices. • The OUT instruction is used to send the data of an input devices. • This scheme is suitable for a large system.
  • 13. PROGRAMMABLE PERIPHERALS INTERFACE INTER 8255 (PPI) (16 mark)
  • 14. • It is a multi port device. • Ports can be programmed in variety ways required by an operator. • It is a general purpose programmable i/o devices • It has 24 i/o pins 3*8 bit parallel ports. • Port A, Port B, Port C, • Port C can be groped in to two groups as 4 bits
  • 15. FEATURES OF 8255 • 8255 is a widely used , programmable , parallel i/o devices • It can easily transfer data under various conditions • Compatible with all micro processors • Bit reset allows set reset of port C • 8255 can operate 3 i/o modes – Mode 0, Mode1 , mode 2
  • 16. BLOCK DIAGRAM OF 8255 • It consists of Two 8 bit ports Port-a port – b, and two 4 bit ports port C( upper and lower) • GROUP-AAND GROUP –B CONTROLS: – Group A control PC7-PC4 – Group B control PC3-PC0
  • 17. • Port A 8 bit latched with three modes MODE 0,1,2 • Port B has 8 bit data input buffer mode 0,1 • Port C Port c 8 bit i/o buffer. • DATA BUS BUFFER: – Tri state bi directional buffer used to interface internal bus data – Read the data from the buffer/ write the data from buffer
  • 18. OPERATING MODE OF 8255 • Bit Set Reset (BSR) Mode • I/O Mode • BSR MODE: – Reset the bits in port C • I/O MODE : – Mode 0- simple I/O ports – Mode 1 – I/O ports with handshake – Mode 2 – Bi directional I/O data transfer
  • 19. BIT SET RESET (BSR) MODE BSR control word format
  • 20. I/O Mode • Mode 0: Simple Input and Output – Port A,B,C1 and C2 Each 8 bits – Outputs are latched – Ports do not have handshake
  • 21. I/O Mode • MODE 1: INPUT/ OUTPUT WITH HANDSHAKE – Input or output data transfer controlled by handshaking signals – Hand shaking speed and data transfer speeds are not same – Ports A and B are designed to operate port C – Port a And Port B are programmed at mode 1 – PINS ARE • PORT A - PC3, PC4, PC5 output port • PORT C –PC6, PC7 i/p or o/p • Port A in Mode 1- Port B is operated in MODE 0
  • 22. I/O Mode • D0-D7 data bus – bi directional, tri state data bus line – It is used to transfer data and control word from 8085 to 8255 • RD (Read) – When this pin is low, the CPU can read data in the port or status word through the data buffer • WR (write) – When this pin is low, the CPU can write data in the port or in the control register through the data buffer
  • 23. Mode2 • Mode 2 – Bi-directional I/O • Port A can be programmed to operate as a bidirectional operation. • The mode 2 operation is only for port A • When port A is programmed in Mode 2, the Port B can be used in either Mode 1 or Mode 0. • Mode 2 operation the port a is controlled by PC3 to PC7 of port C.
  • 24.
  • 26.
  • 27. • RESET: – High input is used to reset 8255. – Reset input is high control register is cleared – Reset signal from 8085 is used to reset 8255 • A0 and A1 – Input signals with RD and WR status • PA0-PA7 (port –a) – 8 bit bi-directional I/O pins datas send data to output device and receive data to input device • PB0-PB7 (Port –B) – I/O pins datas send data to output device and receive data to input device
  • 28. PROGRAMMING and OPERATION of 8255 I) Programming in MODE 0 • A,B,C configured as input and output ports. • D7 –set to 1 • D6,D5,D2- all set to 0 –MODE 0 • D4,D3,D1 and D0- determine weather the corresponding ports are to configured as input or output
  • 29. A B GROUP A GROUP B D4 D3 D1 D0 PORT A PORTC U PORT B PORT C L 0 0 0 0 OUT OUT OUT OUT 0 0 0 1 OUT OUT OUT IP 0 0 1 0 OUT OUT IP OUT 0 0 1 1 OUT OUT IP IP 0 1 0 0 OUT IP OUT OUT 0 1 0 1 OUT IP OUT IP 0 1 1 0 OUT IP IP OUT 0 1 1 1 OUT IP IP IP 1 0 0 0 IP OUT OUT OUT 1 0 0 1 IP OUT OUT IP 1 0 1 0 IP OUT IP OUT 1 0 1 1 IP OUT IP IP 1 1 0 0 IP IP OUT OUT 1 1 0 1 IP IP OUT IP 1 1 1 0 IP IP IP OUT 1 1 1 1 IP IP IP IP
  • 30. • INPUT MODE – After initializing the 8255 input mode 0 – CPU can read through initiate the read command ( example PENDRIVE) – READ command activates RD signal
  • 31. • OUTPUT MODE: – After initializing the output mode 0 – CPU can write data in initiating command with proper port address.
  • 33. • IBF- input buffer full • INTR- interrupt request • INTE-interrupt enable • OBF-output buffer full • INTR-interrupt request • INTE-interrupt enable
  • 34. • OUTPUT BUFFER FULL – Output signal goes low when microprocessor unit writes data in the output latch 8255 – 8255 receives acknowledgement to that peripheral • ACK (acknowledgement) – Input peripheral has low output pheripheral devices has receive data • INTR AND INTE – Interrupt request – Interrupt enable
  • 35.
  • 36. Programming in MODE 2 Bi-directional bus
  • 37.
  • 38.
  • 39. • INPUT CONTROL SIGNAL: – STB • Low input signal enables PORT A – IBF • High input devices indicates loaded loaded on port a – INTE2 • Interrupt enable with input buffer full. • OUTPUT CONTROL SIGNAL: – OBF • Low output indicates cpu written data in port a – ACK • Low input signal enables output buffer of port A
  • 40. Keyboard Interfacing & Interfacing cable
  • 41. • Keyboard consists of number of switches for entering datas • First of all location of key must be determined
  • 42. • Now we consider four keys •We can interface connecting with all the inputs together for high signals •For example 64 key required 8-bit ports
  • 43. 2 X 2 Key operation
  • 44. Keyboard Microprocessor Interface software Flowchart
  • 46.
  • 47.
  • 49.
  • 50. Microprocessor interface to LED (Common anode)
  • 51.
  • 52. Microprocessor interface to 7 segment LED (Parallel)
  • 53. Microprocessor interface to 7 segment LED (serial)
  • 54. Serial interface of 7 segment LED to Microprocessor software flowchart
  • 56.
  • 58. BLOCK diagram of ADC 0808
  • 59.
  • 60. PIN diagram of ADC 0808
  • 61.
  • 66. TEMPERATURE CONTROL • Temperature sensor –convert temp to electrical signal by thermistor • Transducer convert physical data into electrical signal • Physical data –temp, light, flow, speed etc… • LM34 & LM35 –temperature sensor by NATIONAL SEMICONDUCTOR CO-OPERATION
  • 67. • LM34 • Output voltage is linearly proportional to Fahrenheit temp • No external calibration • 10mV for each degree of Fahrenheit temp • LM35 • Output voltage is linearly proportional to Celsius temp • No external calibration • 10mV for each degree of Centigrate temp
  • 68.
  • 69. STEPPER MOTOR CONTROL interface • Digital motor used to translate electrical pulse into mechanical movement • Center tap winding connected to 12 V supply • Motor can be excited by grounding four terminals of the two windings • ROTOR-Stepper motor has permanent magnet rotor .It is also known as shaft • STEP ANGLE-It is minimum degree of rotation associated with a single step
  • 70.
  • 72. Excitation Table Step X1 X2 X3 X4 1 0 1 0 1 2 1 0 0 1 3 1 0 1 0 4 0 1 1 0 1 0 1 0 1
  • 73. Traffic Light Control System • Allow traffic from W to E and E to W transition for 20 seconds • Give transition period of 5 seconds (yellow bulbs ON) • Allow traffic from N to s and S to n for 20 seconds • Give transition period of 5 seconds (yellow bulbs ON) • Repeat the process
  • 75. Interfacing diagram for Traffic Light Control System