When ever i do float calculations in microchip i am getting an invalid interrupt. I am using the dspic33ev family. Why is it happening? Please advise.
There is NO SUCH THING as a DEFAULT INTERRUPT. In any processor with multiple interrupt sources, you always want to do your initial debugging with interrupts disabled. In your initialization code you include whatever you need to disable all interrupt sources. When you have the code that does not depend on interrupts debugged, you then enable the ones you need, one at a time. That way you can debug in a controlled environment. That's Embedded Code 101.I am getting default interrupt and i have put a while(1) there. I did not trace which interrupt it is.
Oh, yeah! Things like that should ALWAYS be done.i am sorry the issue is not because of floating calculations. By mistake i am writing in an out of bound array got confused with index number and dtc code which is 3 byte value and the array size is only 200. Probably i should put some array bound checks.