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
SP_Func_MFR"?
I tried to do it like shown below:
void main(void)
{
Frac16 r;
PE_low_level_init();
for(;
{
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