SlideShare a Scribd company logo
Programmable Peripheral Interface Devices Support chips :  8155 ,  8255 ,  8279, 8254 ,  DMA Controller, Interrupt Controller, USART
Programmable Interface Devices used to interface a I/O device to the microprocessor 8085 Programmable I/O  Interface I/O  Devices System Bus
8155  – A multipurpose programmable    interface Designed to be compatible with 8085 It includes 256 bytes of Read/Write memory Three I/O ports Port A Port B Port C A 14-bit timer
Block Diagram - 8155 256 X 8 Static RAM A B C Timer 8 8 6 Port A Port B Port C PA 0-7 PB 0-7 PC 0-5 8 AD 0-7 IO/M CE ALE RD WR Timer CLK TIMER OUT Vcc (+5 V) Vss (0 V) RESET I/O Devices 8085
Application design with 8155 Objectives Interfacing 8155 with 8085 Programming 8155
Interfacing 8085 with 8155 8085 256 X 8 Static RAM A B C Timer 8 8 6 Port A Port B Port C 8 AD 0-7 IO/M CE ALE RD WR RESET A 15 8085 8155
Programming 8155 8155 is a  Programmable  Peripheral Interface 8085 can send data to 8155 using  data bus This data can be For  I/O devices  connected to 8155 Timer  registers of 8155 Instruction/ Command word  for 8155 Commands for 8155 are stored in a 8-bit  Control Register  inside 8155
What type of Commands can be given to 8155? To  configure  the  I/O ports  as Input or Output To  start/stop timer  etc. To use  handshake mode  or not
Control word for 8155 A command/instruction for 8155 is also called  control word This control word is written to  control register  of 8155 Control word of 8155 is of  8-bits
Control Word Definition for 8155 Port A Port B 0, Input 1, Output Port C Interrupt Enable Port A Interrupt Enable Port B 0, Disable 1, Enable Timer D0 D1 D2 D3 D4 D5 D6 D7 D3 D2 PORT C 0  0 ALT1 0  1 ALT2 1  0 ALT3 1  1 ALT4 D7 D6 Timer 0  0 NOP 0  1 Stop 1  0 Stop after TC 1  0 Start
I/O functions of Port C I = Input O = Output STB = Strobe BF = Buffer Full INTR = Interrupt Request ALT D3 D2 PC5 PC4 PC3 PC2 PC1 PC0 ALT1 0  0 I I I I I I ALT2 0  1 O O O O O O ALT3 1  0 O O O STB A BF A INTR A ALT4 1  1 STB B BF B INTR B STB A BF A INTR A
Design an interfacing circuit  to read data from an A/D converter using the  8155A  in the  peripheral mapped I/O . 8085 3-to-8 Decoder A/D Converter Analog Input Digital Input Por t  A AD0-AD7 O 0 O 7 8155 Por t  C Por t  B SOC OE EOC O 2 CE E 2 E 1 A 2 A 1 A 0 A 11 A 12 A 13 A 14 A 15 IO/M RD WR RESET ALE LED Display BF A STB A PC5
Port Addresses of 8155 Chip Selection A7 A6 A5 A4 A3 0  0  0  1  0 = 10H = 11H = 12H = 13H = 14H = 15H A2 A1 A0 Port 0 0 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
Application Programming Logic Configure  8155 8085 sends  SOC  command to ADC 8085 communicates with ADC using PortC in handshake mode 8085  reads  8-bit temperature value from  port A 8085 displays the temperature value on the LED display
1. Configure 8155 I/O Ports Port A as INPUT port Port B as OUTPUT port Port C in ALT3 mode SOC EOC OE ALT D3 D2 PC5 PC4 PC3 PC2 PC1 PC0 ALT3 1  0 O O O STB A BF A INTR A
Control Word for configuration Port A Port B 0, Input 1, Output Port C IE Port A IE Port B 0, Disable 1, Enable Timer D0 D1 D2 D3 D4 D5 D6 D7 D3 D2 PORT C 0  0 ALT1 0  1 ALT2 1  0 ALT3 1  1 ALT4 D7 D6 Timer 0  0 NOP 0  1 Stop 1  0 Stop  after TC 1  0 Start 0 1 0 1 0 0 0 0
Program Instructions for configuration Data Control word :  0A H Port Address Address of Control register :  10 H Instructions MVI A,  0A H OUT  10 H
2. 8085 sends  SOC  command to   ADC A small duration pulse on SOC input of ADC will start conversion process SOC input of ADC is connected to port pin PC5 of Port C (Port address  13 H) Data Data value  20 H followed by  00 H  SOC ALT D3 D2 PC5 PC4 PC3 PC2 PC1 PC0 ALT3 1  0 O O O STB A BF A INTR A 1 0 0 0 0 0
Instructions Start:  MVI A, 20H OUT 13H MVI A, 00H OUT 13H
3. 8085 communicates with ADC   using Port C in handshake mode Port A used to input 8-bit data from ADC Port C used for handshaking EOC OE ALT D3 D2 PC5 PC4 PC3 PC2 PC1 PC0 ALT3 1  0 O O O STB A BF A INTR A
ADC resets  EOC  to  LOW  at end of conversion 8155 sets  BF  to  1  to enable ADC output latch 8085  is  waiting  for  BF  to be  SET  to 1 and Reads   port A  by making  RD  signal active ( 0 ) At the end of read cycle  RD  goes HIGH ( 1 ) This resets  BF  signal to  0 . 8085 waits  for  BF  signal to be  RESET  and starts conversion process again
8085  is  waiting  for  BF To know the status of BF signal 8085 reads status register of 8155 Status register shares same address as control register Status Word Definition X Timer INTEB BFB INTRB INTEA BFA INTRA D7  D6 D5 D4 D3 D2 D1 D0
Program Instructions  8085 reads status register Address of status register : 10H Reads port A if BFA = 1 Output temperature on port B Status: IN 10H   ANI 02H   JZ Status   IN 11H ; Step -4  Reads temperature value   OUT 12H  ;  Step –5  display on LED’s
8085 reads status register Address of status register : 10H Starts conversion again if BFA = 0 Again:  IN 10H   ANI 02H   JNZ Again   JMP Start
Complete Program   MVI A,  0A H   OUT  10 H Start:   MVI A, 20H OUT 13H   MVI A, 00H   OUT 13H Status:  IN 10H   ANI 02H   JZ Status   IN 11H   OUT 12H Again:  IN 10H   ANI 02H   JNZ Again   JMP Start Configure 8155 Start Conversion Read Status register Wait till  BF A  = 1 Read temperature value Display on LED Read status register Wait till  BF A  = 0 Start Conversion again

