AnsweredAssumed Answered

FPU exceptions on SPC56EL60L3

Question asked by Bruno Dalvit on Sep 27, 2017
Latest reply on Sep 29, 2017 by Erwan Y

Hi all,

I'm developing on a SPC56EL60L3 device, using SPC5 Studio, I have two querstions about the FPU:

1. executing a division of a float number by 0.0F I would expect an infinite result (which means a 0bS111 1111 1xxx .... xxxx value, according with IEEE 754 standard), dividing 0.0F by 0.0F I would expect a NaN result (0bS111 1111 10xx ... xxxx value); in both cases the result is 0bS111 1111 0111 1111 .... 1111, which is a valid number (3.40...e+038).

Can you confirm that the SPC56 implements the IEEE 754 standard? What's wrong in my tests?

2. moreover I would expect the FPU to generate an exception (IVOR33), which is actually not managed by device. Can you please post a piece code explaining how to enable and manage that interrupt?


thanks in advance