Dose DA14580 surport division instruction?

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.wsdof.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
3 posts / 0 new
Last post
bemoon
Offline
Last seen:2 years 1 month ago
加入:2017-07-19 09:37
Dose DA14580 surport division instruction?

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:
MT_dialog
Offline
Last seen:2 months 1 week ago
工作人员
加入:2015-06-08 11:34
Hi bemoon,

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

bemoon
Offline
Last seen:2 years 1 month ago
加入:2017-07-19 09:37
Thank you very much !

Thank you very much !