SlideShare a Scribd company logo
1 of 6
MicroprossesorInterfacing T.Srikrishna,M.Sc,M.Tech,GVP
In what way 8155 and 8156 differs? The Chip Enable (CE) signal is active low for 8155, whereas
it is active high for 8156.
8155 is a multifunction or Multipurpose Programmable device.
It contains RAM, I/O port and timer.
8155 features:
1. Two programmable 8 bit i/o ports
2. One programmable 6 bit i/o ports
3. One programmable 14 bit binary counter and timer.
4. 2kbits static RAM 256x8.
5. Address bus AD0- AD7
6. It contains an internal select logic for memory and i/o using a command register and two i/o
ports.
7. It can be easily interfaced with 8085 microprocessor.
PIN Diagram
1. AD0-AD: - Address/Data bus multiplexed
2. RESET:- RESET input
3. CE bar:- chip enable
4. ALE:- Arithmetic latch enable
5. RD-bar:- Read input
6. WR-bar:- Write input
7. IO/M-bar:- I/O or memory
8. PA0-PA7:- Port A
9. PB0-PB7:- Port B
10. PC0-PC7:- Port C
11. TIMER-IN: Timer input signal
12. TIMER-OUT-bar: Timer output
This section has 256x8 Memory. It means 256 location of 8 bit each.
When CE-bar=0, IO/M-bar=0 and ALE is activated the address in AD0-AD7 are latched and will
be provided to 256 memory location.
MicroprossesorInterfacing T.Srikrishna,M.Sc,M.Tech,GVP
A2 A1 A0 Port
0 0 0 Command/status reg.
0 0 1 PA
0 1 0 PB
0 1 1 PC
1 0 0 Timer LSB
1 0 1 Timer MSB
D7 D6 D5 D4 D3 D2 D1 D0
Timer command IEB IEA PC (ALT1 and ALT0) PB PA
Control register also called command register.
It is a 8-bit which defines different functions.
It defines the function of different ports such as input, output or handshaking mode.
It also defines timer command for timer to start and stop.
The different combinations on the address lines A2, A1, A0 select one of the above, as shown:
A2
0
A1
0
A0
0 ===>> Control/Status Register
0 0 1 ===>> Port A
0 1 0 ===>> Port B
0 1 1 ===>> Port C
1 0 0 ===>> LSB Timer
1 0 1 ===>> MSB Timer
It is to be noted that the control/status register is having the same address 20H,
But the control register is accessed with WR’ = 0 and RD’ = 1.
For status register access, WR’= 1 and RD’ = 0. The control register can never be read.
MicroprossesorInterfacing T.Srikrishna,M.Sc,M.Tech,GVP
The other five (viz., A7 to A3) on the address lines are as: 0 0 1 0 0. Thus
A7
0
A6
0
A5
1
A4
0
A3
0
A2
0
A1
0
A0
0
===>> Address
20H
— Register/Port/Timer
Control/Status register
0 0 1 0 0 0 0 1 ===>> 21H — Port A
0 0 1 0 0 0 1 0 ===>> 22H — Port B
0 0 1 0 0 0 1 1 ===>> 23H — Port C
0 0 1 0 0 1 0 0 ===>> 24H — LSB timer
0 0 1 0 0 1 0 1 ===>> 25H — MSB timer
The control register contains eight bits.
The content of the lower 2 bits, D1 – D0 configure ports A and B as input/output.
MicroprossesorInterfacing T.Srikrishna,M.Sc,M.Tech,GVP
Bits D3 and D2 configure bits PC0 – PC5 of port C (Port C is a 6-bit port while ports A and B both
are of 8-bits) and can have four combinations—ALT1, ALT2, ALT3, ALT4 depending on the
combinations of D3 and D2.
Bits D5 and D4 are enable/disable pins for ports A and B respectively which enable/ disable the
internal flip-flop of 8155. Bits D7 and D6 contain the timer commands.
As already mentioned, combinations of D3 – D2 bits give rise to ALT1 to ALT4 modes, which
assigns port C bits in different configurations and shown below
Port C pin assignment
Pin ALT1 ALT2 ALT3 ALT4
PC0
PC1
PC2
PC3
PC4
PC5
Input Port
Input Port
Input Port
Input Port
Input Port
Input Port
Output Port
Output Port
Output Port
Output Port
Output Port
Output Port
A INTR (Port A Interrupt)
A BF (Port A Buffer Full)
A STB(Port A Strobe)
Output Port
Output Port
Output Port
A INTR (Port A Interrupt)
A BF (Port A Buffer Full)
A STB(Port A Strobe)
B INTR (Port B Interrupt)
B BF (Port Buffer Full)
B STB(Port B Strobe)
ALT1 and ALT2 correspond to simple input/output of Port C respectively.
In ALT3 mode, PC0 – PC2 bits are used as control signals for port A, while pins PC3 –
PC5 act as output pins.
In ALT4 mode, PC0 – PC2 bits are used as control signals for port A, while PC3 – PC5
bits are used as control signals for port B.
MicroprossesorInterfacing T.Srikrishna,M.Sc,M.Tech,GVP
It has seven bits. Bit D7 is the ‘don’t care’ bit. Bit D6 contains the status of the timer.
Bits D5 – D3 concern to status of port B while bits D2 – D0 to that of Port A.
The 8155 timer consists of two 8-bit registers.
1. 8-bit LSB and 8-bit MSB.
2. In these 16 bits, 14 bits are used for counter and two bits (M2 and M1) for mode selection.
3. The counter is a 14 bit down counter. It can operate in 4 different modes of operation.
Timer MSB:
M2 M1 T13 T12 T11 T10 T9 T8
Timer LSB:
T7 T6 T5 T4 T3 T2 T1 T0
Mode 0: In this mode, timer gives only one cycle of square wave, the output remains high for
1/2 count and remain s low for 1/2 count. Wave width depends on two factor: one is Input clock
pulse frequency, and the other is count loaded in counter.
Mode 1: This mode is similar to single square wave in operation but the when counter becomes
zero, the count value is automatically reloaded. Thus it provides continuous square wave.
Mode 2: This mode gives a single clock pulse as a output of the end of the count. The output is
high normally, but it becomes low for 1 clock pulse and again it will become high and remain
high.
Mode 3: This mode is similar to mode 2 but when the counter becomes zero the count value is
automatically reloaded. Thus it provides continuous pulses.
MicroprossesorInterfacing T.Srikrishna,M.Sc,M.Tech,GVP

