Question about an example in the SX/B help file
![Timothy D. Swieter](https://forums.parallax.com/uploads/userpics/482/n6OIB3WNWVK0M.jpg)
I installed the SX/B package today because I hope to get some of the development tools soon.· I was looking at the time/clock example in the help file.· This example multiplexs the pins on several 7-segement displays.· I understand the logic that is going on in the code.· On the electrical end, it looks like all 7 segments (plus the decimal point) can be on at once meaning a lot of current·will go through the single pin on the cathode - right?·
In the recent issues of Nuts and Volts something similar was done with a PIC, but the code in the article quickly·turn on and back off each segment.·
Any insights·that the community has related to the current draw?· I see the resistors limiting the current.· I have not hooked up a circuit yet,·so I can't say how dim/bright the display is.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Timothy D. Swieter
tdswieter.com
One little spark is all it takes for an idea to explode
In the recent issues of Nuts and Volts something similar was done with a PIC, but the code in the article quickly·turn on and back off each segment.·
Any insights·that the community has related to the current draw?· I see the resistors limiting the current.· I have not hooked up a circuit yet,·so I can't say how dim/bright the display is.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Timothy D. Swieter
tdswieter.com
One little spark is all it takes for an idea to explode
Comments
Assuming a 1.5v forward voltage for the segments the current draw with a 470 series resistor is about 7.4 mA each, 59.5 mA for all eight together -- the SX can handle this.
Really 59.5mA? Hmmm....I need to read the datasheet again. I thought I read that each pin can source or sink 30mA so I would have thought a problem would exist. Perhaps the SX is very tough design. I am looking forward to using them.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Timothy D. Swieter
tdswieter.com
One little spark is all it takes for an idea to explode
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Timothy D. Swieter
tdswieter.com
One little spark is all it takes for an idea to explode
1) What's the maximum # of 7-segment displays that can be multiplexed without excessive flickering or dimness?
2) If I want a 4-6 digit LED display that accepts serial data, can I just use an interrupt and still have things be reliable?
Note that this code is very old (SX/B is much cleaner now) and like the help file example, drives the cathodes directly (you may want to use transistors in your design).