2022-12-16 01:14 AM
Hi,
on STM32H7 I want to divide 25600/1000 - I get always result = 25. Why? What I do wrong?
double freq;
int odr=25600;
freq = (double) (odr)/1000;
Thank you
2022-12-18 05:31 PM
One last thing, refrain from using float and double under interrupt.
2022-12-20 02:57 PM
Though it's not an absolute rule. One just have to understand what he is doing and what are the consequences: