Interrupt won't execute.


Results 1 to 24 of 24

Threaded View

  1. #9
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Unhappy

    Hi, BB

    your code doesn't compile at all ...

    from MCS ...

    FATAL ERROR: Too many errors. (21)
    ERROR Line 53: Bad expression or missing THEN. (AdCServo.pbp)
    ERROR Line 53: Syntax error. (AdCServo.pbp)
    ERROR Line 54: Bad expression or missing THEN. (AdCServo.pbp)
    ERROR Line 54: Syntax error. (AdCServo.pbp)
    ERROR Line 55: Bad expression or missing THEN. (AdCServo.pbp)
    ERROR Line 55: Syntax error. (AdCServo.pbp)
    ERROR Line 56: Bad expression or missing THEN. (AdCServo.pbp)
    ERROR Line 56: Syntax error. (AdCServo.pbp)
    ERROR Line 57: Bad expression or missing THEN. (AdCServo.pbp)
    ERROR Line 64: Bad expression. (AdCServo.pbp)
    ERROR Line 65: Bad expression. (AdCServo.pbp)
    ERROR Line 66: Bad expression. (AdCServo.pbp)
    ERROR Line 71: Bad expression. (AdCServo.pbp)
    ERROR Line 72: Bad expression. (AdCServo.pbp)
    ERROR Line 73: Bad expression. (AdCServo.pbp)
    ERROR Line 82: Bad expression. (AdCServo.pbp)
    ERROR Line 83: Bad expression. (AdCServo.pbp)
    ERROR Line 91: Bad expression. (AdCServo.pbp)
    ERROR Line 101: Bad expression. (AdCServo.pbp)
    add to that most of the operators and tokens are missing, your TMR1 calculations are false ( Where's the prescaler you've set to 8, gone ??? ), TMROFF calculations also false, your HSEROUT command syntax is not correct ...
    and the servo pulse values do not match 0 and 180° positions !

    Ok, I stop here ...

    You'd better rewrite your PROJECT on a white sheet from very start ...

    Would be much better ( and quicker ) than trying to correct what you've done ...

    AND I did forget last, but not least ... do not use " ON INTERRUPT " as timing is critical here ... only ASM interrupts will fit here ... IF you insist on using interrupts - that are not at all compulsory in such a project -


    Alain
    Last edited by Acetronics2; - 25th March 2010 at 09:51.
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

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