and what makes the current not flow thru any of them when the pin is in INPUT?
and what makes the current not flow thru any of them when the pin is in INPUT?
From a data sheet.
http://en.wikipedia.org/wiki/High_impedanceSetting a
TRISA bit (= 1) will make the corresponding PORTA pin
an input (i.e., put the corresponding output driver in a
Hi-Impedance mode)
Dave
Always wear safety glasses while programming.
1,0
0,1
0,0
LEDs on these states won't be possible by one pin.
Instead, use 4017 with one pin.
I have an example here:
http://www.picbasic.co.uk/forum/showthread.php?t=6548&
"If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte
Jumper,
You can use "one LED" only like the one in the link below. This is pretty much two LEDs put together. It is a red-green 3mm LED.
http://futurlec.com/LED/LED3RG.shtml
However, the bad news is that Sayzer is right. You can't get three states "0,0", "0,1", and "1,0" with only one MCU pin.
Robert
Last edited by ScaleRobotics; - 13th July 2010 at 22:48.
I think this page explains what Walter is doing pretty well ...
http://www.batsocks.co.uk/readme/p_tut_led16.htm
DT
Last edited by sayzer; - 16th July 2010 at 12:24. Reason: typo
"If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte
Bookmarks