Part Number: TMS320F28335
Other Parts Discussed in Thread: C2000WARE
How to derive log 10 of certain veriable in CCS using TMS320F28335
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.
Part Number: TMS320F28335
Other Parts Discussed in Thread: C2000WARE
How to derive log 10 of certain veriable in CCS using TMS320F28335
Sumit,
F28335 doesn't contain TMU. However, it contains the FPU, so it supports the FPUFastRTS libraries we provide in C2000Ware. This fast math library has a logf() operation which runs faster than the standard math library, at the cost of some accuracy.
To compute log10(x), you would do logf(x)/logf(10). logf(x) can be computed using the FPUFastRTS library. 1/logf(10) can pre-defined as a constant. So you can get the result using a logf() operation followed by a multiplication.
Thanks,
Sira