Part Number: TMS320F28379D
Other Parts Discussed in Thread: C2000WARE
I'm using a TM320F28379D.
I have a problem with a float calculation on this device.
I have a variable
float32_t Ic_inst=0.0;
float32_t Vc_prev=0.0;
float32_t rec_vS_inst_pu=0;
I am using these variables in the code block of an interrupt function at 10us;
__interrupt void ControlISR(void) {
Ic_inst = (rec_vS_inst_pu - Vc_prev)*5.0f;
Vc_prev = rec_vS_inst_pu;
}
Ic_inst= 9.83431262e-42 (DEN) - strange value
There is an overflow, but don't I understand why this is happening? can you help me with this?