Professional Documents
Culture Documents
20184223053107
Roll:25
Class 17B
Experiment 2
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.
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.