際際滷

際際滷Share a Scribd company logo
82C55
Programmable Peripheral Interface
About 82C55
 The 82C55 is a popular low cost interfacing
component, that can interface any TTL-
compatible I/O device to a microprocessor.
 It is used to interface to the keyboard and
a parallel printer port in PCs (usually as
part of an integrated chipset).
About 82C55
 PPI has 24 pins for I/O that are
programmable in groups of 12 pins
and has three distinct modes of
operation.
82C55 : Pin Layout
Data
bus
Group : A
Port (A0-A7) &
Upper part of port C
(C4-C7)
Group : B
Port (B0-B7) & Lower
part of port C (C0-C3)
Port A
Port B
Port C
Programmi
ng,reading
& writing to
a port
Reset all
program
Input
pin
82C55
A1
Reset
A0
WR
RD
Control Signals:
CS
Read/write
Control
Logic
Figure 1119 The 82C55 interfaced to the low bank of the
80386SX microprocessor.
 A RESET input to the 82C55 initializes the
device whenever the microprocessor is
reset.
 A RESET input to the 82C55 causes all
ports to be set up as simple input ports
using mode 0 operation.
82C55 PPI
Addressing the 82C55
A1 A0 = 00 Port A ;
= 01 Port B ;
= 10 Port C ;
= 11 Command Register;
Programming The 82C55
 82C55 contains only two internal Command
Registers
Notice that bit position 7 selects either Command byte
A or Command byte B.
Command byte A : (command byte A programs the
function of group A and B)
Command byte B : (command byte b sets (1) or reset
(0) bit of port C only if the 82C55 is programmed in
mode 1 & 2)
Programming The 82C55
 Group B Pins:
Are programmed as either input or output
pins.Group B can operate in either mode o
or 1.
Mode 0 is the basic input/output mode that
allows pins of group B to be programmed as
simple input latched output connections.
Mode 1 operation is the strobed operation for
group B connections.
Programming The 82C55
 Group A Pins:
Are also programmed as either input or
output pins.The difference is that Group
A can operate in modes 0,1 and 2.
82C55 has three operation modes:
 mode 0
 mode 1
 mode 2
Programming 82C55
Mode 0 (Basic Input/Output).
 This functional configuration
provides simple input and output
operations for each of the three
ports.
 No handshaking is required, data
is simply written to or read from a
specified port.
MODE 1 (Strobed Input/Output)
 This functional configuration
provides a means for transferring
I/O data to or from a specified port
in conjunction with strobes or
handshaking signals.
 In mode 1, Port A and Port B use
the lines on Port C to generate or
accept these handshaking signals
Mode 1 Basic functional Definitions
 Two Groups (Group A and Group B).
 Each group contains one 8-bit data port
and one 4-bit control/data port.
 The 8-bit data port can be either input
or output Both inputs and outputs are
latched.
 The 4-bit port is used for control and
status of the 8-bit data port.
MODE 2 Basic Functional Definitions:
 Used in Group A only.
 One 8-bit, bi-directional bus port (Port
A) and a 5-bit control port (Port C).
 Both inputs and outputs are latched.
 The 5-bit control port (Port C) is used
for control and status for the 8-bit, bi-
directional bus port (Port A).
A Stepper Motor Interfaced to the
82C55.
 Another device often interfaced to a
computer system is the stepper motor.
 a digital motor because it is moved in
discrete steps as it traverses through 360属
 An inexpensive stepper motor is geared
to move perhaps 15属 per step
 A more costly, high-precision stepper
motor can be geared to 1属 per step.
 In all cases, these steps are gained through many magnetic
poles and/or gearing.
 Figure 1123 shows a four-coil stepper motor that uses an
armature with a single pole.
 two coils are energized
 If less power is required, one coil may be energized at a
time, causing the motor to
step at 45属, 135属, 225属, and 315属.
 The motor is shown with the armature rotated to four
discrete places, called full stepping.
 accomplished by energizing the coils, as shown
A Stepper Motor Interfaced to the
82C55.
Figure 1123 The stepper motor showing full-step operation:
(a) 45属 (b) 135属 (c) 225属 (d) 315属.
 The motor is driven by NPN Darlington amp pairs
to provide a large current to each coil.
 A circuit that can drive this stepper motor is