More Related Content

What's hot

Memory organization of 8051
Memory organization of 8051Memory organization of 8051
Memory organization of 8051Muthu Manickam
 
4.programmable dma controller 8257
4.programmable dma controller 82574.programmable dma controller 8257
4.programmable dma controller 8257MdFazleRabbi18
 
Interfacing of io device to 8085
Interfacing of io device to 8085Interfacing of io device to 8085
Interfacing of io device to 8085Nitin Ahire
 
Microprocessor and Microcontroller Anna University Answer Key April / May - 2015
Microprocessor and Microcontroller Anna University Answer Key April / May - 2015Microprocessor and Microcontroller Anna University Answer Key April / May - 2015
Microprocessor and Microcontroller Anna University Answer Key April / May - 2015JCT COLLEGE OF ENGINEERING AND TECHNOLOGY
 
8086 pin details
8086 pin details8086 pin details
8086 pin detailsAJAL A J
 
Architecture of 8051
Architecture of 8051Architecture of 8051
Architecture of 8051hello_priti
 
8051 microcontroller
8051 microcontroller 8051 microcontroller
8051 microcontroller Gaurav Verma
 
8085 microproceesor ppt
8085 microproceesor ppt8085 microproceesor ppt
8085 microproceesor pptRJ Aniket
 
Sensor interfacing in 8051
Sensor interfacing in 8051Sensor interfacing in 8051
Sensor interfacing in 8051Irfan Ahmad
 
