Power-on reset. Start-up timer.


Closed Thread
Results 1 to 12 of 12

Hybrid View

  1. #1
    Join Date
    Apr 2010
    Location
    Sweden
    Posts
    10

    Default Power-on reset. Start-up timer.

    Hello.
    I have a pic16f690 in a project. It works fine at the developement board. But mounted at the card i like to use it with, the program will not start. (It starts if I push the MCLR-pin) Probably this problem is caused by a slow power-up, i have a condensator connected to pwr.
    I read in the data cheet that this pic have a couple of featuers who maybee can solve my problem. Power-on-reset, power-up-timer and maybee others. But how do I program it into the pic??
    I found this string in this forum: "_PWRT_ON_2L" but I can not find any other code ty try. (It didnīt help).
    Can anyone help me?
    / Lasse

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


    Did you find this post helpful? Yes | No

    Default

    The MCLR pin needs to be pulled high or shut off.
    If you shut it off it can be used as an INPUT.

    Add this to your configuration to turn it off
    Code:
    _MCLRE_OFF
    And this is a helpful thread
    http://www.picbasic.co.uk/forum/showthread.php?t=543
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Apr 2010
    Location
    Sweden
    Posts
    10


    Did you find this post helpful? Yes | No

    Default

    Hi again.
    Thank you for your fast answer. It was a helpful link you gave me, I learned a little bit moore. I tried booth "POR" and "PWRT" but unfortunal it didnīt solve the problem. Do you have some other idea? Otherwhise I have to try to solve it the hardwhere-way.
    Friendly regards / Lasse

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


    Did you find this post helpful? Yes | No

    Default

    Did you try
    _MCLRE_OFF
    Dave
    Always wear safety glasses while programming.

  5. #5
    Join Date
    Apr 2010
    Location
    Sweden
    Posts
    10


    Did you find this post helpful? Yes | No

    Default

    Yes. I did.
    And to be clear I can say that I am complete sure that my problem depend on power-up. (If I set the PIC in the holder with the pwr-leg bended away, and then connect it after the unit is powered-up, the pic starts correct)
    You donīt have any other idea?
    Friendly regards / Lasse

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


    Did you find this post helpful? Yes | No

    Default

    I am not sure what you mean by pwr-leg?
    Can you post how everything is connected using pin numbers in the description or a schematic?
    Dave
    Always wear safety glasses while programming.

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