Go Back   Home > Forums > Source & Line > Digital Source
Home Forums Rules Articles Store Gallery Blogs Register Donations FAQ Calendar Search Today's Posts Mark Forums Read

Digital Source Digital Players and Recorders: CD , SACD , Tape, Memory Card, etc.

Please consider donating to help us continue to serve you.

Ads on/off / Custom Title / More PMs / More album space / Advanced printing & mass image saving
Reply
 
Thread Tools Search this Thread
Old 4th August 2003, 04:56 PM   #1
diyAudio Member
 
Join Date: Oct 2002
Location: Louisiana, USA
Default What to do with unused MCU I/Os

I'm building a DAC which uses a PIC18F448. The design is not going to require the use of all the I/Os, so I was wondering what the best practice would be with regards to them. Should they be left floating or grounded? Seems to me it would be far wiser to ground them, but maybe I'm missing something.

Stu
  Reply With Quote
Old 4th August 2003, 05:09 PM   #2
bocka is offline bocka  Germany
diyAudio Member
 
Join Date: Jul 2003
Location: Hannover
Use a pull-up resistor or better a resistor-network to +Vdd. About 10k, value is not critical. Never left an input port open untill you're shure it got an internal pull-up or -down
  Reply With Quote
Old 5th August 2003, 07:40 AM   #3
MWP is offline MWP  Australia
diyAudio Member
 
Join Date: Oct 2002
Location: Adelaide, South Australia
Read the PIC manuals... they normally state how unused pins should be connected.

Most newer uC's dont require any pull up/downs.
  Reply With Quote
Old 5th August 2003, 09:56 AM   #4
diyAudio Member
 
Join Date: Aug 2001
Location: Bath, UK
I'd connect the spare IO lines to LEDs to help with code debugging: light them when you reach a breakpoint, that kind of thing.

Nice one,
David.
  Reply With Quote
Old 5th August 2003, 05:36 PM   #5
diyAudio Member
 
Join Date: Dec 2001
Location: Eindhoven
Default Re: What to do with unused MCU I/Os

Quote:
Originally posted by maczrool
I'm building a DAC which uses a PIC18F448. The design is not going to require the use of all the I/Os, so I was wondering what the best practice would be with regards to them. Should they be left floating or grounded? Seems to me it would be far wiser to ground them, but maybe I'm missing something.

Stu

Hi,

Select a PIC that likes to sleep and power it down to sleep mode when unused.

If you want to terminate the pins: Make sure the are logically low, and connect them to ground, as much of them as possible.

regards
__________________
Guido Tent
www.Tentlabs.com
  Reply With Quote
Old 5th August 2003, 06:56 PM   #6
diyAudio Member
 
Join Date: Oct 2002
Location: Louisiana, USA
Thanks everybody! I think I'll ground them then as originally planned.

Stu
  Reply With Quote
Old 5th August 2003, 07:36 PM   #7
diyAudio Member
 
Join Date: Dec 2001
Location: Eindhoven
Quote:
Originally posted by maczrool
Thanks everybody! I think I'll ground them then as originally planned.

Stu

Stu

OK, but realize yourself that it only makes sense once you make them actively low

regards
__________________
Guido Tent
www.Tentlabs.com
  Reply With Quote
Old 5th August 2003, 10:01 PM   #8
diyAudio Member
 
Join Date: Oct 2002
Location: Louisiana, USA
Quote:
Originally posted by Guido Tent



Stu

OK, but realize yourself that it only makes sense once you make them actively low

regards

Hi Guido,

So are you saying it would be just as good to leave it floating if the pins are not used in the code? I just don't want them wandering all over the place, spitting noise into the system and possibly wasting power (this is a battery powered application).

Stu
  Reply With Quote
Old 5th August 2003, 10:24 PM   #9
diyAudio Member
 
seangoesbonk's Avatar
 
Join Date: Jan 2002
Location: Vancouver, BC, Canada
Quote:
Originally posted by maczrool
So are you saying it would be just as good to leave it floating if the pins are not used in the code? I just don't want them wandering all over the place, spitting noise into the system and possibly wasting power (this is a battery powered application).
You can do one of two things with unused I/O pins:

1. Configure them as inputs and connect them to Vdd or Vss via pull up (or down) resistors, or

2. Configure them as outputs, drive them high or low, (in your software) and do not connect them to anything. They will not "wander".

If you make them outputs and connect them to ground (or Vdd), you could have a big problem if the pin is driven high. (on startup or otherwise)

Edit: Check out the "Low Power Solutions Design Center" at Microchip's web site: http://www.microchip.com/1010/suppdo...wpwr/index.htm
__________________
My girlfriend's sub is bigger than mine...
  Reply With Quote
Old 6th August 2003, 01:54 AM   #10
diyAudio Member
 
Join Date: Oct 2002
Location: Louisiana, USA
Quote:
Originally posted by seangoesbonk


You can do one of two things with unused I/O pins:

1. Configure them as inputs and connect them to Vdd or Vss via pull up (or down) resistors, or

2. Configure them as outputs, drive them high or low, (in your software) and do not connect them to anything. They will not "wander".

If you make them outputs and connect them to ground (or Vdd), you could have a big problem if the pin is driven high. (on startup or otherwise)

Edit: Check out the "Low Power Solutions Design Center" at Microchip's web site: http://www.microchip.com/1010/suppdo...wpwr/index.htm

Thanks for the suggestions and the link - very helpful.

Stu
  Reply With Quote

Reply


Hide this!Advertise here!

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
FS: new and unused TDA1541A S1 SSassen Swap Meet 9 20th January 2010 07:02 PM
enABL kit. Unused. nodiak Swap Meet 3 23rd January 2009 07:10 PM
Unused secondaries pilli Parts 8 7th October 2007 10:14 AM
Superclock Ii - Unused leeo666 Swap Meet 0 19th July 2006 11:05 AM


New To Site? Need Help?

All times are GMT. The time now is 11:35 PM.

Page generated in 0.09791 seconds (81.20% PHP - 18.80% MySQL) with 10 queries

Copyright ©1999-2012 diyAudio