8051 Microcontroller Notes
8051 Microcontroller Notes8051 Microcontroller Notes
8051 Microcontroller NotesDr.YNM
 
8051 Microcontroller ppt
8051 Microcontroller ppt8051 Microcontroller ppt
8051 Microcontroller pptRahul Kumar
 
8259 Programmable Interrupt Controller
8259 Programmable Interrupt Controller8259 Programmable Interrupt Controller
8259 Programmable Interrupt Controllerabhikalmegh
 
8086 microprocessor-architecture
8086 microprocessor-architecture8086 microprocessor-architecture
8086 microprocessor-architectureprasadpawaskar
 
Instruction set of 8086
Instruction set of 8086Instruction set of 8086
Instruction set of 80869840596838
 

What's hot (20)

Interfacing 8255
Interfacing 8255Interfacing 8255
Interfacing 8255
 
Memory organization of 8051
Memory organization of 8051Memory organization of 8051
Memory organization of 8051
 
8086 memory segmentation
8086 memory segmentation8086 memory segmentation
8086 memory segmentation
 
4.programmable dma controller 8257
4.programmable dma controller 82574.programmable dma controller 8257
4.programmable dma controller 8257
 
Interfacing of io device to 8085
Interfacing of io device to 8085Interfacing of io device to 8085
Interfacing of io device to 8085
 
Microprocessor and Microcontroller Anna University Answer Key April / May - 2015
Microprocessor and Microcontroller Anna University Answer Key April / May - 2015Microprocessor and Microcontroller Anna University Answer Key April / May - 2015
Microprocessor and Microcontroller Anna University Answer Key April / May - 2015
 
8051 interfacing
8051 interfacing8051 interfacing
8051 interfacing
 
8086 pin details
8086 pin details8086 pin details
8086 pin details
 
8255 Programmable parallel I/O
8255 Programmable parallel I/O 8255 Programmable parallel I/O
8255 Programmable parallel I/O
 
8051 MICROCONTROLLER
8051 MICROCONTROLLER 8051 MICROCONTROLLER
8051 MICROCONTROLLER
 
Architecture of 8051
Architecture of 8051Architecture of 8051
Architecture of 8051
 
8051 microcontroller
8051 microcontroller 8051 microcontroller
8051 microcontroller
 
8085 microproceesor ppt
8085 microproceesor ppt8085 microproceesor ppt
8085 microproceesor ppt
 
Sensor interfacing in 8051
Sensor interfacing in 8051Sensor interfacing in 8051
Sensor interfacing in 8051
 
8051 Microcontroller Notes
8051 Microcontroller Notes8051 Microcontroller Notes
8051 Microcontroller Notes
 
8051 Microcontroller ppt
8051 Microcontroller ppt8051 Microcontroller ppt
8051 Microcontroller ppt
 
8259 Programmable Interrupt Controller
8259 Programmable Interrupt Controller8259 Programmable Interrupt Controller
8259 Programmable Interrupt Controller
 
8086 microprocessor-architecture
8086 microprocessor-architecture8086 microprocessor-architecture
8086 microprocessor-architecture
 
Instruction set of 8086
Instruction set of 8086Instruction set of 8086
Instruction set of 8086
 
Serial Communication in 8051
Serial Communication in 8051Serial Communication in 8051
Serial Communication in 8051
 

Viewers also liked (8)

8155 Basic Concepts
8155 Basic Concepts8155 Basic Concepts
8155 Basic Concepts
 
8155 GPPI
8155 GPPI8155 GPPI
8155 GPPI
 
1203 Ppi 8155
1203 Ppi 81551203 Ppi 8155
1203 Ppi 8155
 
8085 microprocessor 8155, 8255
8085 microprocessor  8155, 8255 8085 microprocessor  8155, 8255
8085 microprocessor 8155, 8255
 
Lec12
Lec12Lec12
Lec12
 
Data transferschemes
Data transferschemesData transferschemes
Data transferschemes
 
Basics of peripheral devices and Working
Basics of peripheral devices and WorkingBasics of peripheral devices and Working
Basics of peripheral devices and Working
 
