??? 01/11/07 17:51 Read: times |
#130674 - Looks like a point of confusion Responding to: ???'s previous message |
Hi again Hazman,
If you want to use pull up resistors, then you have the LEDs correctly polarized. If you do not want to use pull up resistors, then you will need to turn the LEDs around. In the case of no pull up resistors, you turn the LED off by writing a 1 to the port pin (which lets the port pin float), and you turn the LED on by writing a 0 to the port pin (which provides the ground for your LED circuit). You will also need to make certain that the other end is at Vcc. As you have them drawn they will work if you provide pull up resistors. Of course, now you turn the LED on by writing a 1 to its port pin, and turn it off by writing a 0. However, and this is important, you will need a separate pull up resistor for each port pin. You seem to have drawn it with two (or more) port pins sharing a single pull up resistor. They can not share the same pull up resistor. That would just be shorting all of the port pins together. Good luck, Joe |