SlideShare a Scribd company logo
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
• Some of the general purpose interfacing devices
– I/O ports
– Programmable peripherals interface (PPI)
– DMA controllers(Direct memory access)
– Interrupt controller
• Some of the special purpose interfacing devices
– CRT controller
– Keyboard
– Display
– Floppy Disc controllers
Some peripheral interfacing chips of
8085 and 8086 microprocessors.
• Programmable peripherals interface Inter 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
Input
devices
(key
board)
PPI
8255
Micro
proce
ssors
8279
Display
Output
device
(LED)
Peripheral
Interface
Display
Interface
Address Space Partitioning
• 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 84FF
• It is suitable for small system.
I/O mapped I/O scheme
• In this scheme, addresses assigned to
memories locations can also be assigned to
I/O devices
• When the signal is high, then address on the
address bus is for an I/O devices
• When the signal is low, then address on the
address bus is for memory locations.
I/O mapped I/O scheme
• 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)
Operating mode of 8255
• Bit Set Reset (BSR) Mode
• I/O Mode
Bit Set Reset (BSR) Mode
BSR control word format
I/O Mode
• The 8255 has the following 3 modes of
operation
– Mode 0 – Simple Input/output
– Mode 1 – Input / Output with the Handshake or
strobed
– Mode 2 – Bi-directional I/O
I/O Mode
Mode 0 – Simple Input/output
– Port A and port B are used as two simple 8-bit I/O
port
– Port C as two 4-bit port
• Features
– Outputs are latched
– Inputs are buffered not latched
– Ports do not have handshake or interrupt
capability
I/O Mode
• Mode 1 – Input / Output with the Handshake
– Input or output data transfer is controlled by
handshaking signals.
– Handshaking signals are used to transfer data
between devices whose data transfer speeds are
not same.
– Port A and Port B are designed to operate with the
Port C.
– When Port A and Port B are programmed in Mode
1, 6 pins of port C is used for their control.
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
I/O Mode
• Mode 2 – Bi-directional I/O
• Port A can be programmed to operate as a
bidirectional port.
• 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
PROGRAMMING and OPERATION of
8255
• Programming in MODE 0
• 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
Programming in MODE 1
• IBF- input buffer full
• INTR- interrupt request
• INTE-interrupt enable
• OBF-output buffer full
• INTR-interrupt request
• INTE-interrupt enable
Programming in MODE 2
Interfacing cable
Basic Key operation
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
Traffic Light Control System
KEYBOARD INTERFACING
LED INTERFACE
TEMPERATURE CONTROL
STEPPER MOTOR
TRAFFIC CONTROL
UNIT III PROGRAMMABLE PERIPHERAL INTERFACE

More Related Content

What's hot

Communication protocols - Embedded Systems
Communication protocols - Embedded SystemsCommunication protocols - Embedded Systems
Communication protocols - Embedded Systems
Emertxe Information Technologies Pvt Ltd
 
8155 PPI
8155 PPI8155 PPI
8155 PPI
ShivamSood22
 
8051 block diagram
8051 block diagram8051 block diagram
8051 block diagram
DominicHendry
 
8085 Interfacing with I/O Devices or Memory
8085 Interfacing with I/O Devices or Memory8085 Interfacing with I/O Devices or Memory
8085 Interfacing with I/O Devices or Memory
Saumay Paul
 
Serial Communication
Serial CommunicationSerial Communication
Serial Communication
UshaRani289
 
MICROCONTROLLER 8051- Architecture & Pin Configuration
MICROCONTROLLER 8051- Architecture & Pin Configuration MICROCONTROLLER 8051- Architecture & Pin Configuration
MICROCONTROLLER 8051- Architecture & Pin Configuration
AKHIL MADANKAR
 
microcontroller basics
microcontroller basicsmicrocontroller basics
microcontroller basics
sagar Ramdev
 