List of 8085 programs
List of 8085 programsList of 8085 programs
List of 8085 programs
 

Similar to Microprocessor Interfacing and 8155 Features

Similar to Microprocessor Interfacing and 8155 Features (20)

unit-3-8255.pdf
unit-3-8255.pdfunit-3-8255.pdf
unit-3-8255.pdf
 
Mod-2 M&M.pptx
Mod-2 M&M.pptxMod-2 M&M.pptx
Mod-2 M&M.pptx
 
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
 
Microprocessor Basics 8085-8255 ch-5
Microprocessor Basics 8085-8255 ch-5Microprocessor Basics 8085-8255 ch-5
Microprocessor Basics 8085-8255 ch-5
 
8085-microprocessor
8085-microprocessor8085-microprocessor
8085-microprocessor
 
Programmable peripheral interface 8255
Programmable peripheral interface 8255Programmable peripheral interface 8255
Programmable peripheral interface 8255
 
1.ppi 8255
1.ppi 8255 1.ppi 8255
1.ppi 8255
 
8255 ppi.pptx
8255 ppi.pptx8255 ppi.pptx
8255 ppi.pptx
 
8255-PPI MPMC text book for engineering.ppt
8255-PPI MPMC text book for engineering.ppt8255-PPI MPMC text book for engineering.ppt
8255-PPI MPMC text book for engineering.ppt
 
2. 8085-Microprocessor.pptx
2. 8085-Microprocessor.pptx2. 8085-Microprocessor.pptx
2. 8085-Microprocessor.pptx
 
Lec14
Lec14Lec14
Lec14
 
8255
82558255
8255
 
Io (2)
Io (2)Io (2)
Io (2)
 
8255 ppi
8255 ppi8255 ppi
8255 ppi
 
8085 architecture
8085 architecture8085 architecture
8085 architecture
 
8255_Ppi new
8255_Ppi new8255_Ppi new
8255_Ppi new
 
8051 Microcontroller -1.pptx
8051 Microcontroller -1.pptx8051 Microcontroller -1.pptx
8051 Microcontroller -1.pptx
 
Unit iii microcontrollers final1
Unit iii microcontrollers final1Unit iii microcontrollers final1
Unit iii microcontrollers final1
 
8255 presentaion.ppt
8255 presentaion.ppt8255 presentaion.ppt
8255 presentaion.ppt
 
Unit 3-1 (1)
Unit 3-1 (1)Unit 3-1 (1)
Unit 3-1 (1)
 

More from Srikrishna Thota

solar energy introduction.pdf
 solar energy introduction.pdf solar energy introduction.pdf
solar energy introduction.pdfSrikrishna Thota
 
8051 Architecture and PIN Configuration.pdf
8051 Architecture and PIN Configuration.pdf8051 Architecture and PIN Configuration.pdf
8051 Architecture and PIN Configuration.pdfSrikrishna Thota
 
Types of Microcontrollers.pdf
Types of Microcontrollers.pdfTypes of Microcontrollers.pdf
Types of Microcontrollers.pdfSrikrishna Thota
 
Addressing modes of 8051.pdf
Addressing modes of 8051.pdfAddressing modes of 8051.pdf
Addressing modes of 8051.pdfSrikrishna Thota
 
Port Organization of 8051 .pdf
Port Organization of 8051 .pdfPort Organization of 8051 .pdf
Port Organization of 8051 .pdfSrikrishna Thota
 
DEVELOPMENT TOOLS FOR MICROCONTROLLERS.pdf
DEVELOPMENT TOOLS FOR MICROCONTROLLERS.pdfDEVELOPMENT TOOLS FOR MICROCONTROLLERS.pdf
DEVELOPMENT TOOLS FOR MICROCONTROLLERS.pdfSrikrishna Thota
 
DAC Interfacing with 8051.pdf
DAC Interfacing with 8051.pdfDAC Interfacing with 8051.pdf
DAC Interfacing with 8051.pdfSrikrishna Thota
 