More Related Content

PPT
8255 ppi
Suraj Bora
 
DOCX
Microprocessor Interfacing and 8155 Features
Srikrishna Thota
 
PPT
Chapter
Manan Patel
 
PPTX
Lec12
siddu kadiwal
 
PPTX
Interfacing of 8255 IC By Er. Swapnil Kaware.
Prof. Swapnil V. Kaware
 
PPTX
26. 8255 control word programming
sandip das
 
8255 ppi
Suraj Bora
 
Microprocessor Interfacing and 8155 Features
Srikrishna Thota
 
Chapter
Manan Patel
 
Interfacing of 8255 IC By Er. Swapnil Kaware.
Prof. Swapnil V. Kaware
 
26. 8255 control word programming
sandip das
 

What's hot (20)

DOC
Microprocessor Basics 8085-8255 ch-5
Neelam Kapoor
 
PPTX
Operation of 8255A
Anuj Yadav
 
PPTX
25. 8255 programmable peripheral interface
sandip das
 
PPTX
Lec13
siddu kadiwal
 
PPT
1204 Ppi 8255
techbed
 
PPTX
8255 PPI
deval patel
 
PPT
Interfacing ics for microprocessor
THANDAIAH PRABU
 
PPT
Ppi 8255
Muhammadalizardari
 