8051 interfacing
8051 interfacing8051 interfacing
8051 interfacing
KanchanPatil34
 
8086 modes
8086 modes8086 modes
8086 modes
PDFSHARE
 
8051 MICROCONTROLLER ARCHITECTURE.pptx
 8051 MICROCONTROLLER ARCHITECTURE.pptx 8051 MICROCONTROLLER ARCHITECTURE.pptx
8051 MICROCONTROLLER ARCHITECTURE.pptx
MemonaMemon1
 
I2C Protocol
I2C ProtocolI2C Protocol
I2C Protocol
Abhijeet kapse
 
Interfacing 8255
Interfacing 8255Interfacing 8255
Interfacing 8255
Anuja Bhakuni
 
Memory organization of 8051
Memory organization of 8051Memory organization of 8051
Memory organization of 8051
Muthu Manickam
 
8051 timer counter
8051 timer counter8051 timer counter
8051 timer counter
vishalgohel12195
 
Addressing modes 8085
Addressing modes 8085Addressing modes 8085
Addressing modes 8085
ShivamSood22
 
8051 microcontroller by K. Vijay Kumar
8051 microcontroller by K. Vijay Kumar8051 microcontroller by K. Vijay Kumar
8051 microcontroller by K. Vijay Kumar
Vijay Kumar
 
Pin diagram 8085
Pin diagram 8085 Pin diagram 8085
Pin diagram 8085
Siddhesh Palkar
 
Chapter 1 microprocessor introduction
Chapter 1 microprocessor introductionChapter 1 microprocessor introduction
Chapter 1 microprocessor introduction
Shubham Singh
 
8259 Programmable Interrupt Controller by vijay
8259 Programmable Interrupt Controller by vijay8259 Programmable Interrupt Controller by vijay
8259 Programmable Interrupt Controller by vijay
Vijay Kumar
 
8051 microcontroller
8051 microcontroller 8051 microcontroller
8051 microcontroller
Gaurav Verma
 

What's hot (20)

Communication protocols - Embedded Systems
Communication protocols - Embedded SystemsCommunication protocols - Embedded Systems
Communication protocols - Embedded Systems
 
8155 PPI
8155 PPI8155 PPI
8155 PPI
 
8051 block diagram
8051 block diagram8051 block diagram
8051 block diagram
 
8085 Interfacing with I/O Devices or Memory
8085 Interfacing with I/O Devices or Memory8085 Interfacing with I/O Devices or Memory
8085 Interfacing with I/O Devices or Memory
 
Serial Communication
Serial CommunicationSerial Communication
Serial Communication
 
MICROCONTROLLER 8051- Architecture & Pin Configuration
MICROCONTROLLER 8051- Architecture & Pin Configuration MICROCONTROLLER 8051- Architecture & Pin Configuration
MICROCONTROLLER 8051- Architecture & Pin Configuration
 
microcontroller basics
microcontroller basicsmicrocontroller basics
microcontroller basics
 
8051 interfacing
8051 interfacing8051 interfacing
8051 interfacing
 
8086 modes
8086 modes8086 modes
8086 modes
 
8051 MICROCONTROLLER ARCHITECTURE.pptx
 8051 MICROCONTROLLER ARCHITECTURE.pptx 8051 MICROCONTROLLER ARCHITECTURE.pptx
8051 MICROCONTROLLER ARCHITECTURE.pptx
 
I2C Protocol
I2C ProtocolI2C Protocol
I2C Protocol
 
Interfacing 8255
Interfacing 8255Interfacing 8255
Interfacing 8255
 
Memory organization of 8051
Memory organization of 8051Memory organization of 8051
Memory organization of 8051
 
8051 timer counter
8051 timer counter8051 timer counter
8051 timer counter
 
Addressing modes 8085
Addressing modes 8085Addressing modes 8085
Addressing modes 8085
 