Interfacing of 8051 with 8255 Programmable Peripheral Interface.pdf
Interfacing of 8051 with 8255 Programmable Peripheral Interface.pdfInterfacing of 8051 with 8255 Programmable Peripheral Interface.pdf
Interfacing of 8051 with 8255 Programmable Peripheral Interface.pdfSrikrishna Thota
 
Seven segment interfacing with 8051.pdf
Seven segment interfacing with 8051.pdfSeven segment interfacing with 8051.pdf
Seven segment interfacing with 8051.pdfSrikrishna Thota
 
interfacing of temperature sensor LM 35 with 8051.pdf
interfacing of temperature sensor LM 35 with 8051.pdfinterfacing of temperature sensor LM 35 with 8051.pdf
interfacing of temperature sensor LM 35 with 8051.pdfSrikrishna Thota
 
BInary Number Representation
 BInary Number Representation BInary Number Representation
BInary Number RepresentationSrikrishna Thota
 
Number Base Conversion Digital Electronics
Number Base Conversion Digital ElectronicsNumber Base Conversion Digital Electronics
Number Base Conversion Digital ElectronicsSrikrishna Thota
 
Digital Electronics Notes
Digital Electronics Notes Digital Electronics Notes
Digital Electronics Notes Srikrishna Thota
 
Analog to Digital Conversion Basics
Analog to Digital Conversion BasicsAnalog to Digital Conversion Basics
Analog to Digital Conversion BasicsSrikrishna Thota
 
8259 programmable interrupt controller
8259 programmable interrupt controller8259 programmable interrupt controller
8259 programmable interrupt controllerSrikrishna Thota
 
8085 interfacing with memory chips
8085 interfacing with memory chips8085 interfacing with memory chips
8085 interfacing with memory chipsSrikrishna Thota
 

More from Srikrishna Thota (19)

solar energy introduction.pdf
 solar energy introduction.pdf solar energy introduction.pdf
solar energy introduction.pdf
 
8051 Architecture and PIN Configuration.pdf
8051 Architecture and PIN Configuration.pdf8051 Architecture and PIN Configuration.pdf
8051 Architecture and PIN Configuration.pdf
 
Types of Microcontrollers.pdf
Types of Microcontrollers.pdfTypes of Microcontrollers.pdf
Types of Microcontrollers.pdf
 
Addressing modes of 8051.pdf
Addressing modes of 8051.pdfAddressing modes of 8051.pdf
Addressing modes of 8051.pdf
 
interrupts of 8051.pdf
interrupts of 8051.pdfinterrupts of 8051.pdf
interrupts of 8051.pdf
 
Port Organization of 8051 .pdf
Port Organization of 8051 .pdfPort Organization of 8051 .pdf
Port Organization of 8051 .pdf
 
DEVELOPMENT TOOLS FOR MICROCONTROLLERS.pdf
DEVELOPMENT TOOLS FOR MICROCONTROLLERS.pdfDEVELOPMENT TOOLS FOR MICROCONTROLLERS.pdf
DEVELOPMENT TOOLS FOR MICROCONTROLLERS.pdf
 
DAC Interfacing with 8051.pdf
DAC Interfacing with 8051.pdfDAC Interfacing with 8051.pdf
DAC Interfacing with 8051.pdf
 
Interfacing of 8051 with 8255 Programmable Peripheral Interface.pdf
Interfacing of 8051 with 8255 Programmable Peripheral Interface.pdfInterfacing of 8051 with 8255 Programmable Peripheral Interface.pdf
Interfacing of 8051 with 8255 Programmable Peripheral Interface.pdf
 
Seven segment interfacing with 8051.pdf
Seven segment interfacing with 8051.pdfSeven segment interfacing with 8051.pdf
Seven segment interfacing with 8051.pdf
 
interfacing of temperature sensor LM 35 with 8051.pdf
interfacing of temperature sensor LM 35 with 8051.pdfinterfacing of temperature sensor LM 35 with 8051.pdf
interfacing of temperature sensor LM 35 with 8051.pdf
 
BInary Number Representation
 BInary Number Representation BInary Number Representation
