Help with code in Assembly ! Something is Wrong


Closed Thread
Results 1 to 7 of 7

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Kamikaze47 View Post
    Statement (1) will not always be true. The interrupt routine services all interrupts. Statements (1)-(4) are just checking which interrupt flag is set (which interrupt went off). If it was the INT interrupt then it jumps to the ZeroCrossingInt section. If it was the TMR0 interrupt then it continues on to the T0Overflow section.

    I don't know what else is happening in your program, so I can only tell you what that interrupt routine is doing which is this:

    When timer0 overflows: set oDimmer to 1.

    When external interrupt (INT) occurs: set timer0 value to "DimmerVal" and set oDimmer to 0.
    Is it possible to PM you?
    ___________________
    WHY things get boring when they work just fine?

  2. #2
    Join Date
    Nov 2005
    Location
    Perth, Australia
    Posts
    429


    Did you find this post helpful? Yes | No

    Default

    If you like, but if its a question that you think others may benefit from the answer too, then you may as well ask in the thread.
    "I think fish is nice, but then I think that rain is wet, so who am I to judge?" - Douglas Adams

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