8051 microcontroller by K. Vijay Kumar
8051 microcontroller by K. Vijay Kumar8051 microcontroller by K. Vijay Kumar
8051 microcontroller by K. Vijay Kumar
 
Pin diagram 8085
Pin diagram 8085 Pin diagram 8085
Pin diagram 8085
 
Chapter 1 microprocessor introduction
Chapter 1 microprocessor introductionChapter 1 microprocessor introduction
Chapter 1 microprocessor introduction
 
8259 Programmable Interrupt Controller by vijay
8259 Programmable Interrupt Controller by vijay8259 Programmable Interrupt Controller by vijay
8259 Programmable Interrupt Controller by vijay
 
8051 microcontroller
8051 microcontroller 8051 microcontroller
8051 microcontroller
 

Similar to UNIT III PROGRAMMABLE PERIPHERAL INTERFACE

PROGRAMMABLE PERIPHERAL INTERFCAE.ppt
PROGRAMMABLE PERIPHERAL INTERFCAE.pptPROGRAMMABLE PERIPHERAL INTERFCAE.ppt
PROGRAMMABLE PERIPHERAL INTERFCAE.ppt
karthik R
 
20ME702– MECHATRONICS -UNIT-3.ppt
20ME702– MECHATRONICS -UNIT-3.ppt20ME702– MECHATRONICS -UNIT-3.ppt
20ME702– MECHATRONICS -UNIT-3.ppt
Mohanumar 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
 
PPI-MECHATRONICS
PPI-MECHATRONICSPPI-MECHATRONICS
PPI-MECHATRONICS
selvakumar948
 
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
CHANDRA KUMAR S
 
UNIT- 3.pptx
UNIT- 3.pptxUNIT- 3.pptx
UNIT- 3.pptx
BASKARS53
 
Programmable Peripheral Devices
Programmable Peripheral Devices Programmable Peripheral Devices
Programmable Peripheral Devices
glorypriyadharshini1
 
MicroProcessors and MicroControllersUnit3
MicroProcessors and MicroControllersUnit3MicroProcessors and MicroControllersUnit3
MicroProcessors and MicroControllersUnit3
deepakdmaat
 
UNIT 3 Peripheral Interfacing.pptx
UNIT 3 Peripheral Interfacing.pptxUNIT 3 Peripheral Interfacing.pptx
UNIT 3 Peripheral Interfacing.pptx
Gowrishankar C
 
Parth xyz
Parth xyzParth xyz
Parth xyz
ParthBabariya15
 
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
Sirisha Vamsi
 
8255 PPI.pptx
8255 PPI.pptx8255 PPI.pptx
8255 PPI.pptx
ssuser823c58
 
PLCpptFeb222017.ppt
PLCpptFeb222017.pptPLCpptFeb222017.ppt
PLCpptFeb222017.ppt
MohammadImran65702
 
Unit 3 mpmc
Unit 3 mpmcUnit 3 mpmc
Unit 3 mpmc
tamilnesaner
 
8255.pdf
8255.pdf8255.pdf
8255.pdf
someshdash1
 
Unit-IV.pptx
Unit-IV.pptxUnit-IV.pptx
Unit-IV.pptx
ssuser47c811
 
MPC of TWT based Transmitter
MPC of TWT based TransmitterMPC of TWT based Transmitter
MPC of TWT based Transmitter
Abhishek Sutrave
 
Basic PLC.ppt
Basic PLC.pptBasic PLC.ppt
Basic PLC.ppt
Ashish Deotale
 
Interfacing with peripherals: analog to digital converters and digital to ana...
Interfacing with peripherals: analog to digital converters and digital to ana...Interfacing with peripherals: analog to digital converters and digital to ana...
Interfacing with peripherals: analog to digital converters and digital to ana...
NimeshSingh27
 
8255 presentaion.ppt
8255 presentaion.ppt8255 presentaion.ppt
8255 presentaion.ppt
kamlesh deshmukh
 

Similar to UNIT III PROGRAMMABLE PERIPHERAL INTERFACE (20)

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
 
PPI-MECHATRONICS
PPI-MECHATRONICSPPI-MECHATRONICS
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.ppt
 
UNIT- 3.pptx
UNIT- 3.pptxUNIT- 3.pptx
UNIT- 3.pptx
 
Programmable Peripheral Devices
Programmable Peripheral Devices Programmable Peripheral Devices
Programmable Peripheral Devices
 
MicroProcessors and MicroControllersUnit3
MicroProcessors and MicroControllersUnit3MicroProcessors and MicroControllersUnit3
MicroProcessors and MicroControllersUnit3
 
UNIT 3 Peripheral Interfacing.pptx
UNIT 3 Peripheral Interfacing.pptxUNIT 3 Peripheral Interfacing.pptx
UNIT 3 Peripheral Interfacing.pptx
 
Parth xyz
Parth xyzParth xyz
Parth xyz
 
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 PPI.pptx
8255 PPI.pptx8255 PPI.pptx
8255 PPI.pptx
 
PLCpptFeb222017.ppt
PLCpptFeb222017.pptPLCpptFeb222017.ppt
PLCpptFeb222017.ppt
 
Unit 3 mpmc
Unit 3 mpmcUnit 3 mpmc
Unit 3 mpmc
 
8255.pdf
8255.pdf8255.pdf
8255.pdf
 
Unit-IV.pptx
Unit-IV.pptxUnit-IV.pptx
Unit-IV.pptx
 
MPC of TWT based Transmitter
MPC of TWT based TransmitterMPC of TWT based Transmitter
MPC of TWT based Transmitter
 
Basic PLC.ppt
Basic PLC.pptBasic PLC.ppt
Basic PLC.ppt
 
Interfacing with peripherals: analog to digital converters and digital to ana...
Interfacing with peripherals: analog to digital converters and digital to ana...Interfacing with peripherals: analog to digital converters and digital to ana...
Interfacing with peripherals: analog to digital converters and digital to ana...
 
8255 presentaion.ppt
8255 presentaion.ppt8255 presentaion.ppt
8255 presentaion.ppt
 

More from ravis205084

Unit - 1.pptx
Unit - 1.pptxUnit - 1.pptx
Unit - 1.pptx
ravis205084
 
unit-2.pptx
unit-2.pptxunit-2.pptx
unit-2.pptx
ravis205084
 
unit-3.pdf
unit-3.pdfunit-3.pdf
unit-3.pdf
ravis205084
 
Unit-4.pdf
Unit-4.pdfUnit-4.pdf
Unit-4.pdf
ravis205084
 
UNIT-5.pptx
UNIT-5.pptxUNIT-5.pptx
UNIT-5.pptx
ravis205084
 
UNIT V ACTUATORS AND MECHATRONIC SYSTEM DESIGN
UNIT V ACTUATORS AND MECHATRONIC SYSTEM DESIGN UNIT V ACTUATORS AND MECHATRONIC SYSTEM DESIGN
UNIT V ACTUATORS AND MECHATRONIC SYSTEM DESIGN
ravis205084
 
UNIT IV PROGRAMMABLE LOGIC CONTROLLER
UNIT IV PROGRAMMABLE LOGIC CONTROLLER UNIT IV PROGRAMMABLE LOGIC CONTROLLER
UNIT IV PROGRAMMABLE LOGIC CONTROLLER
ravis205084
 
UNIT II MICROPROCESSOR AND MICROCONTROLLER
UNIT II MICROPROCESSOR AND MICROCONTROLLER UNIT II MICROPROCESSOR AND MICROCONTROLLER
UNIT II MICROPROCESSOR AND MICROCONTROLLER
ravis205084
 
UNIT I INTRODUCTION (MECHATRONICS)
UNIT I INTRODUCTION (MECHATRONICS)UNIT I INTRODUCTION (MECHATRONICS)
UNIT I INTRODUCTION (MECHATRONICS)
ravis205084
 
