I'm currently building a countdown timer with 4 digits of 7 segment display that are connected to a 8051.
To minimize the cost, instead of using a decoder , is there any other ways to implement this? Can a transistor be used to replace the decoder? If so, what kind of transistor should be used? Any circuits diagram available?
I'm currently building a countdown timer with 4 digits of 7 segment display that are connected to a 8051.
To minimize the cost, instead of using a decoder , is there any other ways to implement this? Can a transistor be used to replace the decoder? If so, what kind of transistor should be used? Any circuits diagram available?
It's easily done, I can't help with 8051 code, but one of my PIC tutorials does this for 2 seven segment displays, the diagram is at - you could easily extend this to four or more, simply use a PNP transistor for each display, each fed from it's own output pin (my two display version only uses one output pin, but you can't do that with more than two).
Depending on your displays (common anode, or common cathode), you may need to use NPN transistors down to ground, rather than PNP fed from +ve.