Hi All,
is it possible to perform floating point calculation using CCSV4 for TMS320VC5401 processor?
Thanks & Regards,
Ashwin Panchal
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi All,
is it possible to perform floating point calculation using CCSV4 for TMS320VC5401 processor?
Thanks & Regards,
Ashwin Panchal
Hi Ashwin,
C5401 is fixed point processor. In order to calculate floating point numbers it needs to do some software tricks. Easy way is get a support from C compiler to do that.
I'll check out that CCSV4 can support C5401 processor.
Regards,
Hyun
Hi Hyun,
Please let me know that tricks.
and
which header files need to add in main program file?
Please find below code which I am using, but that not working and stuck at that position.
#include <stdio.h>
#include <stdlib.h>
#include <float.h>
#include <ctype.h>
#include <math.h>
#include <limits.h>
//=================================================================
// In my one of the function which i am calling from while loop.
pm_wdata = (pm_rdata * 0.475) + (pm_wdata * 0.5);
//=================================================================
Regards,
Ashwin
Hi,
No, i am not using debugger.
But i am toggling the port pin before float-calculation start and after finished.
so by observing port pins status determining the internal program execution position.
PLEASE LET ME KNOW WHAT ARE THE TRICKS TO PERFORM FLOAT-CALCULATION.
Thanks & Regards,
Ashwin Panchal
Hi Ashwin,
What I meant was to use assembly to calculate floating point numbers with integer processor. Since there is a run time math library is available, you should use it.
The code you showed is right. I don't see any fault. Without debugger it's very difficult to trace it down. Is there any way you get a debugger?
Regards,
Hyun