Exp 7 IO & BSR Mode.pptx

ManojBabar 44 views 11 slides Nov 07, 2023
Slide 1
Slide 1 of 11
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11

About This Presentation

Exp 7 IO & BSR Mode using 8085


Slide Content

Experiment No. 7 I/O & BSR Mode of 8255

Block diagram of 8255

Control word register (CWR) of 8255

Sample Problems on I/O Mode of 8255 PROBLEM 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. Read switch positions connected to port A and turn on the respective LEDs of port B.

Main problem statement of the experiment on 8255 in simple i/o mode Statement: 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 Flow Chart of I/O mode of 8255 using 8085 microprocessor

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: I/O Mode program of 8255 using 8085 microprocessor

Control word register (CWR) of BSR Mode in 8255

Main problem statement of the experiment on 8255 in simple i/o mode Statement: 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 Flow Chart of I/O mode of 8255 using 8085 microprocessor

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 BSR Mode program of 8255 using 8085 microprocessor
Tags