PDF
8085 lab
Nithin Mohan
 
PPT
8255 class
riyasekaran
 
PPTX
8255 Programmable parallel I/O
Muhammed Afsal Villan
 
PPTX
8255 PPI or parallel interface
Akkenaguntla Karthik
 
DOCX
The 8255 PPI
Srikrishna Thota
 
PPT
Interfacing 8255
Anuja Bhakuni
 
PPTX
8155 Basic Concepts
Srinath Kalikivayi
 
PPT
PPI-MECHATRONICS
selvakumar948
 
PPTX
8255:ppi & 8259:pic
Adarsh Patel
 
PPT
8255 Introduction
Sharmila Chidaravalli
 
PPTX
Lec14
siddu kadiwal
 
PPTX
MICROPROCESSORS AND MICROCONTROLLERS
selvakumar948
 
Microprocessor Basics 8085-8255 ch-5
Neelam Kapoor
 
Operation of 8255A
Anuj Yadav
 
25. 8255 programmable peripheral interface
sandip das
 
1204 Ppi 8255
techbed
 
8255 PPI
deval patel
 
Interfacing ics for microprocessor
THANDAIAH PRABU
 
8085 lab
Nithin Mohan
 
8255 class
riyasekaran
 
8255 Programmable parallel I/O
Muhammed Afsal Villan
 
8255 PPI or parallel interface
Akkenaguntla Karthik
 
The 8255 PPI
Srikrishna Thota
 
Interfacing 8255
Anuja Bhakuni
 
8155 Basic Concepts
Srinath Kalikivayi
 
PPI-MECHATRONICS
selvakumar948
 
8255:ppi & 8259:pic
Adarsh Patel
 
8255 Introduction
Sharmila Chidaravalli
 
MICROPROCESSORS AND MICROCONTROLLERS
selvakumar948
 
Ad

Viewers also liked (17)

PDF
8085 microprocessor 8155, 8255
Xavier Institute of Engineering, Mumbai
 
PPTX
8155 GPPI
deval patel
 
PPT
8255_utkarsh_kulshrestha
Utkarsh Kulshrestha
 
PPT
Assembly Language Programming Of 8085
techbed
 
PDF
8085 ppi 8255 and 8155
Nitin Ahire
 
PPTX
Direct memory access (dma) with 8257 DMA Controller
Muhammed Afsal Villan
 
PPTX
Direct Memory Access(DMA)
Page Maker
 
PPT
Display1in mp
Aisu
 
PPTX
Lec11
siddu kadiwal
 
PDF
17443 microprocessor
soni_nits
 
PPT
Io (2)
Aisu
 
DOCX
8085
ersayantan
 
PPTX
peripheral interfacing
Tahrimur Rahman
 
PDF
Unit 5 assembly language programming
Kartik Sharma
 
PDF
Computerin tehnikin undes 1hicheeliin lektsiin huraangui
E-Gazarchin Online University
 
8085 microprocessor 8155, 8255
Xavier Institute of Engineering, Mumbai
 
8155 GPPI
deval patel
 
8255_utkarsh_kulshrestha
Utkarsh Kulshrestha
 
Assembly Language Programming Of 8085
techbed
 
8085 ppi 8255 and 8155
Nitin Ahire
 
Direct memory access (dma) with 8257 DMA Controller
Muhammed Afsal Villan
 
Direct Memory Access(DMA)
Page Maker
 
Display1in mp
Aisu
 
17443 microprocessor
soni_nits
 
Io (2)
Aisu
 
peripheral interfacing
Tahrimur Rahman
 
Unit 5 assembly language programming
Kartik Sharma
 
Computerin tehnikin undes 1hicheeliin lektsiin huraangui
E-Gazarchin Online University
 
Ad

Similar to 1203 Ppi 8155 (20)

