This is the first time that I've run into this particular problem. The watch window display of a local C variable is incorrect. C compiler used is ImageCraft. Only one local variable is used in this ISR and no optimizations.
Disassembly view shows registers R3:R2 being used to hold local variable values (local variable is "t"). These are loaded from ADC registers in Extended I/O at addresses (0x79:0x78). Values loaded into "t" should be 0x01:0xDF or 479 dec. Watch window shows t = 1793 and location is 0x04EB ???
I know that code optimizers try to reused registers for different local variables, but in this instance, this shouldn't be a factor.
Any similar experiences ?