You are on page 1of 6

Michael Eluchie

20184223053107 
Roll 25

Experiment 3

Subject: 8255 water light

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

Site: Computer school 509 laboratory

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

Content: Write a program. The A and B ports of the 8255 are all output. The data light only

lights one light at a time from inside to outside. The cycle is displayed twice. Then, from the

outside to the inside, each time two lights are illuminated and the cycle is displayed twice.

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 显示单元): D8~D15.

Unit 8255: PB0~PB7 – Switch and LED display unit: D0~D7.

2. Write the program. Compile, link, load the program. Port address 8255: A port 0680H, B

port 0682H, C port 0684H, command port 0686H.

3. Run the program and observe the LED display.

The deadline for submitting the experiment report is twenty-four on Tuesday, Beijing time.

You might also like