+display +sn74ls47
Hi Ericmar,
First, here's a link to a datasheet:
**broken link removed**
Now, do you realise that the segment outputs of the '47 are
active low? The chip is intended to drive a common anode display - that is, one with all the positive sides of the LED segments joined together and the connecting pin joined directly to +V. The segment outputs of the chip then go to the negative sides of the LED segments, each though a resistor (of about 220 ohms) to limit the current from your 5V supply.
When the segment is activated to light, the chip's output for that segment goes to 0V, letting current flow through the segment from +V, through the segment, through the resistor and finally though the chip to ground.
If the segment is not activated, the output 'floats' as previously mentioned. That is, it is effectively unconnected. So, no current can flow.
See this link for a simple example:
http://www.electronics-lab.com/projects/misc/012/
Note that you
can't easily use a common-cathode display. If you use a pull-up resistor, the output will be forced high (+V, through the resistor) when the segment output is inactive, and pulled low when active. With a common-cathode display connected, this is the opposite of how the device expects to decode the data to 7-segment -
the segments will be inverted - segments will light when they should be off and be off when they should light.
Cheers,
FoxyRick.