PPT
Lecture_8255_MODIfggggggggggggFIED_BY_ME_24-11-2020.ppt
MrRobot26030
 
PPTX
Microprocessor and microcontroller MODULE-4.pptx
namankvlsi
 
PPT
8085 Architecture & Memory Interfacing1
techbed
 
PPTX
8085 microprocessor(1)
Reevu Pal
 
PDF
Microprocessors and Microcontrollers 8086 Pin Connections
Jason J Pulikkottil
 
PDF
Embedded system (Chapter 3) io_port_programming
Ikhwan_Fakrudin
 
PDF
74LS47 / DM74LS47 Datasheet PDF
Datasheet
 
PPTX
Exp 10 Waveform Generation using DAC0808 and 8085.pptx
Manoj Babar
 
PPT
8255.ppt
ArpitaSharma132173
 
PPT
Microcontroller 8051
Rashmi
 
PDF
unit-3-8255.pdf
ShanmukhSaiR
 
PPT
Emb day2 8051
shivamarya55
 
PPSX
Intel 8085 mp
Shaswata Chowdhury
 
PPTX
08 ATmega328P Arduino GPIO input outpt.pptx
HarshalVaidya11
 
PPT
8255 presentaion.ppt
kamlesh deshmukh
 
PDF
Architecture of 8085
Dileep Kumar Tiwari
 
PPTX
1.ppi 8255
MdFazleRabbi18
 
PPTX
Programmable peripheral interface 8255
Marajulislam3
 
PPTX
Control Word
Tahsin Rahman
 
Lecture_8255_MODIfggggggggggggFIED_BY_ME_24-11-2020.ppt
MrRobot26030
 
Microprocessor and microcontroller MODULE-4.pptx
namankvlsi
 
8085 Architecture & Memory Interfacing1
techbed
 
8085 microprocessor(1)
Reevu Pal
 
Microprocessors and Microcontrollers 8086 Pin Connections
Jason J Pulikkottil
 
Embedded system (Chapter 3) io_port_programming
Ikhwan_Fakrudin
 
74LS47 / DM74LS47 Datasheet PDF
Datasheet
 
Exp 10 Waveform Generation using DAC0808 and 8085.pptx
Manoj Babar
 
Microcontroller 8051
Rashmi
 
unit-3-8255.pdf
ShanmukhSaiR
 
Emb day2 8051
shivamarya55
 
Intel 8085 mp
Shaswata Chowdhury
 
08 ATmega328P Arduino GPIO input outpt.pptx
HarshalVaidya11
 
8255 presentaion.ppt
kamlesh deshmukh
 
Architecture of 8085
Dileep Kumar Tiwari
 
1.ppi 8255
MdFazleRabbi18
 
Programmable peripheral interface 8255
Marajulislam3
 
Control Word
Tahsin Rahman
 

More from techbed (20)

PDF
1456.base boot
techbed
 
PDF
1455.ata atapi standards - 1-7
techbed
 
PDF
1454.ata features
techbed
 
PPT
1432.encoding concepts
techbed
 
PDF
Flash cs4 tutorials_2009
techbed
 
PDF
Photoshop tut
techbed
 
PDF
Part 6 debugging and testing java applications
techbed
 
PDF
Lab 7b) test a web application
techbed
 
PDF
Lab 7a) debug a web application
techbed
 
PDF
What is struts_en
techbed
 
PDF
Part 7 packaging and deployment
techbed
 
PDF
Lab 6) package and deploy a j2 ee application
techbed
 
PDF
Lab 5b) create a java server faces application
techbed
 
PDF
Lab 5a) create a struts application
techbed
 
PDF
First java-server-faces-tutorial-en
techbed
 
PDF
Part 5 running java applications
techbed
 
PDF
Part 4 working with databases
techbed
 
PDF
Part 3 web development
techbed
 
PDF
Lab 4) working with databases
techbed
 
PDF
Lab 3) create a web application
techbed
 