illustrated in Fig 1124.
 with the four coils shown in place
 This circuit uses the 82C55 to provide drive
signals used to rotate the motor armature in
either the right- or left-hand direction.
A Stepper Motor Interfaced to the
82C55.
Figure 1124 A stepper motor interfaced to the 82C55. This
illustration does not show the decoder.
A Stepper Motor Interfaced to the 82C55.
From subroutine of Ex 10-10, CX contain the direction
and steps of rotation.
 If CX>8000h, motor spins in right hand direction
If CX<8000h, motor spins in left hand direction
The 15 bits except MSL(leftmost bit) express the no. of steps.

More Related Content

What's hot (20)

8085 interfacing with memory chips
8085 interfacing with memory chips8085 interfacing with memory chips
8085 interfacing with memory chips
Srikrishna Thota
Programming with arduino
Programming with arduinoProgramming with arduino
Programming with arduino
Makers of India
Synchronous Loadable Up and Down Counter
Synchronous Loadable Up and Down Counter Synchronous Loadable Up and Down Counter
Synchronous Loadable Up and Down Counter
Digital System Design
DIgital clock using verilog
DIgital clock using verilog DIgital clock using verilog
DIgital clock using verilog
Abhishek Sainkar
Datapath Design of Computer Architecture
Datapath Design of Computer ArchitectureDatapath Design of Computer Architecture
Datapath Design of Computer Architecture
Abu Zaman
I2C introduction
I2C introductionI2C introduction
I2C introduction
SUNODH GARLAPATI
Verification of amba axi bus protocol implementing incr and wrap burst using ...
Verification of amba axi bus protocol implementing incr and wrap burst using ...Verification of amba axi bus protocol implementing incr and wrap burst using ...
Verification of amba axi bus protocol implementing incr and wrap burst using ...
eSAT Journals
IRJET- Design and Verification of APB Protocol by using System Verilog and Un...
IRJET- Design and Verification of APB Protocol by using System Verilog and Un...IRJET- Design and Verification of APB Protocol by using System Verilog and Un...
IRJET- Design and Verification of APB Protocol by using System Verilog and Un...
IRJET Journal
load flow 1
 load flow 1 load flow 1
