Re: PIC versus AVR




"steve" <bungalow_steve@xxxxxxxxx> skrev i meddelandet
news:1154925894.357276.223680@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Grant Edwards wrote:

Start at yet another end again: why pick an 8-bit architecture
if you're using a language or writing an application that needs
to do a lot of 16-bit operations? Something like an MSP430
(16-bit) or H8 (16/32 bit) is cheaper than an AVR, and makes
life easier. I particularly like the H8/300 which provides
atomic read/write of 32-bit variables (long integers and
floats): that eliminates the requirements for a lot of mutexes.

Well the H8/300's max out at 2K RAM (8K for AVR's) 60K FLASH (256K
AVR's), requires 50% more power, are physically bigger, have no
EEPROM, limited selection, there is a price to pay in die size when you
move up to a 16 bit processor which can make your life harder it other
aspects, I also seem to remember doing a H8/300 16 bit multiply was
slower then a AVR's 16 bit multiply and generally slower in all
instructions, so it's not so cut and dry as you imply if you dig into
the details. The MSP430's are not cheaper then the AVR's.


In the end, I think C friendly means that you rather use a C compiler
than assembler to get the job done on the MCU, even for cost critical
designs.

I find regularily that when I get my hands on customers assembly code to fix
problems,
I can do a better job with the C compiler.

--
Best Regards,
Ulf Samuelsson
This is intended to be my personal opinion which may,
or may not be shared by my employer Atmel Nordic AB


.



Relevant Pages

  • Re: Java (bytecode) execution speed
    ... faster or slower than a compiled language. ... likely to be slower (the compiler must run quickly, so it won't do a lot ... garbage collection and management of the heap. ...
    (comp.lang.java.programmer)
  • Re: Is there any workaround for 64-bits application that runs slower than its 32-bits.
    ... slower in certain modules when moved to 64 bits. ... void *bar; ... be any factor to this (compiler used ForteDeveloper 7: ...
    (comp.unix.solaris)
  • Re: VB 6.0 Desktop - Global Variables
    ... The exe is compiled to native code with compiler optimizations shut off. ... A ratio of 6 (accessing by property is 6 times slower than accessing a global var) for me *is* much slower. ... Private Sub Test(ByVal Reps As Long) ... Dim LoopTime As Double, GVarAccessTime As Double, PVarAccessTime As Double ...
    (microsoft.public.vb.general.discussion)
  • Re: The trend is to remain productive
    ... that is 50% slower than Visual Studio ... Intel, Borland, and GCC -- and Borland's compiler is pretty ... where raw speed of execution was really an issue. ...
    (borland.public.delphi.non-technical)
  • Re: not able to compile fftw3 with ifc 7.1
    ... It is cheaper in the long run to get an f90/f95 ... compiler running. ... 30-year-old version of the language costs a lot of time. ... If there are existing f90 codes, then the cost of rewriting them ...
    (comp.lang.fortran)