SlideShare a Scribd company logo
1 of 11
Experiment No. 7
I/O & BSR Mode of 8255
PROBLEM 1)
1. Assume I/O addresses of PA, PB, PC & CWR are 80H-83H
respectively. Write an ALP to configure port A and port CL as
output ports and port B and port CU as input ports in mode 0.
2. Read switch positions connected to port A and turn on the
respective LEDs of port B.
Statement:
1. Assume I/O addresses of PA, PB, PC & CWR are 80H-83H
respectively. Write an ALP to configure port A as Input port and
port B as Output port in mode 0. Read 8-bit Port A status and
send on to Port B continuously.
Flow Chart
Start
Get CWR I/O Mode format into Acc
Read Port A status
Send on to Port B
Send to CWR
Address Label Instruction Opcode
6700, 1 MVI A, 90H 3E, 90
2, 3 OUT CWR D3, 83
4, 5 IN PA DB, 80
6, 7 OUT PB D3, 81
8, 9, A JMP UP C3, 04, 67
B RST1 CF
UP:
Statement:
1. Assume I/O addresses of PA, PB, PC & CWR are 80H-83H
respectively. Write an ALP to SET PC2 & PC5 bit of Port C.
Flow Chart Start
Get I/O Mode format to make all ports as
output into Acc.
Get BSR Mode format to SET PC2 into Acc.
Send to CWR
Send to CWR
Get BSR Mode format to SET PC5 into Acc.
Send to CWR
Stop
Address Label Instruction Opcode
6700, 1 MVI A, 80H 3E, 80
2, 3 OUT CWR D3, 83
4, 5 MVI A, 05H 3E, 05
6, 7 OUT PB D3, 83
8, 9 MVI A, 0BH 3E, 0B
A, B OUT PB D3, 83
C RST1 CF

More Related Content

Similar to Exp 7 IO & BSR Mode.pptx

Io (2)
Io (2)Io (2)
Io (2)Aisu
 
Microprocessor Interfacing and 8155 Features
Microprocessor Interfacing and 8155 FeaturesMicroprocessor Interfacing and 8155 Features
Microprocessor Interfacing and 8155 FeaturesSrikrishna Thota
 
Microprocessor Basics 8085-8255 ch-5
Microprocessor Basics 8085-8255 ch-5Microprocessor Basics 8085-8255 ch-5
Microprocessor Basics 8085-8255 ch-5Neelam Kapoor
 
Unit iii microcontrollers final1
Unit iii microcontrollers final1Unit iii microcontrollers final1
Unit iii microcontrollers final1Saritha Reddy
 
1204 Ppi 8255
1204 Ppi 82551204 Ppi 8255
1204 Ppi 8255techbed
 
Interfacing of 8255 IC By Er. Swapnil Kaware.
Interfacing of 8255 IC By Er. Swapnil Kaware.Interfacing of 8255 IC By Er. Swapnil Kaware.
Interfacing of 8255 IC By Er. Swapnil Kaware.Prof. Swapnil V. Kaware
 
Mod-2 M&M.pptx
Mod-2 M&M.pptxMod-2 M&M.pptx
Mod-2 M&M.pptxTechCook1
 
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
 
Microprocessor based Temperature Controller
Microprocessor based Temperature ControllerMicroprocessor based Temperature Controller
Microprocessor based Temperature ControllerRevanth Reddy
 
Embedded system (Chapter 3) io_port_programming
Embedded system (Chapter 3) io_port_programmingEmbedded system (Chapter 3) io_port_programming
Embedded system (Chapter 3) io_port_programmingIkhwan_Fakrudin
 
1203 Ppi 8155
1203 Ppi 81551203 Ppi 8155
1203 Ppi 8155techbed
 
26. 8255 control word programming
26. 8255 control word programming26. 8255 control word programming
26. 8255 control word programmingsandip das
 
8255 Programmble Peripheral Interface
8255 Programmble Peripheral Interface8255 Programmble Peripheral Interface
8255 Programmble Peripheral InterfaceAmit Kumer Podder
 
Unit 3-1 (1)
Unit 3-1 (1)Unit 3-1 (1)
Unit 3-1 (1)Vasu Ch
 

