#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!