load flow 1
Kinoki Watanabe
UNIT III PROGRAMMABLE PERIPHERAL INTERFACE
UNIT III PROGRAMMABLE PERIPHERAL INTERFACE UNIT III PROGRAMMABLE PERIPHERAL INTERFACE
UNIT III PROGRAMMABLE PERIPHERAL INTERFACE
ravis205084
Serial Peripheral Interface
Serial Peripheral InterfaceSerial Peripheral Interface
Serial Peripheral Interface
Chirag Parikh
Memory organization
Memory organizationMemory organization
Memory organization
Dhaval Bagal
Communication Interface of The Embedded Systems
Communication Interface of The Embedded Systems Communication Interface of The Embedded Systems
Communication Interface of The Embedded Systems
VijayKumar5738
Timing diagram 8085 microprocessor
Timing diagram 8085 microprocessorTiming diagram 8085 microprocessor
Timing diagram 8085 microprocessor
Velalar College of Engineering and Technology
Data flow model -Lecture-4
Data flow model -Lecture-4Data flow model -Lecture-4
Data flow model -Lecture-4
Dr.YNM
UVM TUTORIAL;
UVM TUTORIAL;UVM TUTORIAL;
UVM TUTORIAL;
Azad Mishra
Memory intrface and addrs modes
Memory intrface and addrs modesMemory intrface and addrs modes
Memory intrface and addrs modes
balbirvirdi
Pin digram of 8086
Pin digram of 8086Pin digram of 8086
Pin digram of 8086
RJ
Architecture of the Intel 8051 Microcontroller
Architecture of the Intel 8051 MicrocontrollerArchitecture of the Intel 8051 Microcontroller
Architecture of the Intel 8051 Microcontroller
Sudhanshu Janwadkar
Introduction to 8085 Microprocessors
Introduction to 8085 MicroprocessorsIntroduction to 8085 Microprocessors
Introduction to 8085 Microprocessors
Veerakumar S
8085 interfacing with memory chips
8085 interfacing with memory chips8085 interfacing with memory chips
8085 interfacing with memory chips
Srikrishna Thota
Programming with arduino
Programming with arduinoProgramming with arduino
Programming with arduino
Makers of India
Synchronous Loadable Up and Down Counter
Synchronous Loadable Up and Down Counter Synchronous Loadable Up and Down Counter
Synchronous Loadable Up and Down Counter
Digital System Design
DIgital clock using verilog
DIgital clock using verilog DIgital clock using verilog
DIgital clock using verilog
Abhishek Sainkar
Datapath Design of Computer Architecture
Datapath Design of Computer ArchitectureDatapath Design of Computer Architecture
Datapath Design of Computer Architecture
Abu Zaman
Verification of amba axi bus protocol implementing incr and wrap burst using ...
Verification of amba axi bus protocol implementing incr and wrap burst using ...Verification of amba axi bus protocol implementing incr and wrap burst using ...
Verification of amba axi bus protocol implementing incr and wrap burst using ...
eSAT Journals
IRJET- Design and Verification of APB Protocol by using System Verilog and Un...
IRJET- Design and Verification of APB Protocol by using System Verilog and Un...IRJET- Design and Verification of APB Protocol by using System Verilog and Un...
IRJET- Design and Verification of APB Protocol by using System Verilog and Un...
IRJET Journal
UNIT III PROGRAMMABLE PERIPHERAL INTERFACE
UNIT III PROGRAMMABLE PERIPHERAL INTERFACE UNIT III PROGRAMMABLE PERIPHERAL INTERFACE
UNIT III PROGRAMMABLE PERIPHERAL INTERFACE
ravis205084
Serial Peripheral Interface
Serial Peripheral InterfaceSerial Peripheral Interface
Serial Peripheral Interface
Chirag Parikh
Memory organization
Memory organizationMemory organization
Memory organization
Dhaval Bagal
Communication Interface of The Embedded Systems
Communication Interface of The Embedded Systems Communication Interface of The Embedded Systems
Communication Interface of The Embedded Systems
VijayKumar5738
Data flow model -Lecture-4
Data flow model -Lecture-4Data flow model -Lecture-4
Data flow model -Lecture-4
Dr.YNM
UVM TUTORIAL;
UVM TUTORIAL;UVM TUTORIAL;
UVM TUTORIAL;
Azad Mishra
Memory intrface and addrs modes
Memory intrface and addrs modesMemory intrface and addrs modes
Memory intrface and addrs modes
balbirvirdi
Pin digram of 8086
Pin digram of 8086Pin digram of 8086
Pin digram of 8086
RJ
Architecture of the Intel 8051 Microcontroller
Architecture of the Intel 8051 MicrocontrollerArchitecture of the Intel 8051 Microcontroller
Architecture of the Intel 8051 Microcontroller
Sudhanshu Janwadkar
Introduction to 8085 Microprocessors
Introduction to 8085 MicroprocessorsIntroduction to 8085 Microprocessors
Introduction to 8085 Microprocessors
Veerakumar S

Similar to 82C55 PPI (1).ppt (20)

