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

Unused Ports

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







Unused Ports
PostPosted: Thu Apr 10, 2003 2:54 am     Reply with quote

I know this has been answered somewhere else but I've done a search and can't find it. What is the best way to leave unused ports on the 16F877. Set them as outputs?, inputs?, Outputs and loaded with a resistor tied high/low?

Any suggestions

Thanks

Sandyw
___________________________
This message was ported from CCS's old forum
Original Post ID: 13572
Sherpa Doug
Guest







Re: Unused Ports
PostPosted: Thu Apr 10, 2003 6:55 am     Reply with quote

:=I know this has been answered somewhere else but I've done a search and can't find it. What is the best way to leave unused ports on the 16F877. Set them as outputs?, inputs?, Outputs and loaded with a resistor tied high/low?
:=
:=Any suggestions
:=
:=Thanks
:=
:=Sandyw

I generally leave them open as outputs. That way they are not susceptable to noise and are available as diagnostic outputs or for future expansion. If you have space you might even run them to test points.

___________________________
This message was ported from CCS's old forum
Original Post ID: 13574
Neutone



Joined: 08 Sep 2003
Posts: 839
Location: Houston

View user's profile Send private message

Re: Unused Ports
PostPosted: Thu Apr 10, 2003 8:39 am     Reply with quote

:=:=I know this has been answered somewhere else but I've done a search and can't find it. What is the best way to leave unused ports on the 16F877. Set them as outputs?, inputs?, Outputs and loaded with a resistor tied high/low?
:=:=
:=:=Any suggestions
:=:=
:=:=Thanks
:=:=
:=:=Sandyw
:=
:=I generally leave them open as outputs. That way they are not susceptable to noise and are available as diagnostic outputs or for future expansion. If you have space you might even run them to test points.
:=

Microchip has some application notes reguarding low power operations that cover this topic. Inputs (floating) consume more power.
___________________________
This message was ported from CCS's old forum
Original Post ID: 13579
R.J.Hamlett
Guest







Re: Unused Ports
PostPosted: Thu Apr 10, 2003 10:02 am     Reply with quote

:=I know this has been answered somewhere else but I've done a search and can't find it. What is the best way to leave unused ports on the 16F877. Set them as outputs?, inputs?, Outputs and loaded with a resistor tied high/low?
:=
:=Any suggestions
:=
:=Thanks
Either set them as inputs, and provide an external resistor pull up/down, or set them as outputs.
You do not want a pin to float. The section of the chip data sheet, dealing with the 'sleep mode', covers the best way to set pins.

Best Wishes
___________________________
This message was ported from CCS's old forum
Original Post ID: 13583
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

Re: Unused Ports
PostPosted: Thu Apr 10, 2003 12:38 pm     Reply with quote

:=I know this has been answered somewhere else but I've done a search and can't find it. What is the best way to leave unused ports on the 16F877. Set them as outputs?, inputs?, Outputs and loaded with a resistor tied high/low?
:=
------------------------------------------------------

I set them as outputs, and set them low. That way, they're
not floating inputs, which could cause noise inside the PIC,
and as low-level outputs, they can't source any current if
something accidently touches the pins (such as a scope ground
lead, a screwdriver, etc.)

If you want some PIC archives other than this group, go here:
<a href="http://groups.google.com/advanced_group_search" TARGET="_blank">http://groups.google.com/advanced_group_search</a>
Set the group to comp.arch.embedded.piclist
(or to get more articles, set it to comp.arch.embedded.*)
Then in the box for phrases, put: unused inputs
There are several opinions on it, but I like my method best,
for the reasons given above.
___________________________
This message was ported from CCS's old forum
Original Post ID: 13589
sandy wilson
Guest







Re: Unused Ports
PostPosted: Fri Apr 11, 2003 1:48 am     Reply with quote

Thank you everbody for your help.


Sandy
___________________________
This message was ported from CCS's old forum
Original Post ID: 13600
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