Unit 5 -cellular manufacturing & fms
Unit 5 -cellular manufacturing & fmsUnit 5 -cellular manufacturing & fms
Unit 5 -cellular manufacturing & fms
ravis205084
 
UNIT III CAD STANDARDS
UNIT III CAD STANDARDS UNIT III CAD STANDARDS
UNIT III CAD STANDARDS
ravis205084
 
UNIT II GEOMETRIC MODELING (COMPUTER AIDED DESIGN AND MANUFACTURING )
UNIT II GEOMETRIC MODELING (COMPUTER AIDED DESIGN AND MANUFACTURING )UNIT II GEOMETRIC MODELING (COMPUTER AIDED DESIGN AND MANUFACTURING )
UNIT II GEOMETRIC MODELING (COMPUTER AIDED DESIGN AND MANUFACTURING )
ravis205084
 
Unit 1 INTRODUCTION (COMPUTER AIDED DESIGN AND MANUFACTURING )
Unit 1 INTRODUCTION (COMPUTER AIDED DESIGN AND MANUFACTURING )Unit 1 INTRODUCTION (COMPUTER AIDED DESIGN AND MANUFACTURING )
Unit 1 INTRODUCTION (COMPUTER AIDED DESIGN AND MANUFACTURING )
ravis205084
 

More from ravis205084 (13)

Unit - 1.pptx
Unit - 1.pptxUnit - 1.pptx
Unit - 1.pptx
 
unit-2.pptx
unit-2.pptxunit-2.pptx
unit-2.pptx
 
unit-3.pdf
unit-3.pdfunit-3.pdf
unit-3.pdf
 
Unit-4.pdf
Unit-4.pdfUnit-4.pdf
Unit-4.pdf
 
UNIT-5.pptx
UNIT-5.pptxUNIT-5.pptx
UNIT-5.pptx
 
UNIT V ACTUATORS AND MECHATRONIC SYSTEM DESIGN
UNIT V ACTUATORS AND MECHATRONIC SYSTEM DESIGN UNIT V ACTUATORS AND MECHATRONIC SYSTEM DESIGN
UNIT V ACTUATORS AND MECHATRONIC SYSTEM DESIGN
 
UNIT IV PROGRAMMABLE LOGIC CONTROLLER
UNIT IV PROGRAMMABLE LOGIC CONTROLLER UNIT IV PROGRAMMABLE LOGIC CONTROLLER
UNIT IV PROGRAMMABLE LOGIC CONTROLLER
 
UNIT II MICROPROCESSOR AND MICROCONTROLLER
UNIT II MICROPROCESSOR AND MICROCONTROLLER UNIT II MICROPROCESSOR AND MICROCONTROLLER
UNIT II MICROPROCESSOR AND MICROCONTROLLER
 
UNIT I INTRODUCTION (MECHATRONICS)
UNIT I INTRODUCTION (MECHATRONICS)UNIT I INTRODUCTION (MECHATRONICS)
UNIT I INTRODUCTION (MECHATRONICS)
 
Unit 5 -cellular manufacturing & fms
Unit 5 -cellular manufacturing & fmsUnit 5 -cellular manufacturing & fms
Unit 5 -cellular manufacturing & fms
 
UNIT III CAD STANDARDS
UNIT III CAD STANDARDS UNIT III CAD STANDARDS
UNIT III CAD STANDARDS
 
UNIT II GEOMETRIC MODELING (COMPUTER AIDED DESIGN AND MANUFACTURING )
UNIT II GEOMETRIC MODELING (COMPUTER AIDED DESIGN AND MANUFACTURING )UNIT II GEOMETRIC MODELING (COMPUTER AIDED DESIGN AND MANUFACTURING )
UNIT II GEOMETRIC MODELING (COMPUTER AIDED DESIGN AND MANUFACTURING )
 
