Hi,
I normally attach a resistor and then a LED to an output port pin and then give the LED a
logic one to turn it on. While looking at what other people have done I have found circuits
where the PIC supplied the ground instead of the power (the opposite of what I do.) but more
importantly I found a circuit where the designer sourced the LED with a output port pin but then
supplied the ground with a input port pin thus using two pins on the PIC.
Questions:
Does anyone know why one would source and ground a LED using two ports?
Is there any advantage to doing one way over the other?
I know this is a simple task but, I am curious about this one.
Dave
I normally attach a resistor and then a LED to an output port pin and then give the LED a
logic one to turn it on. While looking at what other people have done I have found circuits
where the PIC supplied the ground instead of the power (the opposite of what I do.) but more
importantly I found a circuit where the designer sourced the LED with a output port pin but then
supplied the ground with a input port pin thus using two pins on the PIC.
Questions:
Does anyone know why one would source and ground a LED using two ports?
Is there any advantage to doing one way over the other?
I know this is a simple task but, I am curious about this one.
Dave