CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Display multiplexing

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
davt



Joined: 07 Oct 2003
Posts: 66
Location: England

View user's profile Send private message

Display multiplexing
PostPosted: Wed Dec 15, 2004 11:15 am     Reply with quote

Hi all Smile

I have a Pic base project with 7 segment led displays - 0.56" size.
At present I use transistors to switch the common cathodes to ground to turn the relevant digit on. Because the display is not on continuously ie. it is scanned can I dispense with the transistors and use the port pins to ground the cathodes without damaging the pic or reducing its lifespan?
Thanks.
Humberto



Joined: 08 Sep 2003
Posts: 1215
Location: Buenos Aires, La Reina del Plata

View user's profile Send private message

PostPosted: Thu Dec 16, 2004 8:10 am     Reply with quote

First answer is no.
Not sure what do you try to do, considering how cheap a transistor is.
To light-on each segment of the display you need at least 7 - 10mA,
taking the worst case, wich is to display the number '8', you need
7mA x 7seg = 49mA/digit.

Microchip datasheet spec for almost all the line stated a maximum
allowable current of 25mA for driving/sinking.

Hope this help. Very Happy

Humberto
davt



Joined: 07 Oct 2003
Posts: 66
Location: England

View user's profile Send private message

PostPosted: Thu Dec 16, 2004 8:46 am     Reply with quote

Thanks Humberto for your reply.

I do realize that the max current is 25ma but if I am scanning through the 7 seg displays they will only be on for about 2ms.

I thought that the port pins might withstand a 2ms pulse rather than be continuously on.

Dave
Humberto



Joined: 08 Sep 2003
Posts: 1215
Location: Buenos Aires, La Reina del Plata

View user's profile Send private message

PostPosted: Thu Dec 16, 2004 9:18 am     Reply with quote

Hi davt,

I´m sure that if you use a PIC output to sink such pulsed current would
work, but it´s a matter of taste + experience, I´m very conservative and
never will take the risk, just to save $0.02 in a transistor.

Best wishes,

Humberto Very Happy
drh



Joined: 12 Jul 2004
Posts: 192
Location: Hemet, California USA

View user's profile Send private message

PostPosted: Thu Dec 16, 2004 1:09 pm     Reply with quote

If you don't use transistors AND you are debugging with an ICE or ICD, you could accidentally stop the code with the cathodes enabled and blow the PIC output. I would use transistors.
_________________
David
davt



Joined: 07 Oct 2003
Posts: 66
Location: England

View user's profile Send private message

PostPosted: Thu Dec 16, 2004 3:34 pm     Reply with quote

Point taken!
Thanks for all input. Smile

Dave
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group