Solved
Avaraging unsigned integers
Hi, Im searching way to avarage two unsigned 32 integers.
Is there any hardware help in doing this with stm?
Hi, Im searching way to avarage two unsigned 32 integers.
Is there any hardware help in doing this with stm?
unsigned 32-bit, the assembler would allow for a two register add with carry output, then rotate right to recover the overflow carry, and then decide if you need the low-order bit dropping into the carry should round up, or not, basically an ADC with zero immediate.
So 2 or 3 assembler instructions, all fast ones
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.