BInary Number Representation
 
Number Base Conversion Digital Electronics
Number Base Conversion Digital ElectronicsNumber Base Conversion Digital Electronics
Number Base Conversion Digital Electronics
 
Operational amplifiers
Operational amplifiers Operational amplifiers
Operational amplifiers
 
Digital Electronics Notes
Digital Electronics Notes Digital Electronics Notes
Digital Electronics Notes
 
The 8255 PPI
The 8255 PPIThe 8255 PPI
The 8255 PPI
 
Analog to Digital Conversion Basics
Analog to Digital Conversion BasicsAnalog to Digital Conversion Basics
Analog to Digital Conversion Basics
 
8259 programmable interrupt controller
8259 programmable interrupt controller8259 programmable interrupt controller
8259 programmable interrupt controller
 
8085 interfacing with memory chips
8085 interfacing with memory chips8085 interfacing with memory chips
8085 interfacing with memory chips
 

Recently uploaded

Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 
MICROBIOLOGY biochemical test detailed.pptx
MICROBIOLOGY biochemical test detailed.pptxMICROBIOLOGY biochemical test detailed.pptx
MICROBIOLOGY biochemical test detailed.pptxabhijeetpadhi001
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfMahmoud M. Sallam
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxEyham Joco
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentInMediaRes1
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitolTechU
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementmkooblal
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxAvyJaneVismanos
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 

Recently uploaded (20)

Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 
MICROBIOLOGY biochemical test detailed.pptx
MICROBIOLOGY biochemical test detailed.pptxMICROBIOLOGY biochemical test detailed.pptx
MICROBIOLOGY biochemical test detailed.pptx
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdf
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptx
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media Component
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptx
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of management
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptx
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 

