tmr2 interrupt problem


Results 1 to 28 of 28

Threaded View

  1. #25
    Join Date
    Dec 2007
    Location
    The Netherlands, Groningen
    Posts
    16


    Did you find this post helpful? Yes | No

    Default

    i changed my code now.
    the var counter works fine.

    Code:
    LOOP:
    
    
    Sec=12
    Mins=34
    hr=56
    
    if counter3=>100 then
    blink=1
    else 
    blink=0
    endif
    goto loop
    end
    This is with only the return-command.

    I'm going to change the loop now. I try to set more gosubs in it, maby it works..

    [s]It looks like there is a problem between the I2C and interrupt. Do's I2C also use timer2 for it's clocksignal or something?[/s]
    edit:
    I found a mistake:
    @ loop:
    goto coldstart

    @ coldstart
    return



    not all the problems are solved now, but at least return at the end of the ISR dos have any effect!

    edit2:
    after changing the tris settings to
    TRISA=%11111111
    TRISB=%11111111
    I can make some input with the buttons. The problem now is that it's menu is not working right.
    It looks like it just runs the routine for once and not wait for any other input.(possible a mistake when I did change it from only loops to interrrupt I might have did something wrong..). I have to look at that for now..
    Last edited by ADCON; - 1st January 2008 at 15:51.

Similar Threads

  1. Problem with Interrupt on PIC18F4620 PORTB
    By rookie in forum Off Topic
    Replies: 1
    Last Post: - 22nd March 2007, 01:34
  2. Problem with PBP interrupt and Serin, please help
    By rgregor in forum mel PIC BASIC
    Replies: 0
    Last Post: - 22nd August 2006, 19:02
  3. Interrupt Problem
    By Kamikaze47 in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 16th November 2005, 20:58
  4. Interrupt stack overflow problem with Resume {label}
    By Yuantu Huang in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 3rd May 2005, 01:17
  5. USART interrupt not interrupting right
    By Morpheus in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 6th March 2005, 01: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