12F629 Won't SLEEP


Results 1 to 8 of 8

Threaded View

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


    Did you find this post helpful? Yes | No

    Default

    Put a space between @ and SLEEP.

    Edit: I guess this bears a little more detail. What happens is by placing @SLEEP in
    there it doesn't generate code for SLEEP, so you land on the next valid instruction
    which would be your GPIO.1 = 0.

    You don't have the @ symbol before your NOP either, so PBP creates a lable instead
    of code for the NOP. @ NOP would be the correct way to insert an assembly NOP
    instruction.
    Last edited by Bruce; - 22nd August 2008 at 21:39. Reason: Explanation
    Regards,

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

Similar Threads

  1. Won't go back to SLEEP after 1st Interrupt
    By jellis00 in forum mel PIC BASIC Pro
    Replies: 32
    Last Post: - 29th June 2009, 09:00
  2. sleep on 12f629
    By sirvo in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 8th February 2007, 14:08
  3. 16F628A current high during sleep
    By Rubicon in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 9th October 2006, 10:21
  4. Wierd sleep issue
    By orca in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 14th March 2006, 22:06
  5. Programming 12F629 low power (Sleep)
    By Warrier in forum mel PIC BASIC Pro
    Replies: 17
    Last Post: - 29th November 2004, 14:45

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