16f1824 MCLR pin going low causes PIC to reset - what am I missing?


Closed Thread
Results 1 to 13 of 13

Hybrid View

  1. #1
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default Re: 16f1824 MCLR pin going low causes PIC to reset - what am I missing?

    A shot in the dark, but what if you add
    _LVP_OFF
    to config_2
    Dave
    Always wear safety glasses while programming.

  2. #2
    Join Date
    Mar 2009
    Posts
    653


    Did you find this post helpful? Yes | No

    Default Re: 16f1824 MCLR pin going low causes PIC to reset - what am I missing?

    Quote Originally Posted by mackrackit View Post
    A shot in the dark, but what if you add
    _LVP_OFF
    to config_2
    "A long shot....but it might just work" (as they say in the movies), and whaddayaknow.....

    BINGO!

    with _LVP_OFF ....no resetee, ....*but* without that _CONFIG2 entry, my 16f1824 resets every time RA3 goes low.


    So Mr Mackrackit ...choose any cuddly toy from the top shelf!

    How bizarre - many thanks, it would have taken me a few weeks to get that one! (& it's just come flooding back why I took a break from these puppies in the first place - ie. somtimes they're *way* obtuse!)


    Thanks for *everyone's* input!
    Last edited by HankMcSpank; - 6th May 2012 at 18:12.

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


    Did you find this post helpful? Yes | No

    Default Re: 16f1824 MCLR pin going low causes PIC to reset - what am I missing?

    One thing I may suggest... never under do the config fuse lines.... I mean, grab the whole list available in the .INC file and assign each of them, OFF or ON.
    Steve

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

  4. #4


    Did you find this post helpful? Yes | No

    Default Re: 16f1824 MCLR pin going low causes PIC to reset - what am I missing?

    It's explained on the 16f1824 data sheet. See pages 52 and 54. LVP must be 0 for MCLR to turn off. LVP is set to 1 on any reset.

Members who have read this thread : 0

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