8255 & IO Interfacing.pdf
8255 & IO Interfacing.pdf8255 & IO Interfacing.pdf
8255 & IO Interfacing.pdf
Ilavarasan Tamizh
8255 PPI
8255 PPI8255 PPI
8255 PPI
deval patel
8255
82558255
8255
INTERNATIONAL SCHOOL OF TECHNOLOGY & SCIENCES (FOR WOMEN)
UNIT- 3.pptx
UNIT- 3.pptxUNIT- 3.pptx
UNIT- 3.pptx
BASKARS53
application of Mp traffic light LED LCD display.pptx
application of Mp traffic light LED LCD display.pptxapplication of Mp traffic light LED LCD display.pptx
application of Mp traffic light LED LCD display.pptx
vaishnavipanditengg
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
khushiduppala
Stepper motor controller using c
Stepper motor controller using cStepper motor controller using c
Stepper motor controller using c
Harnam Singh
Unit-3 IO Interfacing-1.pptximportant questions to be noted
Unit-3 IO Interfacing-1.pptximportant questions to be notedUnit-3 IO Interfacing-1.pptximportant questions to be noted
Unit-3 IO Interfacing-1.pptximportant questions to be noted
mandakalyan811
Programmable Peripheral Devices
Programmable Peripheral Devices Programmable Peripheral Devices
Programmable Peripheral Devices
glorypriyadharshini1
7 8255
7 82557 8255
7 8255
Venkateswarea Reddy Kolagotla
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 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
ADC and DAC interfacing.pdf
ADC and DAC interfacing.pdfADC and DAC interfacing.pdf
ADC and DAC interfacing.pdf
VikasMahor3
analog to digital converter and dac final
analog to digital converter and dac finalanalog to digital converter and dac final
analog to digital converter and dac final
DrVikasMahor
Interfacing Analog to Digital Data Converters ee3404.pdf
Interfacing Analog to Digital Data Converters ee3404.pdfInterfacing Analog to Digital Data Converters ee3404.pdf
Interfacing Analog to Digital Data Converters ee3404.pdf
ragupathi90
1.ppi 8255
1.ppi 8255 1.ppi 8255
1.ppi 8255
MdFazleRabbi18
Basic plc 1
Basic plc 1Basic plc 1
Basic plc 1
Gaurav Kumar
MPC of TWT based Transmitter
MPC of TWT based TransmitterMPC of TWT based Transmitter
MPC of TWT based Transmitter
Abhishek Sutrave
Unit 3-PROGRAMMABLE PERIPERAL INTERFACE.pdf- MECHATRONICS-ENGGINERING
Unit 3-PROGRAMMABLE PERIPERAL INTERFACE.pdf- MECHATRONICS-ENGGINERINGUnit 3-PROGRAMMABLE PERIPERAL INTERFACE.pdf- MECHATRONICS-ENGGINERING
Unit 3-PROGRAMMABLE PERIPERAL INTERFACE.pdf- MECHATRONICS-ENGGINERING
Chandra Kumar S
PPI-MECHATRONICS
PPI-MECHATRONICSPPI-MECHATRONICS
PPI-MECHATRONICS
selvakumar948
8255 & IO Interfacing.pdf
8255 & IO Interfacing.pdf8255 & IO Interfacing.pdf
8255 & IO Interfacing.pdf
Ilavarasan Tamizh
UNIT- 3.pptx
UNIT- 3.pptxUNIT- 3.pptx
UNIT- 3.pptx
BASKARS53
application of Mp traffic light LED LCD display.pptx
application of Mp traffic light LED LCD display.pptxapplication of Mp traffic light LED LCD display.pptx
application of Mp traffic light LED LCD display.pptx
vaishnavipanditengg
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
khushiduppala
Stepper motor controller using c
Stepper motor controller using cStepper motor controller using c
Stepper motor controller using c
Harnam Singh
Unit-3 IO Interfacing-1.pptximportant questions to be noted
Unit-3 IO Interfacing-1.pptximportant questions to be notedUnit-3 IO Interfacing-1.pptximportant questions to be noted
Unit-3 IO Interfacing-1.pptximportant questions to be noted
mandakalyan811
Programmable Peripheral Devices
Programmable Peripheral Devices Programmable Peripheral Devices
Programmable Peripheral Devices
glorypriyadharshini1
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 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
ADC and DAC interfacing.pdf
ADC and DAC interfacing.pdfADC and DAC interfacing.pdf
ADC and DAC interfacing.pdf
VikasMahor3
analog to digital converter and dac final
analog to digital converter and dac finalanalog to digital converter and dac final
analog to digital converter and dac final
DrVikasMahor
Interfacing Analog to Digital Data Converters ee3404.pdf
Interfacing Analog to Digital Data Converters ee3404.pdfInterfacing Analog to Digital Data Converters ee3404.pdf
Interfacing Analog to Digital Data Converters ee3404.pdf
ragupathi90
MPC of TWT based Transmitter
MPC of TWT based TransmitterMPC of TWT based Transmitter
MPC of TWT based Transmitter
Abhishek Sutrave
Unit 3-PROGRAMMABLE PERIPERAL INTERFACE.pdf- MECHATRONICS-ENGGINERING
Unit 3-PROGRAMMABLE PERIPERAL INTERFACE.pdf- MECHATRONICS-ENGGINERINGUnit 3-PROGRAMMABLE PERIPERAL INTERFACE.pdf- MECHATRONICS-ENGGINERING
Unit 3-PROGRAMMABLE PERIPERAL INTERFACE.pdf- MECHATRONICS-ENGGINERING
Chandra Kumar S

More from MDTahsinAmin3 (6)

