Time interrupt problem


Closed Thread
Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,612


    Did you find this post helpful? Yes | No

    Default

    DragonBall,
    You have now asked the same question in atleast three different threads and you are not reading the responses you are getting.

    You can not use two ON INTERRUPT statements. You have to, in one SINGLE ISR, determine what caused the interrupt by looking at the different interrupt flags, located in INTCON, PIR1 and PIR2 (For16F87x). If you have TMR0 and TMR1 running and interrupts enabled for both, when the interrupt fires you look at the T0IF and TMR1IF flags to determine which one caused the interrupt.

    I think you are making this more comlicated than it needs to be, IMO you only need one timer interrupt. Look for a suggestion in one of the other threads where you asked this question.

    /Henrik Olsson.

  2. #2
    Join Date
    Nov 2006
    Posts
    33


    Did you find this post helpful? Yes | No

    Post

    Hi Henrik Olsson.

    I actually had read all the threads that ppl send to me. I just want to heard ppl's suggestion. If I know that the multiple interrupt will make me complicated then I will heard to your advice.

    I really appreciated all the ppl's reply.
    one thing is i have success doing the LCD diplays.

    Thank to your reply again.

    Please advice me and guide me if i have problem thanks.

Similar Threads

  1. INT interrupt problem
    By netstranger.nz in forum General
    Replies: 5
    Last Post: - 13th October 2009, 07:52
  2. Instant interrupt problem (very strange)
    By yusoweird in forum General
    Replies: 2
    Last Post: - 31st October 2006, 16:15
  3. Time Interrupt problem
    By chai98a in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 24th February 2006, 23:49
  4. Interrupt?? problem
    By scorpion in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 15th July 2005, 04:14
  5. Interrupt and Time Out
    By Tissy in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 16th March 2005, 01:10

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