AnsweredAssumed Answered


Question asked by Jhonatan Isidro Godoy on Sep 26, 2011
Latest reply on Jan 6, 2012 by Processor Expert

Morning everybody,


I need help with the square root function into MC56F8037EVM board, that is DSC of 16 bits. The specify question is: How can I do a mathematic operation (SQRT) using this bean "MRF1:smileyvery-happy:SP_Func_MFR"?


I tried to do it like shown below:


void main(void)
  Frac16 r;

  r=mfr32Sqrt(81);    //I like to apply the square root to the decimal number 81. The answer would be 9
  Bt21_PutVal(r);      // This instruction only send the result by the port C (16 bits). I hope (0000 0000 0000 1001)


Thanks a lot, and i hope your help