Unit 1 INTRODUCTION (COMPUTER AIDED DESIGN AND MANUFACTURING )
Unit 1 INTRODUCTION (COMPUTER AIDED DESIGN AND MANUFACTURING )Unit 1 INTRODUCTION (COMPUTER AIDED DESIGN AND MANUFACTURING )
Unit 1 INTRODUCTION (COMPUTER AIDED DESIGN AND MANUFACTURING )
 

Recently uploaded

Embedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoringEmbedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoring
IJECEIAES
 
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming PipelinesHarnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
Christina Lin
 
Manufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptxManufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptx
Madan Karki
 
PPT on GRP pipes manufacturing and testing
PPT on GRP pipes manufacturing and testingPPT on GRP pipes manufacturing and testing
PPT on GRP pipes manufacturing and testing
anoopmanoharan2
 
Heat Resistant Concrete Presentation ppt
Heat Resistant Concrete Presentation pptHeat Resistant Concrete Presentation ppt
Heat Resistant Concrete Presentation ppt
mamunhossenbd75
 
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMSA SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
IJNSA Journal
 
ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024
Rahul
 
Recycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part IIIRecycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part III
Aditya Rajan Patra
 
132/33KV substation case study Presentation
132/33KV substation case study Presentation132/33KV substation case study Presentation
132/33KV substation case study Presentation
kandramariana6
 
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
insn4465
 
Understanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine LearningUnderstanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine Learning
SUTEJAS
 
spirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptxspirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptx
Madan Karki
 
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
ihlasbinance2003
 
Literature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptxLiterature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptx
Dr Ramhari Poudyal
 
Properties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptxProperties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptx
MDSABBIROJJAMANPAYEL
 
Question paper of renewable energy sources
Question paper of renewable energy sourcesQuestion paper of renewable energy sources
Question paper of renewable energy sources
mahammadsalmanmech
 
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressionsKuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
Victor Morales
 
International Conference on NLP, Artificial Intelligence, Machine Learning an...
International Conference on NLP, Artificial Intelligence, Machine Learning an...International Conference on NLP, Artificial Intelligence, Machine Learning an...
International Conference on NLP, Artificial Intelligence, Machine Learning an...
gerogepatton
 
DfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributionsDfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributions
gestioneergodomus
 
ML Based Model for NIDS MSc Updated Presentation.v2.pptx
ML Based Model for NIDS MSc Updated Presentation.v2.pptxML Based Model for NIDS MSc Updated Presentation.v2.pptx
ML Based Model for NIDS MSc Updated Presentation.v2.pptx
JamalHussainArman
 

Recently uploaded (20)

Embedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoringEmbedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoring
 
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming PipelinesHarnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
 
Manufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptxManufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptx
 
PPT on GRP pipes manufacturing and testing
PPT on GRP pipes manufacturing and testingPPT on GRP pipes manufacturing and testing
PPT on GRP pipes manufacturing and testing
 
Heat Resistant Concrete Presentation ppt
Heat Resistant Concrete Presentation pptHeat Resistant Concrete Presentation ppt
Heat Resistant Concrete Presentation ppt
 
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMSA SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
 
ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024
 
Recycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part IIIRecycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part III
 
132/33KV substation case study Presentation
132/33KV substation case study Presentation132/33KV substation case study Presentation
132/33KV substation case study Presentation
 
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
 
Understanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine LearningUnderstanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine Learning
 
spirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptxspirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptx
 
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
 
Literature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptxLiterature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptx
 
Properties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptxProperties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptx
 
Question paper of renewable energy sources
Question paper of renewable energy sourcesQuestion paper of renewable energy sources
Question paper of renewable energy sources
 
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressionsKuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
 
