Wierd sleep issue


Results 1 to 4 of 4

Threaded View

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


    Did you find this post helpful? Yes | No

    Default

    you should consider reading the whole datasheet or at least Section 9.7. Be sure you understand it with your current project configuration, config fuses, and it should be OK. Oh well i didn't read and analyse the whole thing as now so i can be wrong.

    Also...
    asm

    clrf 32h

    endasm
    i don't like it... and what do you expect it will do?

    Maybe i'm now also blind but i don't see any register in that specific address. AND MORE, it's not a valid way to write clrf instruction.

    clrf h'32' OR clrf 0x32 are valid

    PS: help us a little bit when posting your code, use the VB code click here. that way it will be a little bit easier to read.. Even better if some of your code lines are indented.
    Last edited by mister_e; - 12th March 2006 at 10:28.
    Steve

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

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. Battery powered applications
    By NavMicroSystems in forum Off Topic
    Replies: 7
    Last Post: - 22nd June 2009, 07:12
  3. Using Sleep
    By elec_mech in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 17th August 2008, 04:05
  4. 16F628A current high during sleep
    By Rubicon in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 9th October 2006, 10:21
  5. SLEEP Command and Interupts 16F648A
    By ghoot in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 28th May 2004, 18:35

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