Similar to Exp 7 IO & BSR Mode.pptx (20)

Io (2)
Io (2)Io (2)
Io (2)
 
Microprocessor Interfacing and 8155 Features
Microprocessor Interfacing and 8155 FeaturesMicroprocessor Interfacing and 8155 Features
Microprocessor Interfacing and 8155 Features
 
Interfacing 8255
Interfacing 8255Interfacing 8255
Interfacing 8255
 
Microprocessor Basics 8085-8255 ch-5
Microprocessor Basics 8085-8255 ch-5Microprocessor Basics 8085-8255 ch-5
Microprocessor Basics 8085-8255 ch-5
 
Unit iii microcontrollers final1
Unit iii microcontrollers final1Unit iii microcontrollers final1
Unit iii microcontrollers final1
 
1204 Ppi 8255
1204 Ppi 82551204 Ppi 8255
1204 Ppi 8255
 
Interfacing of 8255 IC By Er. Swapnil Kaware.
Interfacing of 8255 IC By Er. Swapnil Kaware.Interfacing of 8255 IC By Er. Swapnil Kaware.
Interfacing of 8255 IC By Er. Swapnil Kaware.
 
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
 
8255.ppt
8255.ppt8255.ppt
8255.ppt
 
8255 PPI
8255 PPI8255 PPI
8255 PPI
 
Microprocessor based Temperature Controller
Microprocessor based Temperature ControllerMicroprocessor based Temperature Controller
Microprocessor based Temperature Controller
 
Embedded system (Chapter 3) io_port_programming
Embedded system (Chapter 3) io_port_programmingEmbedded system (Chapter 3) io_port_programming
Embedded system (Chapter 3) io_port_programming
 
1203 Ppi 8155
1203 Ppi 81551203 Ppi 8155
1203 Ppi 8155
 
26. 8255 control word programming
26. 8255 control word programming26. 8255 control word programming
26. 8255 control word programming
 
8255 Programmble Peripheral Interface
8255 Programmble Peripheral Interface8255 Programmble Peripheral Interface
8255 Programmble Peripheral Interface
 
Unit 3-1 (1)
Unit 3-1 (1)Unit 3-1 (1)
Unit 3-1 (1)
 
8255 programming
8255 programming8255 programming
8255 programming
 
Binary to bcd
Binary to bcdBinary to bcd
Binary to bcd
 
2.instrumentation ii
2.instrumentation ii2.instrumentation ii
2.instrumentation ii
 

More from Manoj Babar

Exp 10 Waveform Generation using DAC0808 and 8085.pptx
Exp 10 Waveform Generation using DAC0808 and 8085.pptxExp 10 Waveform Generation using DAC0808 and 8085.pptx
Exp 10 Waveform Generation using DAC0808 and 8085.pptxManoj Babar
 
Exp 8 LED Blinking using 8255.pptx
Exp 8 LED Blinking using 8255.pptxExp 8 LED Blinking using 8255.pptx
Exp 8 LED Blinking using 8255.pptxManoj Babar
 
Exp 6 Largest & Smallest No..pptx
Exp 6 Largest & Smallest No..pptxExp 6 Largest & Smallest No..pptx
Exp 6 Largest & Smallest No..pptxManoj Babar
 
Exp 5 Even & Odd No. Counting.pptx
Exp 5 Even & Odd No. Counting.pptxExp 5 Even & Odd No. Counting.pptx
Exp 5 Even & Odd No. Counting.pptxManoj Babar
 
Exp 4 Data Conversion (H2B, B2A).pptx
Exp 4 Data Conversion (H2B, B2A).pptxExp 4 Data Conversion (H2B, B2A).pptx
Exp 4 Data Conversion (H2B, B2A).pptxManoj Babar
 
Exp 3 Block Transfer & Block Exchange.pptx
Exp 3 Block Transfer & Block Exchange.pptxExp 3 Block Transfer & Block Exchange.pptx
Exp 3 Block Transfer & Block Exchange.pptxManoj Babar
 
Addition & subtraction using 8085 microprocessor
Addition & subtraction using 8085 microprocessorAddition & subtraction using 8085 microprocessor
Addition & subtraction using 8085 microprocessorManoj Babar
 
