so why not use a chip whos archtecture is opimised for C as they are the same
price?
There are many many reasons to choose the PIC over the Atmel and
vice-versa, having an architechure optimised for C is usually WAY down
on anyones list!
You can't make blanket statements like the PIC and AVR are the same
price, that is not comparing apples to apples. What about quatity?,
what about availability?, what about choosing the exact features you
want to save cost?, what about development systems and support?, what
about migration paths to higher volume?, higher performance?, lower
perfomance?, power?, pinout compatability?
I could go on.
I won't get into a debate over AVR vs PIC but suffice it to say that
the PICs have a LOT going for them, which is why they outsell the
Atmels and are used in everything from Smartcards to Playstations.
How about being able to migrate from FLASH to OTP to mask ROM?
How about having a truely massive device selection range to choose
from to meet a specific application?
How about having anything from a tiny SOT23 package to a DSP based
core?
The Atmels are poor competition in these areas.
I am not aware of any fully complient C compilers for the pic, I could be out
of date of course.
You are many years out of date.
- PICC
http://www.hitech.com.au/products/picccompiler.php
- Microchips own MPLAB C Compilers
- IAR
www.iar.com
All are ANSI C complient.
There are probably others.
Dave