Documente Academic
Documente Profesional
Documente Cultură
Background:
Parallel Part
A parallel port is a type of socket found on personal computers for interfacing with various peripherals.
It is also known as a printer port or Centronics port (this name came from a popular printer
manufacturing company 'Centronics' who devised some standards for parallel port). PC parallel port can
be very useful I/O channel for connecting your own circuits to PC.
PC parallel port is 25 pin D-shaped female connector in the back of the computer. Not all 25 are needed
always. Usually you can easily do with only 8 output pins (data lines) and signal ground.
The original IBM-PC’s parallel port had a total of 12 digital outputs and 5 digital inputs accessed via 3
consecu8ve 8-bit ports in the processor’s I/O space.
Lab Work:
Part1:
• Connect 8 LEDs to the data port of the parallel port as shown in the figure.
• Write an assembly language program that sends logic 1’s to the DATA port pins and test the program.
a. When user presses ‘1’ on the keyboard , the LEDs light from right to le>
b. When user presses ‘2’ on the keyboard , the LEDs light from le> to right
Part2:
• Connect 8 LEDs as in part 1 and connect a switch as shown in the following figure