SlideShare a Scribd company logo
1 of 22
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 11–19 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 11–23 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 11–23 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 11–24.
• 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 11–24 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

Binary multiplier
Binary multiplierBinary multiplier
Binary multipliereldhomv1
 
Sajib 201-15-3773-encoder
Sajib 201-15-3773-encoderSajib 201-15-3773-encoder
Sajib 201-15-3773-encoderSajibBormon1
 
COUNTERS(Synchronous & Asynchronous)
COUNTERS(Synchronous & Asynchronous)COUNTERS(Synchronous & Asynchronous)
COUNTERS(Synchronous & Asynchronous)Sairam Adithya
 
Sequential circuits in digital logic design
Sequential circuits in digital logic designSequential circuits in digital logic design
Sequential circuits in digital logic designNallapati Anindra
 
Microprocessor Interfacing and 8155 Features
Microprocessor Interfacing and 8155 FeaturesMicroprocessor Interfacing and 8155 Features
Microprocessor Interfacing and 8155 FeaturesSrikrishna Thota
 
Structure machine : Les registres
Structure machine : Les registresStructure machine : Les registres
Structure machine : Les registreslinuxscout
 
Sequential Logic Circuit
Sequential Logic CircuitSequential Logic Circuit
Sequential Logic CircuitRamasubbu .P
 
Digital clock
Digital clockDigital clock
Digital clockAbi Malik
 
Registers and counters
Registers and counters Registers and counters
Registers and counters Deepak John
 
JK flip flop in Digital electronics
JK flip flop in Digital electronicsJK flip flop in Digital electronics
JK flip flop in Digital electronicsEasy n Inspire L
 
8259 Programmable Interrupt Controller by vijay
8259 Programmable Interrupt Controller by vijay8259 Programmable Interrupt Controller by vijay
8259 Programmable Interrupt Controller by vijayVijay Kumar
 
8255 PPI (programmable Peripheral Interface) mode 0
8255 PPI (programmable Peripheral Interface) mode 08255 PPI (programmable Peripheral Interface) mode 0
8255 PPI (programmable Peripheral Interface) mode 0ABHIMANYUJHA8
 
Registers and its type DLD
Registers and its type DLDRegisters and its type DLD
Registers and its type DLDAzeemaj101
 
Computer Oragnization Flipflops
Computer Oragnization FlipflopsComputer Oragnization Flipflops
Computer Oragnization FlipflopsVanitha Chandru
 
Flipflops and Excitation tables of flipflops
Flipflops and Excitation tables of flipflopsFlipflops and Excitation tables of flipflops
Flipflops and Excitation tables of flipflopsstudent
 

What's hot (20)

Binary multiplier
Binary multiplierBinary multiplier
Binary multiplier
 
Sajib 201-15-3773-encoder
Sajib 201-15-3773-encoderSajib 201-15-3773-encoder
Sajib 201-15-3773-encoder
 
COUNTERS(Synchronous & Asynchronous)
COUNTERS(Synchronous & Asynchronous)COUNTERS(Synchronous & Asynchronous)
COUNTERS(Synchronous & Asynchronous)
 
Sequential circuits in digital logic design
Sequential circuits in digital logic designSequential circuits in digital logic design
Sequential circuits in digital logic design
 
Microprocessor Interfacing and 8155 Features
Microprocessor Interfacing and 8155 FeaturesMicroprocessor Interfacing and 8155 Features
Microprocessor Interfacing and 8155 Features
 
Structure machine : Les registres
Structure machine : Les registresStructure machine : Les registres
Structure machine : Les registres
 
Sequential Logic Circuit
Sequential Logic CircuitSequential Logic Circuit
Sequential Logic Circuit
 
Digital clock
Digital clockDigital clock
Digital clock
 
Flip flops
Flip flopsFlip flops
Flip flops
 
Registers and counters
Registers and counters Registers and counters
Registers and counters
 
JK flip flop in Digital electronics
JK flip flop in Digital electronicsJK flip flop in Digital electronics
JK flip flop in Digital electronics
 
8259 Programmable Interrupt Controller by vijay
8259 Programmable Interrupt Controller by vijay8259 Programmable Interrupt Controller by vijay
8259 Programmable Interrupt Controller by vijay
 
8255 PPI (programmable Peripheral Interface) mode 0
8255 PPI (programmable Peripheral Interface) mode 08255 PPI (programmable Peripheral Interface) mode 0
8255 PPI (programmable Peripheral Interface) mode 0
 
Registers and its type DLD
Registers and its type DLDRegisters and its type DLD
Registers and its type DLD
 
Computer Oragnization Flipflops
Computer Oragnization FlipflopsComputer Oragnization Flipflops
Computer Oragnization Flipflops
 
Status register
Status registerStatus register
Status register
 
