AnsweredAssumed Answered

Why Ammclib can not work in interrupt program?

Question asked by amos xue on Oct 18, 2017
Latest reply on Jul 25, 2019 by Robert Metzeroth

Follow the User's Guide of Ammclib,I have integrated the lib into CW10.&. It works, when I use the lib in main(),but when I use the lib function in interrupt, it does not work.

extern void usrIsr (void)
{
PIT.CHANNEL[0].TFLG.R=0x1; /*Clear PIT0 Interrupt flag*/
..........
f32Angle = FRAC32 (0.5);
GFLIB_SinCos (f32Angle, &pf32Output);
scope1=pf32Output.f32Arg1;

......

}

 

Why? How to handle the mistake?

Outcomes