You are on page 1of 1

Input 0 Input 1 Input 3 Input 4

25 24 23 22 21 20 19 18 17 16 15 14

13 12 11 10 9 8 7 6 5 4 3 2 1

Output 7 330 330 330 330 330 330 330

8 subminiature,low-current (<20ma) LEDs

Standard Male DB25 Connector

330 Output 0

Parallel Port Debugging Aid


Build this into the shell of a male DB25 connector and then plug into an unused parallel port on the target PC. By sending OUT commands to the port, you can enable or disable the various bits; IN instructions are used to sense the state of the four switches. By sprinkling OUTs in your code with various literal patterns to enable the LEDs, you can view the state of your code; by sensing the state of the switches in your code, you can branch to various routines. If you group the three toggle switches into a 3-bit word, you can select one of eight different branches to take. Refer the standard PC literature for port addresses.

Copyright (c) 1981 - 1997, Len Galasso. All rights reserved --- ljg19@idt.net --- http://idt.net/~ljg19/

You might also like