You are on page 1of 4

Michael Eluchie

20184223053107

Roll:25

Class 17B

Experiment 2

Subject: 8255 input and output

Date and Time: 2020-10-15 13:20~16:20

Site: Computer school 509 laboratory

Purpose: master the working mode of 8255 and application programming.

Content: Write the program, input data from the B port of the 8255, output the A port, and

complete the data transmission from the toggle switch to the data light.

1. Connect the experimental circuit.

Unit(单元) 8255: D0~D7 - System bus(系统总线): XD0~XD7.

Unit 8255: A0 - System Bus: XA1.

Unit 8255: A1 - System Bus: XA2.

Unit 8255: WR - System Bus: IOW#.

Unit 8255: RD - System Bus: IOR#.

Unit 8255: CS - System Bus: IYO2.

Unit 8255:PA0~PA7– Switch and LED display unit(开关及 LED 显示单元):D0~D7.

Unit 8255: PB0~PB7 – Switch and LED display unit: K0~K7.

2. Write the program to realize the input of the roll number from the switch. Cycle left shift a

bit, after a short delay, show it on the data light. Compile, link, load the program. Port

address 8255: A port 0680H, B port 0682H, C port 0684H, command port 0686H.

3. Run the program, change the toggle switch, and observe the LED display.
The deadline for submitting the experiment report is twenty-four on Tuesday, Beijing time.

You might also like