POR feature and MCLR


Closed Thread
Results 1 to 5 of 5
  1. #1
    xnihilo's Avatar
    xnihilo Guest

    Smile POR feature and MCLR

    Hello,

    On a pic16f684:

    i'm using ra3 as input pin with an external 10k weak pullup. Does it mean the mcu is not reset upon powerup?

    It's not very clear in the datasheet.
    ra3 as internal wpu so why should one use an external wpu to use POR feature???

  2. #2
    Join Date
    Feb 2005
    Location
    Kolkata-India
    Posts
    563


    Did you find this post helpful? Yes | No

    Default Page 33 Section 4.2.1

    4.2.1 WEAK PULL-UPS

    Each of the PORTA pins, except RA3, has an individually
    configurable internal weak pull-up. Control bits
    WPUAx enable or disable each pull-up. Refer to
    Register 4-3. Each weak pull-up is automatically turned
    off when the port pin is configured as an output. The
    pull-ups are disabled on a Power-on Reset by the
    RAPU bit (OPTION_REG<7>). A weak pull-up is automatically
    enabled for RA3 when configured as MCLR
    and disabled when RA3 is an I/O.
    There is no software
    control of the MCLR pull-up.

    Still confused ????
    Regards

    Sougata

  3. #3
    xnihilo's Avatar
    xnihilo Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by sougata View Post
    4.2.1 WEAK PULL-UPS

    Each of the PORTA pins, except RA3, has an individually
    configurable internal weak pull-up. Control bits
    WPUAx enable or disable each pull-up. Refer to
    Register 4-3. Each weak pull-up is automatically turned
    off when the port pin is configured as an output. The
    pull-ups are disabled on a Power-on Reset by the
    RAPU bit (OPTION_REG<7>). A weak pull-up is automatically
    enabled for RA3 when configured as MCLR
    and disabled when RA3 is an I/O.
    There is no software
    control of the MCLR pull-up.

    Still confused ????
    Well, yes. As I am using ra3 as input, there is no POR available, is that right?

  4. #4
    Join Date
    Feb 2005
    Location
    Kolkata-India
    Posts
    563


    Did you find this post helpful? Yes | No

    Default It is internal

    Hi,

    While using as MCLR the weak pull-up is enabled. Thus you do not need an external resistor from VDD to the MCLR pin. Still you could use the MCLR to keep the MCU in reset using external circuitry by pulling it down.

    When you use the pin as I/O the POR is completely internal and the chip is automatically reset on powerup. This time the weak pull-up associated with the MCLR is detached. So if using as an input and needs to be pulled up you have to use an external pull-up resistor.

    Hope this helps.
    Regards

    Sougata

  5. #5
    xnihilo's Avatar
    xnihilo Guest


    Did you find this post helpful? Yes | No

    Smile

    Quote Originally Posted by sougata View Post
    Hi,

    While using as MCLR the weak pull-up is enabled. Thus you do not need an external resistor from VDD to the MCLR pin. Still you could use the MCLR to keep the MCU in reset using external circuitry by pulling it down.

    When you use the pin as I/O the POR is completely internal and the chip is automatically reset on powerup. This time the weak pull-up associated with the MCLR is detached. So if using as an input and needs to be pulled up you have to use an external pull-up resistor.

    Hope this helps.
    Crystal clear. Thank you very much.

Similar Threads

  1. How to MCLR by code for 16F877
    By fbestepe in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 26th November 2014, 00:51
  2. 12F675 / MCLR use
    By Acetronics2 in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 4th September 2009, 10:18
  3. MCLR Question.
    By muddy0409 in forum General
    Replies: 6
    Last Post: - 6th September 2005, 05:29
  4. What does this MCLR instruction mean?
    By bartman in forum General
    Replies: 16
    Last Post: - 30th November 2004, 00:32
  5. I/O pin and MCLR
    By Dwayne in forum FAQ - Frequently Asked Questions
    Replies: 1
    Last Post: - 15th July 2004, 10:52

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