All About Circuits Forum  

Go Back   All About Circuits Forum > Electronics Forums > The Projects Forum

Notices

The Projects Forum Working on an electronics project and would like some suggestions, help or critiques? If you would like to comment or assist others with their projects, this is the place to do it.

Reply   Post New Thread
 
Thread Tools Display Modes
  #1  
Old 03-21-2010, 10:58 AM
zorbzz zorbzz is offline
Junior Member
 
Join Date: Jun 2008
Posts: 20
Default common anode to common cathode

HI does anyone know if its possible to use common cathode 7 seg displays in place of common anode displays?
I want to build a 4 digit counter but I only have common cathode displays and the the design requires common anode doh!
The design uses a pic and you can see it on the link below,
The website has the source code aswell maybe that can be changed to support common cathode??

Thanks alot.


http://picprojects.org.uk/projects/counter/counter.htm

Last edited by zorbzz; 03-21-2010 at 11:04 AM.
Reply With Quote
  #2  
Old 03-21-2010, 11:13 AM
Bill_Marsden's Avatar
Bill_Marsden Bill_Marsden is offline
Super Moderator
 
Join Date: Mar 2008
Location: Dallas, TX (GMT-5 w/ DST)
Posts: 19,024
Blog Entries: 5
Default

The datasheets show how to do this. The fairchild version was better, but it has been removed from their website. See page 6 of the attached copy.
Attached Files
File Type: pdf CD4511BC.pdf (73.3 KB, 116 views)
__________________
..
"Good enough is enemy of the best." An old engineering saying, Author unknown.

General info:
If you have a question, please start a thread/topic. I do not provide gratis assistance via PM nor E-mail, as that would violate the intent of this Board, which is sharing knowledge ... and deprives you of other knowledgeable input. Thanks for the verbage Wookie.
Reply With Quote
  #3  
Old 03-21-2010, 11:56 PM
zorbzz zorbzz is offline
Junior Member
 
Join Date: Jun 2008
Posts: 20
Default

Thanks.
So I just need an transistor on all of the cathodes?

Last edited by zorbzz; 03-22-2010 at 12:26 AM.
Reply With Quote
  #4  
Old 03-22-2010, 12:34 AM
Bill_Marsden's Avatar
Bill_Marsden Bill_Marsden is offline
Super Moderator
 
Join Date: Mar 2008
Location: Dallas, TX (GMT-5 w/ DST)
Posts: 19,024
Blog Entries: 5
Default

Not if you're using common cathode. The datasheets show how to use this chip for either display. In the case of a common cathode display you will a transistor for every segment as a driver, the anodes in other words.

The transistors invert the signal.

A common theme on decoder chips is multiplexing, where you can have one decoder driving several displays. In this case you might have another transistor that selects which display is on at any one time. Pics may have this already incorporated, I'm not up on their capabilities.
__________________
..
"Good enough is enemy of the best." An old engineering saying, Author unknown.

General info:
If you have a question, please start a thread/topic. I do not provide gratis assistance via PM nor E-mail, as that would violate the intent of this Board, which is sharing knowledge ... and deprives you of other knowledgeable input. Thanks for the verbage Wookie.
Reply With Quote
The Following User Says Thank You to Bill_Marsden For This Useful Post:
zorbzz (03-22-2010)
  #5  
Old 03-22-2010, 01:35 AM
zorbzz zorbzz is offline
Junior Member
 
Join Date: Jun 2008
Posts: 20
Default

Thanks bill, I read somewhere that I can modify the code in the pic to make it into a common cathode display instead of the common anode.
Does anyone know how to do this?

The picproject website provides the asm for the project so I might try figure it out, if not ill have to fork out the $$ for the common anode devices as I really like this project.

Pity i just bought 50 common cathode displays!!!
hehe
Reply With Quote
  #6  
Old 03-22-2010, 01:39 AM
blueroomelectronics's Avatar
blueroomelectronics blueroomelectronics is offline
Senior Member
 
Join Date: Jul 2007
Location: Toronto, Canada
Posts: 1,704
Default

I use CC displays in my Dragonfly kit. Schematic is in the manual.
Reply With Quote
  #7  
Old 03-22-2010, 02:01 AM
BMorse's Avatar
BMorse BMorse is offline
Senior Member
 
Join Date: Sep 2009
Location: Vermontville, Michigan (GMT -5)
Posts: 2,658
Blog Entries: 15
Default

Quote:
Originally Posted by zorbzz View Post
Thanks bill, I read somewhere that I can modify the code in the pic to make it into a common cathode display instead of the common anode.
Does anyone know how to do this?

The picproject website provides the asm for the project so I might try figure it out, if not ill have to fork out the $$ for the common anode devices as I really like this project.

Pity i just bought 50 common cathode displays!!!
hehe

in order for it to work with common cathodes, you will have to change all the 1's to 0's and 0's to 1's in this part of the file Counter_Functions.inc :

Code:
    
    retlw    b'00111111'    ;0
    retlw    b'00000110'    ;1
    retlw    b'01011011'    ;2
    retlw    b'01001111'    ;3
    retlw    b'01100110'    ;4
    retlw    b'01101101'    ;5
    retlw    b'01111101'    ;6
    retlw    b'00000111'    ;7
    retlw    b'01111111'    ;8
    retlw    b'01101111'    ;9
    retlw    b'00000000'    ;blank (10)
    retlw    b'01000000'    ;-     (11)
    retlw    b'01010000'    ; r    (12)
    retlw    b'00011000'    ; L    (13)
Select All
as far as I can tell from scanning through the code, that this is the only part that needs to be changed....
B. Morse
__________________
There is no spoon -Neo-
Disclaimer: The example programs,circuits, projects and information I provide or post on this web site are for educational purposes only. By copying anything from this site posted by me, you agree to the "as is" nature of the programs, circuits, information and to the statements listed in this disclaimer.No warranty or liability is expressed or implied. Working with AC /DC voltages can be dangerous and even deadly. Proceed at your own risk!
Reply With Quote
The Following User Says Thank You to BMorse For This Useful Post:
zorbzz (03-22-2010)
  #8  
Old 03-22-2010, 02:10 AM
MMcLaren's Avatar
MMcLaren MMcLaren is offline
Senior Member
 
Join Date: Feb 2010
Location: Michigan, USA
Posts: 641
Default

Just use the same NPN column driver transistors on the common cathodes to retain the active high column enable signals. Connect emitter to ground and collector to common cathode. You'll also need to reverse discrete LEDs D6-D9 and rewire that driver transistor too (emitter to ground and collector to common cathodes). Then change one line in counter_main.inc from bsf flags,invert to bcf flags,invert to reverse the polarity of the segment driver lines.

Regards, Mike

Last edited by MMcLaren; 03-24-2010 at 11:40 AM.
Reply With Quote
The Following User Says Thank You to MMcLaren For This Useful Post:
zorbzz (03-22-2010)
  #9  
Old 03-22-2010, 03:59 AM
zorbzz zorbzz is offline
Junior Member
 
Join Date: Jun 2008
Posts: 20
Default

Thanks heaps everyone for the help, Ill give it a try and see how it turns out.
Seems logical now it has been explained.
Reply With Quote
  #10  
Old 04-28-2010, 05:06 AM
ajish2012 ajish2012 is offline
New Member
 
Join Date: Apr 2010
Posts: 6
Default

Well the answer I would have to give you then is ‘we can’. We can use common cathodes seven segment displays in the place of common anode displays. However the problem here, like always, is that you have no anodes left! Right! Hmm! There is one way you can make it up for that anode shortage. Get some transistors and place it on all of the cathodes!

<snip>

Last edited by bertus; 05-09-2010 at 07:10 PM. Reason: Removed commercial link
Reply With Quote
Reply   Post New Thread

Tags
, ,


Related Site Pages
Section Title
Worksheet Digital display circuits
Textbook 7-segment display : Digital Integrated Circuits


Similar Threads
Thread Thread Starter Forum Replies Last Post
common anode LED display problem kuxz2008 General Electronics Chat 12 11-23-2009 05:42 AM
common cathode LED display limiting resistor? jlon General Electronics Chat 6 08-30-2009 01:32 AM
Power for 7 segment display COMMON CATHODE dyeraaron The Projects Forum 2 11-11-2008 01:44 PM
is 02421PL a common cathode 7-segment display? mdew_47 The Projects Forum 2 11-07-2008 06:07 PM
Identifying a part... Gate, Anode, & Cathode iONic General Electronics Chat 2 08-10-2008 01:22 AM

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:34 AM.


User-posted content, unless source quoted, is licensed under a Creative Commons Public Domain License.
Powered by vBulletin
Copyright ©2000 - 2014, vBulletin Solutions, Inc.