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

inputs for the microcontroller

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



Joined: 15 Jan 2009
Posts: 60

View user's profile Send private message Visit poster's website

inputs for the microcontroller
PostPosted: Mon Mar 08, 2010 11:46 pm     Reply with quote

Hi,
How many outputs can we take from one pin of the microcontroller that will not affect the normal operation of the microcontroller?
_________________
embedding innovation in engineers
SherpaDoug



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

View user's profile Send private message

PostPosted: Tue Mar 09, 2010 8:49 am     Reply with quote

To see how many inputs the output of a PIC can drive:

1) Find in the PIC datasheet under "Electrical Characteristics" the maximum current you can get from a pin (usually 25mA). If you are using more than 1 pin in a port also find the max current for the port (usually 50ma).

2) Next find in the datasheet the graph of voltage vs current, with a name like "TYPICAL, MINIMUM AND MAXIMUM VOH vs. IOH (VDD = 3V, -40°C TO +125°C)".

3) For all your loads find the voltage they need to operate and the current they draw at that voltage.

4) Add up the currents the loads draw at the highest load's voltage.

5) Make sure that current is below the pin and port limits.

6) Make sure from the graph that the PIC will supply enough voltage at that current.

7) If high speed is important you must add up the capacitance of the loads, and an estimate of the wiring capacitance. Use T=RC to estimate the time delay that capacitance will cause.
_________________
The search for better is endless. Instead simply find very good and get the job done.
dyeatman



Joined: 06 Sep 2003
Posts: 1933
Location: Norman, OK

View user's profile Send private message

PostPosted: Tue Mar 09, 2010 9:15 am     Reply with quote

He might also want to make sure his power supply can handle the additional load without sagging or spiking...
_________________
Google and Forum Search are some of your best tools!!!!
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