1456.base boot
techbed
 
1455.ata atapi standards - 1-7
techbed
 
1454.ata features
techbed
 
1432.encoding concepts
techbed
 
Flash cs4 tutorials_2009
techbed
 
Photoshop tut
techbed
 
Part 6 debugging and testing java applications
techbed
 
Lab 7b) test a web application
techbed
 
Lab 7a) debug a web application
techbed
 
What is struts_en
techbed
 
Part 7 packaging and deployment
techbed
 
Lab 6) package and deploy a j2 ee application
techbed
 
Lab 5b) create a java server faces application
techbed
 
Lab 5a) create a struts application
techbed
 
First java-server-faces-tutorial-en
techbed
 
Part 5 running java applications
techbed
 
Part 4 working with databases
techbed
 
Part 3 web development
techbed
 
Lab 4) working with databases
techbed
 
Lab 3) create a web application
techbed
 

Recently uploaded (20)

PPTX
Gupta Art & Architecture Temple and Sculptures.pptx
Virag Sontakke
 
PPTX
Information Texts_Infographic on Forgetting Curve.pptx
Tata Sevilla
 
PPTX
20250924 Navigating the Future: How to tell the difference between an emergen...
McGuinness Institute
 
PPTX
How to Track Skills & Contracts Using Odoo 18 Employee
Celine George
 
PPTX
Virus sequence retrieval from NCBI database
yamunaK13
 
PPTX
PROTIEN ENERGY MALNUTRITION: NURSING MANAGEMENT.pptx
PRADEEP ABOTHU
 
DOCX
pgdei-UNIT -V Neurological Disorders & developmental disabilities
JELLA VISHNU DURGA PRASAD
 
PDF
Antianginal agents, Definition, Classification, MOA.pdf
Prerana Jadhav
 
PPTX
Sonnet 130_ My Mistress’ Eyes Are Nothing Like the Sun By William Shakespear...
DhatriParmar
 
PPTX
CDH. pptx
AneetaSharma15
 
PPTX
Command Palatte in Odoo 18.1 Spreadsheet - Odoo Slides
Celine George
 
PPTX
How to Close Subscription in Odoo 18 - Odoo Slides
Celine George
 
DOCX
Modul Ajar Deep Learning Bahasa Inggris Kelas 11 Terbaru 2025
wahyurestu63
 
PPTX
Dakar Framework Education For All- 2000(Act)
santoshmohalik1
 
PPTX
How to Manage Leads in Odoo 18 CRM - Odoo Slides
Celine George
 
PPTX
Tips Management in Odoo 18 POS - Odoo Slides
Celine George
 
PPTX
Artificial-Intelligence-in-Drug-Discovery by R D Jawarkar.pptx
Rahul Jawarkar
 
PPTX
CONCEPT OF CHILD CARE. pptx
AneetaSharma15
 
PDF
Health-The-Ultimate-Treasure (1).pdf/8th class science curiosity /samyans edu...
Sandeep Swamy
 
PPTX
Kanban Cards _ Mass Action in Odoo 18.2 - Odoo Slides
Celine George
 
Gupta Art & Architecture Temple and Sculptures.pptx
Virag Sontakke
 
Information Texts_Infographic on Forgetting Curve.pptx
Tata Sevilla
 
20250924 Navigating the Future: How to tell the difference between an emergen...
McGuinness Institute
 
How to Track Skills & Contracts Using Odoo 18 Employee
Celine George
 
Virus sequence retrieval from NCBI database
yamunaK13
 
PROTIEN ENERGY MALNUTRITION: NURSING MANAGEMENT.pptx
PRADEEP ABOTHU
 
pgdei-UNIT -V Neurological Disorders & developmental disabilities
JELLA VISHNU DURGA PRASAD
 
Antianginal agents, Definition, Classification, MOA.pdf
Prerana Jadhav
 
Sonnet 130_ My Mistress’ Eyes Are Nothing Like the Sun By William Shakespear...
DhatriParmar
 