8051 addressing modes & instruction set
8051 addressing modes & instruction set8051 addressing modes & instruction set
8051 addressing modes & instruction setManoj Babar
 
8255 mode 1 & 2
8255 mode 1 & 28255 mode 1 & 2
8255 mode 1 & 2Manoj Babar
 

More from Manoj Babar (9)

Exp 10 Waveform Generation using DAC0808 and 8085.pptx
Exp 10 Waveform Generation using DAC0808 and 8085.pptxExp 10 Waveform Generation using DAC0808 and 8085.pptx
Exp 10 Waveform Generation using DAC0808 and 8085.pptx
 
Exp 8 LED Blinking using 8255.pptx
Exp 8 LED Blinking using 8255.pptxExp 8 LED Blinking using 8255.pptx
Exp 8 LED Blinking using 8255.pptx
 
Exp 6 Largest & Smallest No..pptx
Exp 6 Largest & Smallest No..pptxExp 6 Largest & Smallest No..pptx
Exp 6 Largest & Smallest No..pptx
 
Exp 5 Even & Odd No. Counting.pptx
Exp 5 Even & Odd No. Counting.pptxExp 5 Even & Odd No. Counting.pptx
Exp 5 Even & Odd No. Counting.pptx
 
Exp 4 Data Conversion (H2B, B2A).pptx
Exp 4 Data Conversion (H2B, B2A).pptxExp 4 Data Conversion (H2B, B2A).pptx
Exp 4 Data Conversion (H2B, B2A).pptx
 
Exp 3 Block Transfer & Block Exchange.pptx
Exp 3 Block Transfer & Block Exchange.pptxExp 3 Block Transfer & Block Exchange.pptx
Exp 3 Block Transfer & Block Exchange.pptx
 
Addition & subtraction using 8085 microprocessor
Addition & subtraction using 8085 microprocessorAddition & subtraction using 8085 microprocessor
Addition & subtraction using 8085 microprocessor
 
8051 addressing modes & instruction set
8051 addressing modes & instruction set8051 addressing modes & instruction set
8051 addressing modes & instruction set
 
8255 mode 1 & 2
8255 mode 1 & 28255 mode 1 & 2
8255 mode 1 & 2
 

Recently uploaded

Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...Sapna Thakur
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024Janet Corral
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingTeacherCyreneCayanan
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 

Recently uploaded (20)

Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 

Exp 7 IO & BSR Mode.pptx

  • 1. Experiment No. 7 I/O & BSR Mode of 8255
  • 2.
  • 3.
  • 4. PROBLEM 1) 1. Assume I/O addresses of PA, PB, PC & CWR are 80H-83H respectively. Write an ALP to configure port A and port CL as output ports and port B and port CU as input ports in mode 0. 2. Read switch positions connected to port A and turn on the respective LEDs of port B.
  • 5. Statement: 1. Assume I/O addresses of PA, PB, PC & CWR are 80H-83H respectively. Write an ALP to configure port A as Input port and port B as Output port in mode 0. Read 8-bit Port A status and send on to Port B continuously.
  • 6. Flow Chart Start Get CWR I/O Mode format into Acc Read Port A status Send on to Port B Send to CWR
  • 7. Address Label Instruction Opcode 6700, 1 MVI A, 90H 3E, 90 2, 3 OUT CWR D3, 83 4, 5 IN PA DB, 80 6, 7 OUT PB D3, 81 8, 9, A JMP UP C3, 04, 67 B RST1 CF UP:
  • 8.
  • 9. Statement: 1. Assume I/O addresses of PA, PB, PC & CWR are 80H-83H respectively. Write an ALP to SET PC2 & PC5 bit of Port C.
  • 10. Flow Chart Start Get I/O Mode format to make all ports as output into Acc. Get BSR Mode format to SET PC2 into Acc. Send to CWR Send to CWR Get BSR Mode format to SET PC5 into Acc. Send to CWR Stop
  • 11. Address Label Instruction Opcode 6700, 1 MVI A, 80H 3E, 80 2, 3 OUT CWR D3, 83 4, 5 MVI A, 05H 3E, 05 6, 7 OUT PB D3, 83 8, 9 MVI A, 0BH 3E, 0B A, B OUT PB D3, 83 C RST1 CF