cancel
Showing results for 
Search instead for 
Did you mean: 

Floating-Numbers Problem with SPC560P

TBles.1
Associate II

Hello,

I am working with a SPC560P and have a problem with float numbers. As soon as I write a calculation with float numbers in my loop, the loop becomes extremely slow (microsecond range for a simple calculation in the loop).

What can be the reason for this?

Do I have to activate or set anything else and if so where?

Please help me

Thanks

Timo Blessing

1 ACCEPTED SOLUTION

Accepted Solutions
ODOUV.1
ST Employee

Hello,

SPC560P is based on a powerpc core e200z0 which have no Floating-Point Unit.

When you use floating point operations, it is calling software libraries that simulates an FPU on an integer CPU, so it is much longer than hardware calculations.

Best regards.

View solution in original post

3 REPLIES 3
ODOUV.1
ST Employee

Hello,

SPC560P is based on a powerpc core e200z0 which have no Floating-Point Unit.

When you use floating point operations, it is calling software libraries that simulates an FPU on an integer CPU, so it is much longer than hardware calculations.

Best regards.

TBles.1
Associate II

Hi,

thank you for your answer.

Is there any controller with an Floating-Point Unit, that is familiar with the SPC560P?

Best regards

ODOUV.1
ST Employee

If you want to stay in SPC56 familly,

there are the SPC564L or SPC56EL based on core e200z4 (with FPU)

You can use the Pdroduct selector to compare them:

SPC56 L Line MCUs - STMicroelectronics

If it is not enough, you also have SPC57 and SPC58 families.

If you want an FPU, do not use those based on powerpc e200z0 but use more (z2 z3 z4)

Best regards