CDH. pptx
AneetaSharma15
 
Command Palatte in Odoo 18.1 Spreadsheet - Odoo Slides
Celine George
 
How to Close Subscription in Odoo 18 - Odoo Slides
Celine George
 
Modul Ajar Deep Learning Bahasa Inggris Kelas 11 Terbaru 2025
wahyurestu63
 
Dakar Framework Education For All- 2000(Act)
santoshmohalik1
 
How to Manage Leads in Odoo 18 CRM - Odoo Slides
Celine George
 
Tips Management in Odoo 18 POS - Odoo Slides
Celine George
 
Artificial-Intelligence-in-Drug-Discovery by R D Jawarkar.pptx
Rahul Jawarkar
 
CONCEPT OF CHILD CARE. pptx
AneetaSharma15
 
Health-The-Ultimate-Treasure (1).pdf/8th class science curiosity /samyans edu...
Sandeep Swamy
 
Kanban Cards _ Mass Action in Odoo 18.2 - Odoo Slides
Celine George
 

1203 Ppi 8155

  • 1. Programmable Peripheral Interface Devices Support chips : 8155 , 8255 , 8279, 8254 , DMA Controller, Interrupt Controller, USART
  • 2. Programmable Interface Devices used to interface a I/O device to the microprocessor 8085 Programmable I/O Interface I/O Devices System Bus
  • 3. 8155 – A multipurpose programmable interface Designed to be compatible with 8085 It includes 256 bytes of Read/Write memory Three I/O ports Port A Port B Port C A 14-bit timer
  • 4. Block Diagram - 8155 256 X 8 Static RAM A B C Timer 8 8 6 Port A Port B Port C PA 0-7 PB 0-7 PC 0-5 8 AD 0-7 IO/M CE ALE RD WR Timer CLK TIMER OUT Vcc (+5 V) Vss (0 V) RESET I/O Devices 8085
  • 5. Application design with 8155 Objectives Interfacing 8155 with 8085 Programming 8155
  • 6. Interfacing 8085 with 8155 8085 256 X 8 Static RAM A B C Timer 8 8 6 Port A Port B Port C 8 AD 0-7 IO/M CE ALE RD WR RESET A 15 8085 8155
  • 7. Programming 8155 8155 is a Programmable Peripheral Interface 8085 can send data to 8155 using data bus This data can be For I/O devices connected to 8155 Timer registers of 8155 Instruction/ Command word for 8155 Commands for 8155 are stored in a 8-bit Control Register inside 8155
  • 8. What type of Commands can be given to 8155? To configure the I/O ports as Input or Output To start/stop timer etc. To use handshake mode or not
  • 9. Control word for 8155 A command/instruction for 8155 is also called control word This control word is written to control register of 8155 Control word of 8155 is of 8-bits
  • 10. Control Word Definition for 8155 Port A Port B 0, Input 1, Output Port C Interrupt Enable Port A Interrupt Enable Port B 0, Disable 1, Enable Timer D0 D1 D2 D3 D4 D5 D6 D7 D3 D2 PORT C 0 0 ALT1 0 1 ALT2 1 0 ALT3 1 1 ALT4 D7 D6 Timer 0 0 NOP 0 1 Stop 1 0 Stop after TC 1 0 Start
  • 11. I/O functions of Port C I = Input O = Output STB = Strobe BF = Buffer Full INTR = Interrupt Request ALT D3 D2 PC5 PC4 PC3 PC2 PC1 PC0 ALT1 0 0 I I I I I I ALT2 0 1 O O O O O O ALT3 1 0 O O O STB A BF A INTR A ALT4 1 1 STB B BF B INTR B STB A BF A INTR A
  • 12. Design an interfacing circuit to read data from an A/D converter using the 8155A in the peripheral mapped I/O . 8085 3-to-8 Decoder A/D Converter Analog Input Digital Input Por t A AD0-AD7 O 0 O 7 8155 Por t C Por t B SOC OE EOC O 2 CE E 2 E 1 A 2 A 1 A 0 A 11 A 12 A 13 A 14 A 15 IO/M RD WR RESET ALE LED Display BF A STB A PC5
  • 13. Port Addresses of 8155 Chip Selection A7 A6 A5 A4 A3 0 0 0 1 0 = 10H = 11H = 12H = 13H = 14H = 15H A2 A1 A0 Port 0 0 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
  • 14. Application Programming Logic Configure 8155 8085 sends SOC command to ADC 8085 communicates with ADC using PortC in handshake mode 8085 reads 8-bit temperature value from port A 8085 displays the temperature value on the LED display
  • 15. 1. Configure 8155 I/O Ports Port A as INPUT port Port B as OUTPUT port Port C in ALT3 mode SOC EOC OE ALT D3 D2 PC5 PC4 PC3 PC2 PC1 PC0 ALT3 1 0 O O O STB A BF A INTR A
  • 16. Control Word for configuration Port A Port B 0, Input 1, Output Port C IE Port A IE Port B 0, Disable 1, Enable Timer D0 D1 D2 D3 D4 D5 D6 D7 D3 D2 PORT C 0 0 ALT1 0 1 ALT2 1 0 ALT3 1 1 ALT4 D7 D6 Timer 0 0 NOP 0 1 Stop 1 0 Stop after TC 1 0 Start 0 1 0 1 0 0 0 0
  • 17. Program Instructions for configuration Data Control word : 0A H Port Address Address of Control register : 10 H Instructions MVI A, 0A H OUT 10 H
  • 18. 2. 8085 sends SOC command to ADC A small duration pulse on SOC input of ADC will start conversion process SOC input of ADC is connected to port pin PC5 of Port C (Port address 13 H) Data Data value 20 H followed by 00 H SOC ALT D3 D2 PC5 PC4 PC3 PC2 PC1 PC0 ALT3 1 0 O O O STB A BF A INTR A 1 0 0 0 0 0
  • 19. Instructions Start: MVI A, 20H OUT 13H MVI A, 00H OUT 13H
  • 20. 3. 8085 communicates with ADC using Port C in handshake mode Port A used to input 8-bit data from ADC Port C used for handshaking EOC OE ALT D3 D2 PC5 PC4 PC3 PC2 PC1 PC0 ALT3 1 0 O O O STB A BF A INTR A
  • 21. ADC resets EOC to LOW at end of conversion 8155 sets BF to 1 to enable ADC output latch 8085 is waiting for BF to be SET to 1 and Reads port A by making RD signal active ( 0 ) At the end of read cycle RD goes HIGH ( 1 ) This resets BF signal to 0 . 8085 waits for BF signal to be RESET and starts conversion process again
  • 22. 8085 is waiting for BF To know the status of BF signal 8085 reads status register of 8155 Status register shares same address as control register Status Word Definition X Timer INTEB BFB INTRB INTEA BFA INTRA D7 D6 D5 D4 D3 D2 D1 D0
  • 23. Program Instructions 8085 reads status register Address of status register : 10H Reads port A if BFA = 1 Output temperature on port B Status: IN 10H ANI 02H JZ Status IN 11H ; Step -4 Reads temperature value OUT 12H ; Step –5 display on LED’s
  • 24. 8085 reads status register Address of status register : 10H Starts conversion again if BFA = 0 Again: IN 10H ANI 02H JNZ Again JMP Start
  • 25. Complete Program MVI A, 0A H OUT 10 H Start: MVI A, 20H OUT 13H MVI A, 00H OUT 13H Status: IN 10H ANI 02H JZ Status IN 11H OUT 12H Again: IN 10H ANI 02H JNZ Again JMP Start Configure 8155 Start Conversion Read Status register Wait till BF A = 1 Read temperature value Display on LED Read status register Wait till BF A = 0 Start Conversion again

Editor's Notes