Hi!
I'm using DA14580 to develop a sensing system powered by battery. In some cases I need to get the result of an ADC sample result divided by another ADC sample result. That's mean two 16-bit integers division. But it seems that ARM CM0 dose not support division instructions. Is there some latency or power consume risks ,If I use '/' to perform a division? Or is it a better way to implement the division by shift and comparation-branch?
Thanks for any advice!
Device:
Hi bemoon,
Yes in the ARM M0 there is no native instruction in order to perform division, so the division will be implemented with additional instructions formed by the compiler and yes there will be extra effort from the processor side in order to run the extra instructions that will emulate the division. But yes you can implement the division via rotation in order to avoid that.
Thanks MT_dialog
Thank you very much !