Help with TIMER1 + SLEEP


Closed Thread
Results 1 to 3 of 3

Hybrid View

  1. #1
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    Try adding a couple of Dummy statements AFTER the @ SLEEP in your PICBASIC example and see what happens...

    @ SLEEP
    @ NOP
    @ NOP

  2. #2
    Join Date
    May 2009
    Posts
    4


    Did you find this post helpful? Yes | No

    Default

    I did switch over from primary external clock to internal clock and it works better now!
    But if the PIC sleeps more then 1 second i get into trouble.
    So guess the PIC cannot sleep more then 1 second to get proper result?
    Because the interrupt routine is build to do a interrupt every second. And an TMR1 interrupt would not execute if the PIC is in sleep mode, right? Even if i have secondary clock source for TIMER1?

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. 16F628A current high during sleep
    By Rubicon in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 9th October 2006, 10:21
  3. Wierd sleep issue
    By orca in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 14th March 2006, 22:06
  4. Timer1 and Interupt wierdness
    By mind in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 23rd August 2005, 01:24
  5. timer1 sleep
    By yettie in forum General
    Replies: 2
    Last Post: - 5th August 2005, 01:01

Members who have read this thread : 1

You do not have permission to view the list of names.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts