MCLR Pin


Closed Thread
Results 1 to 6 of 6

Thread: MCLR Pin

  1. #1
    Join Date
    Jan 2011
    Location
    Sydney, Australia
    Posts
    166

    Default MCLR Pin

    Hi All,

    All the PIC documentation I have ever read says to tie the MCLR pin to +5V via a 4k7 resistor. If an application will not use the MCLR function (ie no switch to 0V as a manual reset) is it OK to simply wire the MCLR pin directly to +5V or does it still need to go via the 4k7 resistor?

    If the resistor is essential, can someone please explain why?

    Cheers
    Barry

  2. #2
    Join Date
    Dec 2005
    Posts
    1,073


    Did you find this post helpful? Yes | No

    Default Re: MCLR Pin

    My guess would be to limit the current drain to minimal - about 1mA with 4.7K.

  3. #3
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default Re: MCLR Pin

    As there's no protection diode on this pin, it's high likely to limit/help in case of ESD.

    Could be tied to Vdd, or better, assuming your PIC allows it, disable it, and use it as an I/O.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  4. #4
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default Re: MCLR Pin

    The MCLR circuit varies between PIC families.
    You should always consult the datasheet for the PIC you are using.

    For instance, the 12F683 has an internal pull-up on MCLR, so you don't need anything on that pin when MCLR is enabled.

    But when using external circuitry there are two warnings that apply, 1 for pull-up (red box) and 1 for pull-down (Note: ).

    Name:  mclr.JPG
Views: 13358
Size:  77.4 KB
    DT

  5. #5
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default Re: MCLR Pin

    Can't argue against Datasheet, that's for sure... But (cough) let's have some fun and let's play with words a lil bit.

    Voltages applied to the MCLR pin that exceed its
    specification
    can result in both MCLR Resets and
    excessive current beyond the device specification
    during the ESD event. For this reason, Microchip
    recommends that the MCLR pin no longer be tied
    directly to VDD. The use of an RC network, as shown in
    Here's the fun... MCLR IS tied to VDD...
    Absolute Maximum Ratings(†)
    .....
    .....
    Voltage on MCLR with respect to Vss .................................................. ............................................. -0.3V to +13.5V
    Well OK...max spec for MCLR is set 'round 13 volts... well, if this happen... high likely the PIC will burn way before

    [/end smarta55]
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  6. #6
    Join Date
    Feb 2008
    Location
    Michigan, USA
    Posts
    231


    Did you find this post helpful? Yes | No

    Default Re: MCLR Pin

    Found one of those ghost problems that only seems to occur after days of living with it and finally deciding to go to the Forum and seek and answer....

    On my 18F4550, I have been living with 30 second start up times after programming or a reset. As I was typing the question, it occured to me to check if I had put a pull-up on MCLR.....NOPE!

    Disabled the reset option and tada! it works just the way the datasheet says it should. Imagine!

    Another one for the mental library.
    Bo

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts