Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Example Code needed for driving 8 7 Seg displays.

Status
Not open for further replies.
Advanced Member level 6
Joined
Dec 4, 2012
Messages
4,280
Helped
822
Reputation
1,654
Reaction score
791
Trophy points
1,393
Location
Bangalore, India
Visit site
Activity points
0
Can somebody provide an example code to drive 8 7-Segment displays. The displays' segment pins will be connected to some PORT of PIC. DP will not be used and COmmon pin of 7-Seg is connected to transistors and transistors are controlled for 8 pins of MCU.
 

which controller are you going to use for this project?

just start with your code, then only we can suggest any help in code.
 

I am using PIC18F452. I have never done a 7 - Seg project. I don't know how to drive a multiplexed 7-Seg display(s). All I know is that a lookup table is used for which has 7 seg code for 0 to 9 digits and it is applied to the pins of 7 seg multiplexed displays and the digit displays. To display 52. 2 (equ 7 seg code) is sent to multiplexed data bus and then CC pin of 1st seg is turned ON for a short while and then turned OFF and 5 (equ 7 seg code) is sent to data bus and 2nd seg is turned ON for a while and it is repeated and it appears that both 1st and 2nd didit are on at the same time.
 

I am using PIC18F452. I have never done a 7 - Seg project. I don't know how to drive a multiplexed 7-Seg display(s). All I know is that a lookup table is used for which has 7 seg code for 0 to 9 digits and it is applied to the pins of 7 seg multiplexed displays and the digit displays. To display 52. 2 (equ 7 seg code) is sent to multiplexed data bus and then CC pin of 1st seg is turned ON for a short while and then turned OFF and 5 (equ 7 seg code) is sent to data bus and 2nd seg is turned ON for a while and it is repeated and it appears that both 1st and 2nd didit are on at the same time.


are you using 8 or 3, 7-segment displays??

- - - Updated - - -

are you using 8 or 3, 7-segment displays??


this is the rough schematic diagram for your request.

sam.jpeg

need to connect the display driver IC4511 in between to the controller and 7-segment.

from the driver IC output line (abcdefg) is connected parallel y to all the 7-segments.

and the 7-segment common pins are switched by using the BC547 transistors.

so totally you need to connect 8lines to transistors and 4lines(ABCD) input to the display driver IC, totally 12lines you need to connect from the controller.

- - - Updated - - -

study the IC4511 configurations...
http://www.datasheetcatalog.org/datasheet/nationalsemiconductor/DS005991.PDF
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top