Pullup resistor for unused pins of a PIC microcontroller?

Status
Not open for further replies.
No, it's wrong!

MCLR is an 'input only' pin on most PICs and it doesn't have an internal pull-up current source simply because it usually doubles as the programming voltage input. It NEEDS a pull-up OR to be actively driven for it to work

Unused pins should never be left floating. The rule is 'if it can be programmed as an output, drive it low', otherwise pull-it up or down. If you can only program the unused pins to be inputs, tie them together and use a single pull-up or pull-down for them.

Brian.
 
Reactions: treez

    T

    Points: 2
    Helpful Answer Positive Rating
Hi,

Setting an unused pin as output_low is uncritical.
No EMI problem.

Klaus
 
Reactions: treez

    T

    Points: 2
    Helpful Answer Positive Rating
Agreed, it's a strange claim to make since presumably, although not essentially, the pin would carry no signal.
You could of course make use of the pin(s) by taking them to test pads and outputting some diagnostic data, for example part of a checksum of the internal program ROM or maybe an indication that some internal process is underway.

I often use 'spare' pins as diagnostic aids, for example toggling them as serial data bytes are been received so I can see the UART is working, even if the rest of the program needs debugging.

Brian.
 
Reactions: treez

    T

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…