Hi ljcox,
I have decided to use 1x10 method you've suggested since I couldn't visualise and understand fully how the other 2 options function in term of s/w and h/w. Do you want to ask questions about these options to help you understand them?
for this 1x10 method, I still have a few curiosity. I've never use a PNP before so I'm thinking is the current flow from Vcc to PIC?? If so, by setting Ic = 50mA, I'm sure PIC will damaged? No, the current into the PIC is determined by the 560 Ohm resistors. It will be about 4/0.56 = 7 mA That's mean I need another IC, like what eblc1388 suggest use a 7445 connected to PIC?
As for the R value, I'm not too sure since it's PNP, is the calculation as follow correct?
Ic = 5mA (1 segment) x 10 = 50mA Correct
Ib = 50mA/100 = 0.5mA To ensure saturation, you should make it about Ic/10 = 5 mA, hence my 7 mA above
base voltage Vb = 5 - [0.5mA x 560] = 4.7V No, Vb = 5 - 0.7. (but the output port from PIC measured is 2.7v not 5v???) I don't know why you measured 2.7V. Without any load, the PIC should switch between 0V and 5V.
Ve = Vb - Vbe = 4.7 - 0.7 = 4v No, Ve = +5V. The emitter is the one with the arrow.
R = [Ve - 1.7 (1 segment)]/50mA = 46ohm No, R = (5 - 0.2 - 1.7 - 1.6)/0.05 = 30 Ohm. Where 0.2 V is the PNP saturation voltage, 1.7 is the LED voltage and 1.6 is the saturation voltage of the Darlington transistors.
On the driver side, how do you come up with 5.6kohm?? The Darlington transistors have a very high gain, so they don't need much base current. See the data sheet. However, see my comments below. I'm clueless. From the connection, does it mean that the total current of a digit is sinked through GND via transistor NPN? Yes