Computer Organization Introduction(basic)
Computer Organization Introduction(basic)Computer Organization Introduction(basic)
Computer Organization Introduction(basic)
MDTahsinAmin3
A Star search algorithm with example (num)
A Star search algorithm with example (num)A Star search algorithm with example (num)
A Star search algorithm with example (num)
MDTahsinAmin3
3. Coprocessor.ppt
3. Coprocessor.ppt3. Coprocessor.ppt
3. Coprocessor.ppt
MDTahsinAmin3
7chap007_data modeling and analysis_14-7-19.ppt
7chap007_data modeling and analysis_14-7-19.ppt7chap007_data modeling and analysis_14-7-19.ppt
7chap007_data modeling and analysis_14-7-19.ppt
MDTahsinAmin3
3.1measure of central tendency.pptx
3.1measure of central tendency.pptx3.1measure of central tendency.pptx
3.1measure of central tendency.pptx
MDTahsinAmin3
Chapter-8_Multiplexing.pptx
Chapter-8_Multiplexing.pptxChapter-8_Multiplexing.pptx
Chapter-8_Multiplexing.pptx
MDTahsinAmin3
Computer Organization Introduction(basic)
Computer Organization Introduction(basic)Computer Organization Introduction(basic)
Computer Organization Introduction(basic)
MDTahsinAmin3
A Star search algorithm with example (num)
A Star search algorithm with example (num)A Star search algorithm with example (num)
A Star search algorithm with example (num)
MDTahsinAmin3
3. Coprocessor.ppt
3. Coprocessor.ppt3. Coprocessor.ppt
3. Coprocessor.ppt
MDTahsinAmin3
7chap007_data modeling and analysis_14-7-19.ppt
7chap007_data modeling and analysis_14-7-19.ppt7chap007_data modeling and analysis_14-7-19.ppt
7chap007_data modeling and analysis_14-7-19.ppt
MDTahsinAmin3
3.1measure of central tendency.pptx
3.1measure of central tendency.pptx3.1measure of central tendency.pptx
3.1measure of central tendency.pptx
MDTahsinAmin3
Chapter-8_Multiplexing.pptx
Chapter-8_Multiplexing.pptxChapter-8_Multiplexing.pptx
Chapter-8_Multiplexing.pptx
MDTahsinAmin3

Recently uploaded (20)

