Using exponential function in MPC5607B controller

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Using exponential function in MPC5607B controller

2,454件の閲覧回数
kpitsupportshas
Contributor I

Hello,

As this controller supports only fixed point arithmetic, can you please let us know how to integrate exponential function in MPC5607B. We observed that exponential function uses floating point value and its return type is float or double.

 

Regards,

Srinivasan K.

ラベル(1)
0 件の賞賛
返信
3 返答(返信)

2,213件の閲覧回数
kpitsupportshas
Contributor I

Hello Martin,

Thanks for quick reply.

We are using Runtime.PPCEABI.VS.UC.a library and want to use exponential(e^x) function. Could you please let us know, if this library doesn't support exponential function which library supports this?

Regards,

Srinivasan K.

0 件の賞賛
返信

2,211件の閲覧回数
martin_kovar
NXP Employee
NXP Employee

Hi,

include  math.h to your project. Now you can use function exp. Please look at the file in the attachment, where you find description of the function (page 111-112).

Regards,

Martin

0 件の賞賛
返信

2,211件の閲覧回数
martin_kovar
NXP Employee
NXP Employee

Hi,

could you please write me, which library and which function you want to use?

The fact that MPC5607B does not have SPE unit does not mean, you are not able to use floating point data types. But instead of floating point instructions, software support is used and floating point instructions has to be replace by standard VLE instructions and calculation takes more time.

Regards,

Martin

0 件の賞賛
返信