Hello everyone,

As part of an interrupt service routine I have the following code:
Code:
If AnalyzeMode THEN
  If Trigger = 0 THEN
    If Trigged = 0 THEN
      Trigged = 1 
    ENDIF
  ENDIF
ENDIF
If my examination of the LST file is correct this particular section generates a total of 12 instructions, out of which 3 is CLRWDT. Because this is an ISR and because I really want it to run as fast as I possible I don't want to spend 25% (or more depending on how the statements evaluates) of the time kicking the dog.

Is there a way to selectively turn off the insertion of CLRWDT, kind of like ENABLE DEBUG? I know you can DEFINE NO_CLRWDT 1 but that is a single shot thing and it would mean I either need to insert the CLRWDT manually (yuk) or kill the dog completely, which I'd prefer not to - if possible.

In this particular case there are a CLRWDT inserted both before AND after this section so doing it up to three more times in just a couple of microseconds seems like quite a waste of time.

Thanks!
/Henrik.