16f628a wont wake up


Closed Thread
Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Feb 2005
    Posts
    67

    Default 16f628a wont wake up

    Right,

    Have a 16f628a.

    @ DEVICE pic16F628A, INTOSC_OSC_NOCLKOUT
    @ DEVICE pic16F628A, WDT_OFF
    @ DEVICE pic16F628A, PWRT_ON
    @ DEVICE pic16F628A, MCLR_OFF
    @ DEVICE pic16F628A, BOD_OFF
    @ DEVICE pic16F628A, LVP_OFF
    @ DEVICE pic16F628A, CPD_OFF
    @ DEVICE pic16F628A, PROTECT_OFF

    Use the memreset pin as input switch, start, tied high via resistor, cap across switch.

    At the end of the program

    @ sleep
    pause 100

    goto beginning of program

    Now....

    It goes to sleep, no problem, but when i power down and reapply power,
    hence using pwrttimer reset option, it stays ASLEEP !!!

    help, please ?

    can post complete code, but over 700 lines.
    Pete

  2. #2
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,648


    Did you find this post helpful? Yes | No

    Wink

    Quote Originally Posted by Peter1960 View Post

    help, please ?

    can post complete code, but over 700 lines.
    Hi,

    But, may be you could post the " beginning of program " AND the " Sleep config "( with some lines before the @ sleep command ) sections.

    THE good question :

    Some interrupts used ??? ...

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  3. #3
    Join Date
    Jan 2006
    Location
    Istanbul
    Posts
    1,185


    Did you find this post helpful? Yes | No

    Default

    @ DEVICE pic16F628A, WDT_ON


    __________________________-
    "If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte

  4. #4
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,648


    Did you find this post helpful? Yes | No

    Wink You sure ???

    Quote Originally Posted by sayzer View Post
    @ DEVICE pic16F628A, WDT_ON


    __________________________-

    Hi, Sayzer

    That way you are sure the Pic will not sleep too long a time ...

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  5. #5
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    With BOD_OFF this PIC can run with a supply of around 3V. If you cycle power quickly, and
    have enough capacitance on the power supply rail to hold Vdd >=3V during cycle time, it
    may not allow time for the PIC to reset, so it would never exit sleep.

    You could try BOD_ON or just allow time for a full reset when cycling power off/on.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

Similar Threads

  1. 16F181: can't wake up from sleep
    By Navaidstech in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 9th January 2010, 04:33
  2. MPLAB ICD ver 1 & 16F628A
    By Tissy in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 26th February 2005, 00:44
  3. 16F628A sleep current
    By David Marks in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 9th February 2005, 15:12
  4. new user with problem using PGP Pro, Lab-X3 with 16F628A
    By equipoise in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 28th July 2004, 07:42
  5. HSEROUT and 16F628A
    By fredblah in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 6th May 2004, 00:07

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