decarbonization steel industry rev1.pptx
decarbonization steel industry rev1.pptxdecarbonization steel industry rev1.pptx
decarbonization steel industry rev1.pptx
gonzalezolabarriaped
Introduction to Safety, Health & Environment
Introduction to Safety, Health  & EnvironmentIntroduction to Safety, Health  & Environment
Introduction to Safety, Health & Environment
ssuserc606c7
Taykon-Kalite belgeleri
Taykon-Kalite belgeleriTaykon-Kalite belgeleri
Taykon-Kalite belgeleri
TAYKON
decarbonization steel industry rev1.pptx
decarbonization steel industry rev1.pptxdecarbonization steel industry rev1.pptx
decarbonization steel industry rev1.pptx
gonzalezolabarriaped
Mathematics behind machine learning INT255 INT255__Unit 3__PPT-1.pptx
Mathematics behind machine learning INT255 INT255__Unit 3__PPT-1.pptxMathematics behind machine learning INT255 INT255__Unit 3__PPT-1.pptx
Mathematics behind machine learning INT255 INT255__Unit 3__PPT-1.pptx
ppkmurthy2006
How to Build a Maze Solving Robot Using Arduino
How to Build a Maze Solving Robot Using ArduinoHow to Build a Maze Solving Robot Using Arduino
How to Build a Maze Solving Robot Using Arduino
CircuitDigest
UNIT 1FUNDAMENTALS OF OPERATING SYSTEMS.pptx
UNIT 1FUNDAMENTALS OF OPERATING SYSTEMS.pptxUNIT 1FUNDAMENTALS OF OPERATING SYSTEMS.pptx
UNIT 1FUNDAMENTALS OF OPERATING SYSTEMS.pptx
KesavanT10
15. Smart Cities Big Data, Civic Hackers, and the Quest for a New Utopia.pdf
15. Smart Cities Big Data, Civic Hackers, and the Quest for a New Utopia.pdf15. Smart Cities Big Data, Civic Hackers, and the Quest for a New Utopia.pdf
15. Smart Cities Big Data, Civic Hackers, and the Quest for a New Utopia.pdf
NgocThang9
eng funda notes.pdfddddddddddddddddddddddd
eng funda notes.pdfdddddddddddddddddddddddeng funda notes.pdfddddddddddddddddddddddd
eng funda notes.pdfddddddddddddddddddddddd
aayushkumarsinghec22
Power Point Presentation for Electrical Engineering 3-phase.ppt
Power Point Presentation for Electrical Engineering 3-phase.pptPower Point Presentation for Electrical Engineering 3-phase.ppt
Power Point Presentation for Electrical Engineering 3-phase.ppt
Aniket_1415
Frankfurt University of Applied Science urkunde
Frankfurt University of Applied Science urkundeFrankfurt University of Applied Science urkunde
Frankfurt University of Applied Science urkunde
Lisa Emerson
Lecture -3 Cold water supply system.pptx
Lecture -3 Cold water supply system.pptxLecture -3 Cold water supply system.pptx
Lecture -3 Cold water supply system.pptx
rabiaatif2
TM-ASP-101-RF_Air Press manual crimping machine.pdf
TM-ASP-101-RF_Air Press manual crimping machine.pdfTM-ASP-101-RF_Air Press manual crimping machine.pdf
TM-ASP-101-RF_Air Press manual crimping machine.pdf
ChungLe60
RAMSES- EDITORIAL SAMPLE FOR DSSPC C.pptx
RAMSES- EDITORIAL SAMPLE FOR DSSPC C.pptxRAMSES- EDITORIAL SAMPLE FOR DSSPC C.pptx
RAMSES- EDITORIAL SAMPLE FOR DSSPC C.pptx
JenTeruel1
Engineering at Lovely Professional University (LPU).pdf
Engineering at Lovely Professional University (LPU).pdfEngineering at Lovely Professional University (LPU).pdf
Engineering at Lovely Professional University (LPU).pdf
Sona
Water Industry Process Automation & Control Monthly - March 2025.pdf
Water Industry Process Automation & Control Monthly - March 2025.pdfWater Industry Process Automation & Control Monthly - March 2025.pdf
Water Industry Process Automation & Control Monthly - March 2025.pdf
Water Industry Process Automation & Control
Equipment for Gas Metal Arc Welding Process
Equipment for Gas Metal Arc Welding ProcessEquipment for Gas Metal Arc Welding Process
Equipment for Gas Metal Arc Welding Process
AhmadKamil87
Piping-and-pipeline-calculations-manual.pdf
Piping-and-pipeline-calculations-manual.pdfPiping-and-pipeline-calculations-manual.pdf
Piping-and-pipeline-calculations-manual.pdf
OMI0721
Cyber Security_ Protecting the Digital World.pptx
Cyber Security_ Protecting the Digital World.pptxCyber Security_ Protecting the Digital World.pptx
Cyber Security_ Protecting the Digital World.pptx
Harshith A S
Best KNow Hydrogen Fuel Production in the World The cost in USD kwh for H2
Best KNow  Hydrogen Fuel Production in the World The cost in USD kwh for H2Best KNow  Hydrogen Fuel Production in the World The cost in USD kwh for H2
Best KNow Hydrogen Fuel Production in the World The cost in USD kwh for H2
Daniel Donatelli
decarbonization steel industry rev1.pptx
decarbonization steel industry rev1.pptxdecarbonization steel industry rev1.pptx
decarbonization steel industry rev1.pptx
gonzalezolabarriaped
Introduction to Safety, Health & Environment
Introduction to Safety, Health  & EnvironmentIntroduction to Safety, Health  & Environment
Introduction to Safety, Health & Environment
ssuserc606c7
Taykon-Kalite belgeleri
Taykon-Kalite belgeleriTaykon-Kalite belgeleri
Taykon-Kalite belgeleri
TAYKON
decarbonization steel industry rev1.pptx
decarbonization steel industry rev1.pptxdecarbonization steel industry rev1.pptx
decarbonization steel industry rev1.pptx
gonzalezolabarriaped
Mathematics behind machine learning INT255 INT255__Unit 3__PPT-1.pptx
Mathematics behind machine learning INT255 INT255__Unit 3__PPT-1.pptxMathematics behind machine learning INT255 INT255__Unit 3__PPT-1.pptx
Mathematics behind machine learning INT255 INT255__Unit 3__PPT-1.pptx
ppkmurthy2006
How to Build a Maze Solving Robot Using Arduino
How to Build a Maze Solving Robot Using ArduinoHow to Build a Maze Solving Robot Using Arduino
How to Build a Maze Solving Robot Using Arduino
CircuitDigest
UNIT 1FUNDAMENTALS OF OPERATING SYSTEMS.pptx
UNIT 1FUNDAMENTALS OF OPERATING SYSTEMS.pptxUNIT 1FUNDAMENTALS OF OPERATING SYSTEMS.pptx
UNIT 1FUNDAMENTALS OF OPERATING SYSTEMS.pptx
KesavanT10
15. Smart Cities Big Data, Civic Hackers, and the Quest for a New Utopia.pdf
15. Smart Cities Big Data, Civic Hackers, and the Quest for a New Utopia.pdf15. Smart Cities Big Data, Civic Hackers, and the Quest for a New Utopia.pdf
15. Smart Cities Big Data, Civic Hackers, and the Quest for a New Utopia.pdf
NgocThang9
eng funda notes.pdfddddddddddddddddddddddd
eng funda notes.pdfdddddddddddddddddddddddeng funda notes.pdfddddddddddddddddddddddd
eng funda notes.pdfddddddddddddddddddddddd
aayushkumarsinghec22
Power Point Presentation for Electrical Engineering 3-phase.ppt
Power Point Presentation for Electrical Engineering 3-phase.pptPower Point Presentation for Electrical Engineering 3-phase.ppt
Power Point Presentation for Electrical Engineering 3-phase.ppt
Aniket_1415
Frankfurt University of Applied Science urkunde
Frankfurt University of Applied Science urkundeFrankfurt University of Applied Science urkunde
Frankfurt University of Applied Science urkunde
Lisa Emerson
Lecture -3 Cold water supply system.pptx
Lecture -3 Cold water supply system.pptxLecture -3 Cold water supply system.pptx
Lecture -3 Cold water supply system.pptx
rabiaatif2
TM-ASP-101-RF_Air Press manual crimping machine.pdf
TM-ASP-101-RF_Air Press manual crimping machine.pdfTM-ASP-101-RF_Air Press manual crimping machine.pdf
TM-ASP-101-RF_Air Press manual crimping machine.pdf
ChungLe60
RAMSES- EDITORIAL SAMPLE FOR DSSPC C.pptx
RAMSES- EDITORIAL SAMPLE FOR DSSPC C.pptxRAMSES- EDITORIAL SAMPLE FOR DSSPC C.pptx
RAMSES- EDITORIAL SAMPLE FOR DSSPC C.pptx
JenTeruel1
Engineering at Lovely Professional University (LPU).pdf
Engineering at Lovely Professional University (LPU).pdfEngineering at Lovely Professional University (LPU).pdf
Engineering at Lovely Professional University (LPU).pdf
Sona
Equipment for Gas Metal Arc Welding Process
Equipment for Gas Metal Arc Welding ProcessEquipment for Gas Metal Arc Welding Process
Equipment for Gas Metal Arc Welding Process
AhmadKamil87
Piping-and-pipeline-calculations-manual.pdf
Piping-and-pipeline-calculations-manual.pdfPiping-and-pipeline-calculations-manual.pdf
Piping-and-pipeline-calculations-manual.pdf
OMI0721
Cyber Security_ Protecting the Digital World.pptx
Cyber Security_ Protecting the Digital World.pptxCyber Security_ Protecting the Digital World.pptx
Cyber Security_ Protecting the Digital World.pptx
Harshith A S
Best KNow Hydrogen Fuel Production in the World The cost in USD kwh for H2
Best KNow  Hydrogen Fuel Production in the World The cost in USD kwh for H2Best KNow  Hydrogen Fuel Production in the World The cost in USD kwh for H2
Best KNow Hydrogen Fuel Production in the World The cost in USD kwh for H2
Daniel Donatelli