Microprocessor Interfacing and 8155 Features

  • 1. MicroprossesorInterfacing T.Srikrishna,M.Sc,M.Tech,GVP In what way 8155 and 8156 differs? The Chip Enable (CE) signal is active low for 8155, whereas it is active high for 8156. 8155 is a multifunction or Multipurpose Programmable device. It contains RAM, I/O port and timer. 8155 features: 1. Two programmable 8 bit i/o ports 2. One programmable 6 bit i/o ports 3. One programmable 14 bit binary counter and timer. 4. 2kbits static RAM 256x8. 5. Address bus AD0- AD7 6. It contains an internal select logic for memory and i/o using a command register and two i/o ports. 7. It can be easily interfaced with 8085 microprocessor. PIN Diagram 1. AD0-AD: - Address/Data bus multiplexed 2. RESET:- RESET input 3. CE bar:- chip enable 4. ALE:- Arithmetic latch enable 5. RD-bar:- Read input 6. WR-bar:- Write input 7. IO/M-bar:- I/O or memory 8. PA0-PA7:- Port A 9. PB0-PB7:- Port B 10. PC0-PC7:- Port C 11. TIMER-IN: Timer input signal 12. TIMER-OUT-bar: Timer output This section has 256x8 Memory. It means 256 location of 8 bit each. When CE-bar=0, IO/M-bar=0 and ALE is activated the address in AD0-AD7 are latched and will be provided to 256 memory location.
  • 2. MicroprossesorInterfacing T.Srikrishna,M.Sc,M.Tech,GVP A2 A1 A0 Port 0 0 0 Command/status reg. 0 0 1 PA 0 1 0 PB 0 1 1 PC 1 0 0 Timer LSB 1 0 1 Timer MSB D7 D6 D5 D4 D3 D2 D1 D0 Timer command IEB IEA PC (ALT1 and ALT0) PB PA Control register also called command register. It is a 8-bit which defines different functions. It defines the function of different ports such as input, output or handshaking mode. It also defines timer command for timer to start and stop. The different combinations on the address lines A2, A1, A0 select one of the above, as shown: A2 0 A1 0 A0 0 ===>> Control/Status Register 0 0 1 ===>> Port A 0 1 0 ===>> Port B 0 1 1 ===>> Port C 1 0 0 ===>> LSB Timer 1 0 1 ===>> MSB Timer It is to be noted that the control/status register is having the same address 20H, But the control register is accessed with WR’ = 0 and RD’ = 1. For status register access, WR’= 1 and RD’ = 0. The control register can never be read.
  • 3. MicroprossesorInterfacing T.Srikrishna,M.Sc,M.Tech,GVP The other five (viz., A7 to A3) on the address lines are as: 0 0 1 0 0. Thus A7 0 A6 0 A5 1 A4 0 A3 0 A2 0 A1 0 A0 0 ===>> Address 20H — Register/Port/Timer Control/Status register 0 0 1 0 0 0 0 1 ===>> 21H — Port A 0 0 1 0 0 0 1 0 ===>> 22H — Port B 0 0 1 0 0 0 1 1 ===>> 23H — Port C 0 0 1 0 0 1 0 0 ===>> 24H — LSB timer 0 0 1 0 0 1 0 1 ===>> 25H — MSB timer The control register contains eight bits. The content of the lower 2 bits, D1 – D0 configure ports A and B as input/output.
  • 4. MicroprossesorInterfacing T.Srikrishna,M.Sc,M.Tech,GVP Bits D3 and D2 configure bits PC0 – PC5 of port C (Port C is a 6-bit port while ports A and B both are of 8-bits) and can have four combinations—ALT1, ALT2, ALT3, ALT4 depending on the combinations of D3 and D2. Bits D5 and D4 are enable/disable pins for ports A and B respectively which enable/ disable the internal flip-flop of 8155. Bits D7 and D6 contain the timer commands. As already mentioned, combinations of D3 – D2 bits give rise to ALT1 to ALT4 modes, which assigns port C bits in different configurations and shown below Port C pin assignment Pin ALT1 ALT2 ALT3 ALT4 PC0 PC1 PC2 PC3 PC4 PC5 Input Port Input Port Input Port Input Port Input Port Input Port Output Port Output Port Output Port Output Port Output Port Output Port A INTR (Port A Interrupt) A BF (Port A Buffer Full) A STB(Port A Strobe) Output Port Output Port Output Port A INTR (Port A Interrupt) A BF (Port A Buffer Full) A STB(Port A Strobe) B INTR (Port B Interrupt) B BF (Port Buffer Full) B STB(Port B Strobe) ALT1 and ALT2 correspond to simple input/output of Port C respectively. In ALT3 mode, PC0 – PC2 bits are used as control signals for port A, while pins PC3 – PC5 act as output pins. In ALT4 mode, PC0 – PC2 bits are used as control signals for port A, while PC3 – PC5 bits are used as control signals for port B.
  • 5. MicroprossesorInterfacing T.Srikrishna,M.Sc,M.Tech,GVP It has seven bits. Bit D7 is the ‘don’t care’ bit. Bit D6 contains the status of the timer. Bits D5 – D3 concern to status of port B while bits D2 – D0 to that of Port A. The 8155 timer consists of two 8-bit registers. 1. 8-bit LSB and 8-bit MSB. 2. In these 16 bits, 14 bits are used for counter and two bits (M2 and M1) for mode selection. 3. The counter is a 14 bit down counter. It can operate in 4 different modes of operation. Timer MSB: M2 M1 T13 T12 T11 T10 T9 T8 Timer LSB: T7 T6 T5 T4 T3 T2 T1 T0 Mode 0: In this mode, timer gives only one cycle of square wave, the output remains high for 1/2 count and remain s low for 1/2 count. Wave width depends on two factor: one is Input clock pulse frequency, and the other is count loaded in counter. Mode 1: This mode is similar to single square wave in operation but the when counter becomes zero, the count value is automatically reloaded. Thus it provides continuous square wave. Mode 2: This mode gives a single clock pulse as a output of the end of the count. The output is high normally, but it becomes low for 1 clock pulse and again it will become high and remain high. Mode 3: This mode is similar to mode 2 but when the counter becomes zero the count value is automatically reloaded. Thus it provides continuous pulses.