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 support@ccsinfo.com

current drive of IO pins

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







current drive of IO pins
PostPosted: Mon Jan 21, 2008 9:46 am     Reply with quote

Hi All,
I need to drive a 75ma load on existing hardware. Has anyone ever used IO pins ganged together to increase the current source/sink capabilities. for example

output_b(0x0f); //set low 4 bits of PORTB

and tie them together to essentially create a 5V source with higher current capability.

Its a reach I know. Just wondering if its possible.
Thanks
Ttelmah
Guest







PostPosted: Mon Jan 21, 2008 9:57 am     Reply with quote

Lots of caveats.
You certainly can do this to some extent. However, remember that when delivering it's maximum output current, a pin is only warranted to give the minimum Voh voltage. So probably something like 4.2v. Then there is a separate specification for the maximum output on _all_ the ports, and on some chips, maxima for the individual ports. There is also the maximum power dissipation figure for the chip, and if each pin is dropping 0.7 to 0.8v, with a total of 80mA drawn, something over 1/4W will be being dissipated by the drivers here, and once you add the chip's output etc., you may start to run into problems here....

Best Wishes
SherpaDoug



Joined: 07 Sep 2003
Posts: 1640
Location: Cape Cod Mass USA

View user's profile Send private message

PostPosted: Mon Jan 21, 2008 10:04 am     Reply with quote

I have the datasheet for the 16C5X PICs on hand. It lists the sourcing limits as 20ma per pin, 40ma per 8 bit port, and 50ma into the VDD pin. So paralleling more than two pins is fruitless. Sinking currents are 25/50/150ma. Your chip may be a little different, but probably not much.
_________________
The search for better is endless. Instead simply find very good and get the job done.
stw
Guest







PostPosted: Mon Jan 21, 2008 10:04 am     Reply with quote

Thanks for the reply. As i said I thought it might be a reach to do something like this. Of course I dont have hardware on the board for this function and was trying to find an easy way out.
rnielsen



Joined: 23 Sep 2003
Posts: 852
Location: Utah

View user's profile Send private message

PostPosted: Mon Jan 21, 2008 10:22 am     Reply with quote

You should use an external driver for higher current requirements. Something like a ULN2003 can deliver 500mA per channel.

Ronald
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