Feng Wang

Problem of doing float operation in interrupt function or interrupt called function

Discussion created by Feng Wang on Jun 23, 2006
Latest reply on Jun 24, 2006 by Feng Wang
#pragma interrupt called
void sci_cmd()
{
   ……
    Kp=(float)(sci_rec_buffer[1]*256+sci_rec_buffer[2])*0.0001;
  ……
   }
for example, runing aboved function in sci interrupt function, but Kp(define as float type) isn't changed. I do these in codewarrior 6.0, and on 56F807
Thank you!

Outcomes