Re: How to compare computing power of microcontrollers?



On 2005-08-30, Chris Carlen <crcarleRemoveThis@xxxxxxxxxxxxxxx> wrote:
> Michael J. Noone wrote:
>> Hi - I'm trying to choose a microcontroller for a project I'm working
>> on. Originally I had been thinking about using a 20Mhz Atmel AVR, such
>> as an ATMEGA168, but I became worried about the raw computing power of
>> the AVR, as one of the main roles of this chip will be to do alot of 16
>> bit multiplication and trig at a fairly high speed. So I've been
>> looking at using an ARM - specifically the Atmel AT91SAM7A3 looks very
>> interesting to me. It's clocked 3 times as fast as the ATMEGA168, but I
>> expect that isn't a good way at all to compare it's ability to handle
>> this task to the AVR's. Is there any good way to make a comparison for
>> this application without benchmarking the chips? Thanks,
>>
>> -Michael J. Noone
>
>
> ARM is also a 32 bit CPU, vs. 8 bits for the AVR. So for instance, to
> do 32 bit arithmetic operations on AVR takes 4 instructions/clocks,
> while the ARM will do a 32 bit operation in one instruction/clock.
>
> For floating point stuff, things are more complicated, but still the
> advantage goes to the 32-bit CPU.
>
> So for 32-bit integer arithmetic anyway, a 60MHz ARM would be roughly 12
> times faster than an AVR.

At least. Rember the ARM has a barrel-shifter that can be used
in "parallel" with an arithmetic operation. IOW,

A = A + B<<3;

Is a single instruction on an ARM. If A and B are 32-bit ints,
I doubt that can be translated into to 4 AVR instructions.

--
Grant Edwards grante Yow! I just remembered
at something about a TOAD!
visi.com
.



Relevant Pages

  • Re: PIC vs AVR vs ARM
    ... from PIC/8051 MCUs I was working with before to ARM chips to be very ... in ARM mode. ... chips in general). ... AVR studio was nice and would pop-up a message saying it noticed ...
    (comp.arch.embedded)
  • Re: PIC vs AVR vs ARM
    ... In these days it is not to hard to find small, ARM based ready to use ... Can anybody shortly compare ARM with PIC ad AVR interms of ... For the AVR I use CodeVision and I find it to be a very good compiler, ... can almost forget about single-stepping and setting meaningful ...
    (comp.arch.embedded)
  • Re: High-end AVR vs. low-end ARM?
    ... On the other hand there is a HUGE difference in standby current. ... one if the ARM devices gets hot the standby current exceeds 100 uAs ... There is another reason why to stick with AVR, ... topic and the AVR is powerful enough, spend the extra money and stay ...
    (comp.arch.embedded)
  • Re: PIC vs AVR vs ARM
    ... We have used AVR MCUs in many of our products and were very happy with ... On a new project I decided to take a look at the ARM MCUs to see ... if we could branch out from some of the limitations of the AVR. ... where you will find three different links for the comparison chart. ...
    (comp.arch.embedded)
  • Re: ARM Development - IAR vrs Keil vrs Image Craft
    ... >> I am playing with the free version of IAR but for home project work the full up program is too ... I have went through the free GNU ARM tutorial, ... > doing mostly AVR development. ... I have used the Imagecraft AVR compiler for more than four years and cannot fault it. ...
    (comp.arch.embedded)