International Conference on NLP, Artificial Intelligence, Machine Learning an...
International Conference on NLP, Artificial Intelligence, Machine Learning an...International Conference on NLP, Artificial Intelligence, Machine Learning an...
International Conference on NLP, Artificial Intelligence, Machine Learning an...
 
DfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributionsDfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributions
 
ML Based Model for NIDS MSc Updated Presentation.v2.pptx
ML Based Model for NIDS MSc Updated Presentation.v2.pptxML Based Model for NIDS MSc Updated Presentation.v2.pptx
ML Based Model for NIDS MSc Updated Presentation.v2.pptx
 

UNIT III PROGRAMMABLE PERIPHERAL INTERFACE

  • 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. • Some of the general purpose interfacing devices – I/O ports – Programmable peripherals interface (PPI) – DMA controllers(Direct memory access) – Interrupt controller • Some of the special purpose interfacing devices – CRT controller – Keyboard – Display – Floppy Disc controllers
  • 6. Some peripheral interfacing chips of 8085 and 8086 microprocessors. • Programmable peripherals interface Inter 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
  • 7. Microprocessors unit with I/O devices Input devices (key board) PPI 8255 Micro proce ssors 8279 Display Output device (LED) Peripheral Interface Display Interface
  • 8. Address Space Partitioning • Two schemes for the allocation of addresses to memories and I/O devices – Memory mapped I/O – I/O mapped I/O
  • 9. 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 84FF • It is suitable for small system.
  • 10. I/O mapped I/O scheme • In this scheme, addresses assigned to memories locations can also be assigned to I/O devices • When the signal is high, then address on the address bus is for an I/O devices • When the signal is low, then address on the address bus is for memory locations.
  • 11. I/O mapped I/O scheme • 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. Operating mode of 8255 • Bit Set Reset (BSR) Mode • I/O Mode
  • 14. Bit Set Reset (BSR) Mode BSR control word format
  • 15. I/O Mode • The 8255 has the following 3 modes of operation – Mode 0 – Simple Input/output – Mode 1 – Input / Output with the Handshake or strobed – Mode 2 – Bi-directional I/O
  • 16. I/O Mode Mode 0 – Simple Input/output – Port A and port B are used as two simple 8-bit I/O port – Port C as two 4-bit port • Features – Outputs are latched – Inputs are buffered not latched – Ports do not have handshake or interrupt capability
  • 17. I/O Mode • Mode 1 – Input / Output with the Handshake – Input or output data transfer is controlled by handshaking signals. – Handshaking signals are used to transfer data between devices whose data transfer speeds are not same. – Port A and Port B are designed to operate with the Port C. – When Port A and Port B are programmed in Mode 1, 6 pins of port C is used for their control.
  • 18. 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
  • 19. I/O Mode • Mode 2 – Bi-directional I/O • Port A can be programmed to operate as a bidirectional port. • 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.
  • 21.
  • 22. PROGRAMMING and OPERATION of 8255 • Programming in MODE 0 • 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
  • 23. 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
  • 25. • IBF- input buffer full • INTR- interrupt request • INTE-interrupt enable • OBF-output buffer full • INTR-interrupt request • INTE-interrupt enable
  • 27.
  • 30.
  • 31. 2 X 2 Key operation
  • 32. Keyboard Microprocessor Interface software Flowchart
  • 34.
  • 35.
  • 37.
  • 38. Microprocessor interface to LED (Common anode)
  • 39.
  • 40. Microprocessor interface to 7 segment LED (Parallel)
  • 41. Microprocessor interface to 7 segment LED (serial)
  • 42. Serial interface of 7 segment LED to Microprocessor software flowchart
  • 44.
  • 46. BLOCK diagram of ADC 0808
  • 47.
  • 48. PIN diagram of ADC 0808
  • 53. 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
  • 54. • 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
  • 55.
  • 56. 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
  • 57.
  • 59. 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
  • 60. 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
  • 62. Interfacing diagram for Traffic Light Control System
  • 63.
  • 66.
  • 67.
  • 69.