Flipflops and Excitation tables of flipflops
Flipflops and Excitation tables of flipflopsFlipflops and Excitation tables of flipflops
Flipflops and Excitation tables of flipflops
 
Conversion of flip flop
Conversion of flip flopConversion of flip flop
Conversion of flip flop
 
8255 Programmable parallel I/O
8255 Programmable parallel I/O 8255 Programmable parallel I/O
8255 Programmable parallel I/O
 
8259 a
8259 a8259 a
8259 a
 

Similar to 82C55 PPI (1).ppt

UNIT- 3.pptx
UNIT- 3.pptxUNIT- 3.pptx
UNIT- 3.pptxBASKARS53
 
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
 
Stepper motor controller using c
Stepper motor controller using cStepper motor controller using c
Stepper motor controller using cHarnam Singh
 
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 studySirisha Vamsi
 
ADC and DAC interfacing.pdf
ADC and DAC interfacing.pdfADC and DAC interfacing.pdf
ADC and DAC interfacing.pdfVikasMahor3
 
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 finalDrVikasMahor
 
UNIT III PROGRAMMABLE PERIPHERAL INTERFACE
UNIT III PROGRAMMABLE PERIPHERAL INTERFACE UNIT III PROGRAMMABLE PERIPHERAL INTERFACE
UNIT III PROGRAMMABLE PERIPHERAL INTERFACE ravis205084
 
MPC of TWT based Transmitter
MPC of TWT based TransmitterMPC of TWT based Transmitter
MPC of TWT based TransmitterAbhishek Sutrave
 
PROGRAMMABLE PERIPHERAL INTERFCAE.ppt
PROGRAMMABLE PERIPHERAL INTERFCAE.pptPROGRAMMABLE PERIPHERAL INTERFCAE.ppt
PROGRAMMABLE PERIPHERAL INTERFCAE.pptkarthik R
 

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

8255 & IO Interfacing.pdf
8255 & IO Interfacing.pdf8255 & IO Interfacing.pdf
8255 & IO Interfacing.pdf
 
8255 PPI
8255 PPI8255 PPI
8255 PPI
 
8255
82558255
8255
 
UNIT- 3.pptx
UNIT- 3.pptxUNIT- 3.pptx
UNIT- 3.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
 
Stepper motor controller using c
Stepper motor controller using cStepper motor controller using c
Stepper motor controller using c
 
Programmable Peripheral Devices
Programmable Peripheral Devices Programmable Peripheral Devices
Programmable Peripheral Devices
 
7 8255
7 82557 8255
7 8255
 
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 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
 
ADC and DAC interfacing.pdf
ADC and DAC interfacing.pdfADC and DAC interfacing.pdf
ADC and DAC interfacing.pdf
 
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
 
1.ppi 8255
1.ppi 8255 1.ppi 8255
1.ppi 8255
 
UNIT III PROGRAMMABLE PERIPHERAL INTERFACE
UNIT III PROGRAMMABLE PERIPHERAL INTERFACE UNIT III PROGRAMMABLE PERIPHERAL INTERFACE
UNIT III PROGRAMMABLE PERIPHERAL INTERFACE
 
Basic plc 1
Basic plc 1Basic plc 1
Basic plc 1
 
MPC of TWT based Transmitter
MPC of TWT based TransmitterMPC of TWT based Transmitter
MPC of TWT based Transmitter
 
PPI-MECHATRONICS
PPI-MECHATRONICSPPI-MECHATRONICS
PPI-MECHATRONICS
 
Unit-IV.pptx
Unit-IV.pptxUnit-IV.pptx
Unit-IV.pptx
 
PROGRAMMABLE PERIPHERAL INTERFCAE.ppt
PROGRAMMABLE PERIPHERAL INTERFCAE.pptPROGRAMMABLE PERIPHERAL INTERFCAE.ppt
PROGRAMMABLE PERIPHERAL INTERFCAE.ppt
 
8255 PPI.pptx
8255 PPI.pptx8255 PPI.pptx
8255 PPI.pptx
 

Recently uploaded

CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordAsst.prof M.Gokilavani
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINESIVASHANKAR N
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Bookingdharasingh5698
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfKamal Acharya
 
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
 
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
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performancesivaprakash250
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Christo Ananth
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingrknatarajan
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduitsrknatarajan
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdfankushspencer015
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...ranjana rawat
 
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
 
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
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Christo Ananth
 
Glass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesGlass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesPrabhanshu Chaturvedi
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...ranjana rawat
 

Recently uploaded (20)

CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
 
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
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
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...
 
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
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
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
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduits
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
 
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...
 
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)
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
 
Glass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesGlass Ceramics: Processing and Properties
Glass Ceramics: Processing and Properties
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
 

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 11–19 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 11–23 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 11–23 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 11–24. • 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 11–24 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.