Purpose : The main purpose of this project is to use a DB25 connnector and make one or more LEDs light up using the computer's parallel port and pascal programming language.
Hypothesis : It is possible to light up LEDs using computer's parallel port and pascal programming language. When you send commands like 'writeport(888, 255);' all the lights connected to pins D0 to D7 will light up.
Materials :
Procedure :
Diagram : Take a look at the following diagram to properly wire your LEDs.
Observation / Results : After I finished constructing the hardware, I made a really simple sophisticated Pascal program that will ask the user how many times do they want the LEDs to blink and whether they want both LEDs to blink or alternate LEDs to blink. When I attached the DB25 connector to the computer's parallel port, and executed the Pascal program, my LEDs blinked the way I wanted.
Conclusion : As I hypothesized in the begining, it is possible to use computer's parallel port and DB25 connector along with other tools to light up LEDs using Pascal programming language. It is also possible to take input from the parallel port and use it to run the program. Command 'writeport(888, 255);' did indeed send power to all the pins between and including 'D0' and 'D7.'