82C55 PPI (1).ppt

  • 2. About 82C55 The 82C55 is a popular low cost interfacing component, that can interface any TTL- compatible I/O device to a microprocessor. It is used to interface to the keyboard and a parallel printer port in PCs (usually as part of an integrated chipset).
  • 3. About 82C55 PPI has 24 pins for I/O that are programmable in groups of 12 pins and has three distinct modes of operation.
  • 4. 82C55 : Pin Layout Data bus Group : A Port (A0-A7) & Upper part of port C (C4-C7) Group : B Port (B0-B7) & Lower part of port C (C0-C3) Port A Port B Port C Programmi ng,reading & writing to a port Reset all program Input pin
  • 6. Figure 1119 The 82C55 interfaced to the low bank of the 80386SX microprocessor.
  • 7. A RESET input to the 82C55 initializes the device whenever the microprocessor is reset. A RESET input to the 82C55 causes all ports to be set up as simple input ports using mode 0 operation.
  • 8. 82C55 PPI Addressing the 82C55 A1 A0 = 00 Port A ; = 01 Port B ; = 10 Port C ; = 11 Command Register;
  • 9. Programming The 82C55 82C55 contains only two internal Command Registers Notice that bit position 7 selects either Command byte A or Command byte B. Command byte A : (command byte A programs the function of group A and B) Command byte B : (command byte b sets (1) or reset (0) bit of port C only if the 82C55 is programmed in mode 1 & 2)
  • 10. Programming The 82C55 Group B Pins: Are programmed as either input or output pins.Group B can operate in either mode o or 1. Mode 0 is the basic input/output mode that allows pins of group B to be programmed as simple input latched output connections. Mode 1 operation is the strobed operation for group B connections.
  • 11. Programming The 82C55 Group A Pins: Are also programmed as either input or output pins.The difference is that Group A can operate in modes 0,1 and 2. 82C55 has three operation modes: mode 0 mode 1 mode 2
  • 13. Mode 0 (Basic Input/Output). This functional configuration provides simple input and output operations for each of the three ports. No handshaking is required, data is simply written to or read from a specified port.
  • 14. MODE 1 (Strobed Input/Output) This functional configuration provides a means for transferring I/O data to or from a specified port in conjunction with strobes or handshaking signals. In mode 1, Port A and Port B use the lines on Port C to generate or accept these handshaking signals
  • 15. Mode 1 Basic functional Definitions Two Groups (Group A and Group B). Each group contains one 8-bit data port and one 4-bit control/data port. The 8-bit data port can be either input or output Both inputs and outputs are latched. The 4-bit port is used for control and status of the 8-bit data port.
  • 16. MODE 2 Basic Functional Definitions: Used in Group A only. One 8-bit, bi-directional bus port (Port A) and a 5-bit control port (Port C). Both inputs and outputs are latched. The 5-bit control port (Port C) is used for control and status for the 8-bit, bi- directional bus port (Port A).
  • 17. A Stepper Motor Interfaced to the 82C55. Another device often interfaced to a computer system is the stepper motor. a digital motor because it is moved in discrete steps as it traverses through 360属 An inexpensive stepper motor is geared to move perhaps 15属 per step A more costly, high-precision stepper motor can be geared to 1属 per step.
  • 18. In all cases, these steps are gained through many magnetic poles and/or gearing. Figure 1123 shows a four-coil stepper motor that uses an armature with a single pole. two coils are energized If less power is required, one coil may be energized at a time, causing the motor to step at 45属, 135属, 225属, and 315属. The motor is shown with the armature rotated to four discrete places, called full stepping. accomplished by energizing the coils, as shown A Stepper Motor Interfaced to the 82C55.
  • 19. Figure 1123 The stepper motor showing full-step operation: (a) 45属 (b) 135属 (c) 225属 (d) 315属.
  • 20. The motor is driven by NPN Darlington amp pairs to provide a large current to each coil. A circuit that can drive this stepper motor is illustrated in Fig 1124. with the four coils shown in place This circuit uses the 82C55 to provide drive signals used to rotate the motor armature in either the right- or left-hand direction. A Stepper Motor Interfaced to the 82C55.
  • 21. Figure 1124 A stepper motor interfaced to the 82C55. This illustration does not show the decoder.
  • 22. A Stepper Motor Interfaced to the 82C55. From subroutine of Ex 10-10, CX contain the direction and steps of rotation. If CX>8000h, motor spins in right hand direction If CX<8000h, motor spins in left hand direction The 15 bits except MSL(leftmost bit) express the no. of steps.