Author Topic: AVR8 vs Cortex-M???  (Read 33229 times)

0 Members and 1 Guest are viewing this topic.

Offline richardman

  • Frequent Contributor
  • **
  • Posts: 427
  • Country: us
Re: AVR8 vs Cortex-M???
« Reply #50 on: April 10, 2016, 09:39:16 pm »
For the simple things that AVR can do, our JumpStart API makes it just as easy (for the STM32F0xx and STM32F4xx for now, and more later). Need to set up a clock (and who doesn't?) and initialize an UART and the SYSTICK timer?

Quote
   
    jsapi_clock.SetSystemClock(0, 8, 0, 96, 5);
    jsapi_cortex_core.SysTick_Timer(SYSTICK_MILLISECOND);

    //Initialize serial port, this works for STM32F411RE
    usart1.SetPins(&portb, 6, 7, &portb, 7, 7);
    usart1.MakeUSART(9600, 8, 1, true);

    printf("\n\nAttempting to configure CC3100.\n");

I am not entirely clear why cost is such a concern for personal / hobbyist uses. I mean if you are doing a one-off moisture sensor for your plants, does it matter whether it's a $0.50 chip or $2.50 chip? And for quantity purchases, as many people mentioned, the Cortex-M0 and -M3 are quite cost effective. Finally, if you move to Cortex-M4 and -M7, there's nothing in the AVR that can compare.
// richard http://imagecraft.com/
JumpStart C++ for Cortex (compiler/IDE/debugger): the fastest easiest way to get productive on Cortex-M.
Smart.IO: phone App for embedded systems with no app or wireless coding
 

Offline dannyf

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: AVR8 vs Cortex-M???
« Reply #51 on: April 10, 2016, 09:45:48 pm »
Quote
Finally, if you move to Cortex-M4 and -M7, there's nothing in the AVR that can compare.

So what? the fact that no AVR competes with CM4/CM7 makes the CM4/CM7 superior?

If you move to a SOT23 package, there is nothing in CM4/CM7 or even Pentium Xeon that can compare. Does that make a PIC10F200 better than any of those mentioned?

Obviously not. You pick a chip for an application. an AVR is obviously not meant to compete with CM4/CM7, just as a CM4/CM7/Xeon isn't meant to compete with 10F200. That doesn't make one chip superior to others. It just makes one more suitable to a given application than others.
================================
https://dannyelectronics.wordpress.com/
 

Online nctnico

  • Super Contributor
  • ***
  • Posts: 26895
  • Country: nl
    • NCT Developments
Re: AVR8 vs Cortex-M???
« Reply #52 on: April 11, 2016, 12:27:35 am »
I am not entirely clear why cost is such a concern for personal / hobbyist uses. I mean if you are doing a one-off moisture sensor for your plants, does it matter whether it's a $0.50 chip or $2.50 chip?
Well people want to get things cheap and only look at component costs because they lack the ability put a value on their time. Sometimes I'm a sucker for the appearantly cheaper option too but I'm trying hard to change which is hard when being Dutch...
There are small lies, big lies and then there is what is on the screen of your oscilloscope.
 

Offline technixTopic starter

  • Super Contributor
  • ***
  • Posts: 3507
  • Country: cn
  • From Shanghai With Love
    • My Untitled Blog
Re: AVR8 vs Cortex-M???
« Reply #53 on: April 11, 2016, 01:12:15 am »
Quote
Finally, if you move to Cortex-M4 and -M7, there's nothing in the AVR that can compare.

So what? the fact that no AVR competes with CM4/CM7 makes the CM4/CM7 superior?

If you move to a SOT23 package, there is nothing in CM4/CM7 or even Pentium Xeon that can compare. Does that make a PIC10F200 better than any of those mentioned?

Obviously not. You pick a chip for an application. an AVR is obviously not meant to compete with CM4/CM7, just as a CM4/CM7/Xeon isn't meant to compete with 10F200. That doesn't make one chip superior to others. It just makes one more suitable to a given application than others.

It's the 21st century, and why people still think SOT23 == small?
I've been using DFN and QFN chips for 6 years, and I simply do not use any TSSOP that is bigger then TSSOP20, and no SOIC bigger than SO8 anymore.
With DFN or QFN packages, there are tons of candidates smaller than SOT23, you do not even have to touch any BGA or LGA.
PS, I have higher soldering yield on xFN than xSOT/xSOP. The center pad auto centering is just a wonderful gift form god himself.

Good luck hand soldering those DFN/QFN packages with a properly soldered pad connection. I have not seen any DFN/QFN physically smaller than a SOT-23, and when you put the perspective of available board space those DFN/QFN's consume more board area than SOT23's or SO's (since you can put tracks and vias beneath those leaded packages, but not DFN/QFN's)
 

Offline Bruce Abbott

  • Frequent Contributor
  • **
  • Posts: 627
  • Country: nz
    • Bruce Abbott's R/C Models and Electronics
Re: AVR8 vs Cortex-M???
« Reply #54 on: April 11, 2016, 01:59:22 am »
It's the 21st century, and why people still think SOT23 == small?
Some of us still only have 20th century eyes!
 

Offline richardman

  • Frequent Contributor
  • **
  • Posts: 427
  • Country: us
Re: AVR8 vs Cortex-M???
« Reply #55 on: April 11, 2016, 02:05:05 am »
Quote
Finally, if you move to Cortex-M4 and -M7, there's nothing in the AVR that can compare.

So what? the fact that no AVR competes with CM4/CM7 makes the CM4/CM7 superior?

If you move to a SOT23 package, there is nothing in CM4/CM7 or even Pentium Xeon that can compare. Does that make a PIC10F200 better than any of those mentioned?

Obviously not. You pick a chip for an application. an AVR is obviously not meant to compete with CM4/CM7, just as a CM4/CM7/Xeon isn't meant to compete with 10F200. That doesn't make one chip superior to others. It just makes one more suitable to a given application than others.

I am saying that for any future designs, the Cortex-M lines do seem to have a lot going for them :-) For example, we just released an OEM production ready wifi module. The default config uses the STM32F411 for high performance, but for quantity purchases, customers can order the F070 option for low cost products. We made sure the pinouts are mostly the same so there are very compelling reasons to go with the STM32 lines for that. Probably we can also have gone with NXP or some other lines too. The point is that we cannot have designed these lines of products and offer a choice of MCU for quantity purchases with the AVR. The plan is to have a low power STM32L0 option as well, but we have not done enough research on how feasible that option is yet.

Then we have even newer products in development that will have an M7 core with 64MBytes of SDRAM. The JumpStart API equalizes the access API across the STM32F lines, without going to the full abstraction of the Arduino software and lose capabilities, so this is a plus for our customers.
// richard http://imagecraft.com/
JumpStart C++ for Cortex (compiler/IDE/debugger): the fastest easiest way to get productive on Cortex-M.
Smart.IO: phone App for embedded systems with no app or wireless coding
 

Offline ez24

  • Super Contributor
  • ***
  • Posts: 3082
  • Country: us
  • L.D.A.
Re: AVR8 vs Cortex-M???
« Reply #56 on: April 11, 2016, 02:33:13 am »
 :box:
YouTube and Website Electronic Resources ------>  https://www.eevblog.com/forum/other-blog-specific/a/msg1341166/#msg1341166
 

Offline richardman

  • Frequent Contributor
  • **
  • Posts: 427
  • Country: us
Re: AVR8 vs Cortex-M???
« Reply #57 on: April 11, 2016, 02:46:00 am »
It's the 21st century, and why people still think SOT23 == small?
Some of us still only have 20th century eyes!

20th Century! I can't even see those damned legs
// richard http://imagecraft.com/
JumpStart C++ for Cortex (compiler/IDE/debugger): the fastest easiest way to get productive on Cortex-M.
Smart.IO: phone App for embedded systems with no app or wireless coding
 

Offline glenenglish

  • Frequent Contributor
  • **
  • Posts: 258
  • Country: au
  • RF engineer. AI6UM / VK1XX . Aviation pilot. MTBr.
Re: AVR8 vs Cortex-M???
« Reply #58 on: April 11, 2016, 07:05:56 am »
I'd stay clear of XMEGA though. I think ATMEL went backwards with that. The simplicity of accessing IO pins just about went out the window.
and AVR32- why bother when ARM is around.

If you need XMEGA you probably should take the step the cortex ARM. 

I used Codevision on AVR.

I use STM - L1, F3, F4, F7 and use  Rowley Crossworks IDE.
 

Offline Kjelt

  • Super Contributor
  • ***
  • Posts: 6460
  • Country: nl
Re: AVR8 vs Cortex-M???
« Reply #59 on: April 11, 2016, 07:33:02 am »
Obviously not. You pick a chip for an application. an AVR is obviously not meant to compete with CM4/CM7, just as a CM4/CM7/Xeon isn't meant to compete with 10F200. That doesn't make one chip superior to others. It just makes one more suitable to a given application than others.
I agree with Danny here.
I think most decisions engineers make are based on what they already know and have the tools for, then when finally there comes a project that is not possible with the available uC's + tools they decide to look further.
Still the current ARM offering is in the 3P's (price / packagesize / power) so good and wide that it is hard not to start.
Some project that will not fit on that 8 bitter will sooner or later come to your doorstep and you better be prepared.

 

Offline westfw

  • Super Contributor
  • ***
  • Posts: 4199
  • Country: us
Re: AVR8 vs Cortex-M???
« Reply #60 on: April 11, 2016, 07:57:40 am »
Quote
an AVR is obviously not meant to compete with CM4/CM7, just as a CM4/CM7/Xeon isn't meant to compete with 10F200.
Sure.  But the ARM marketing folk have been touting/advertising/etc the Cortex M series chips as "8 bit replacements" since the first Luminary Stellaris (the first available CM3) chips came out, and the question now is "when exactly does that make sense, and when does it not make sense?"
Why exactly would a 100pin 256k/64k CM3 chip (ATSAM3X4CA) NOT compete with a 100pin 256k/8k AVR chip (ATmega2560)? (at about the same price, BTW.  And the ARM has CAN, Ethernet, and USB not present on the AVR.  And I can jump the RAM to 512k/96k while the AVR is already "end of the line.")
 

Offline BravoV

  • Super Contributor
  • ***
  • Posts: 7547
  • Country: 00
  • +++ ATH1
Re: AVR8 vs Cortex-M???
« Reply #61 on: April 11, 2016, 09:20:46 am »
Comparing the AVR8 vs Cortex-M is just plain wrong since the beginning or from the 1st post guys !


To me, I feel ....

Especially using "feeling" to make the decision at such heavy technical and/or business driven/oriented subject, thats ain't right.

Better change the topic into art discussion.

My 2 cents.

Offline Jeroen3

  • Super Contributor
  • ***
  • Posts: 4078
  • Country: nl
  • Embedded Engineer
    • jeroen3.nl
Re: AVR8 vs Cortex-M???
« Reply #62 on: April 11, 2016, 06:19:29 pm »
An art discussion won't end either.
 

Offline technixTopic starter

  • Super Contributor
  • ***
  • Posts: 3507
  • Country: cn
  • From Shanghai With Love
    • My Untitled Blog
Re: AVR8 vs Cortex-M???
« Reply #63 on: April 12, 2016, 12:01:30 pm »
I'd stay clear of XMEGA though. I think ATMEL went backwards with that. The simplicity of accessing IO pins just about went out the window.
and AVR32- why bother when ARM is around.

If you need XMEGA you probably should take the step the cortex ARM. 

I used Codevision on AVR.

I use STM - L1, F3, F4, F7 and use  Rowley Crossworks IDE.

AVR32 and XMEGA are never something I would consider, so id Cortex-M7. My default processor choice go from tinyAVR to megaAVR to maybe Cortex-M3 to Cortex-M4 to Cortex-A7.

Since I am a UNIX person (OS X and Linux are my daily drivers) I used avr-gcc & avrdude for AVRs and clang/LLVM & OpenOCD for ARM.
« Last Edit: April 12, 2016, 12:03:14 pm by technix »
 

Offline Svuppe

  • Regular Contributor
  • *
  • Posts: 92
  • Country: dk
Re: AVR8 vs Cortex-M???
« Reply #64 on: April 12, 2016, 12:45:35 pm »
I'd stay clear of XMEGA though. I think ATMEL went backwards with that. The simplicity of accessing IO pins just about went out the window.

I am curious. What do you find troublesome with the IO of the XMega series?
I have used AVRs from the earliest 90S1200 to the XMega of today, and i haven't noticed any radical change in how IO should be handled. Yes, the XMega has more possibilities with pull configuration  (and extra registers to configure this), but in the end you still have the IN, OUT and DIRECTION ports just as the normal AVRs.
 

Offline JPortici

  • Super Contributor
  • ***
  • Posts: 3461
  • Country: it
Re: AVR8 vs Cortex-M???
« Reply #65 on: April 12, 2016, 03:26:19 pm »
Using pics, not avrs... but as mentioned before: in the end it's about complexity and how good you know the chips..

I'm a sucker for pic10 and pic12: really small footprints if needed, sub uA sleep current, advanced peripherals so that most time the only thing that the core actually do is move registers around and check flags. Same applies to dspics, when i need to do some math

why do i need 32 bits for that? you can use a ferrari to go from point a to point b, but it might be 10 meters away so you could just walk.
 

Offline zapta

  • Super Contributor
  • ***
  • Posts: 6190
  • Country: us
Re: AVR8 vs Cortex-M???
« Reply #66 on: April 12, 2016, 04:39:05 pm »
why do i need 32 bits for that? you can use a ferrari to go from point a to point b, but it might be 10 meters away so you could just walk.

Because if you drive those 10 meters, you don't need to learn walking, just driving. That is, why spending time learning niche skills and local optimizations?
 

Online nctnico

  • Super Contributor
  • ***
  • Posts: 26895
  • Country: nl
    • NCT Developments
Re: AVR8 vs Cortex-M???
« Reply #67 on: April 12, 2016, 04:54:28 pm »
I'm a sucker for pic10 and pic12: really small footprints if needed, sub uA sleep current, advanced peripherals so that most time the only thing that the core actually do is move registers around and check flags. Same applies to dspics, when i need to do some math

why do i need 32 bits for that? you can use a ferrari to go from point a to point b, but it might be 10 meters away so you could just walk.
Imagine you had shoes you could use for both walking and running at 100mph. That is what ARM gives you in one package: shoes to walk slow, run and be superman at the same time! That is why starting with an 8 bit architecture is so bad nowadays. It is a waste of time and effort because it gives you no advantage at all.
There are small lies, big lies and then there is what is on the screen of your oscilloscope.
 

Online Kleinstein

  • Super Contributor
  • ***
  • Posts: 14174
  • Country: de
Re: AVR8 vs Cortex-M???
« Reply #68 on: April 12, 2016, 05:24:35 pm »
If you really need it very small, very low standby current of direct 5 V interface the ARMs just don't do it. Another thing that is difficult with an ARM based µC is using the delay from code run time to get accurate timing - the simple 8 Bit µCs have very predictable timing and thus can use the execution speed for exact timing, even if this usually needs ASM coding.

Many applications just don't need a lot of CPU speed - so even an AVR running at 32 kHz can work.
 

Offline JPortici

  • Super Contributor
  • ***
  • Posts: 3461
  • Country: it
Re: AVR8 vs Cortex-M???
« Reply #69 on: April 12, 2016, 05:37:24 pm »
And limit yourself to only one option? what if you have to work with last year electronics? (i am thinking to start learning 8051 as it still pops up more frequently than i would expect)
 

Offline Jeroen3

  • Super Contributor
  • ***
  • Posts: 4078
  • Country: nl
  • Embedded Engineer
    • jeroen3.nl
Re: AVR8 vs Cortex-M???
« Reply #70 on: April 12, 2016, 05:49:06 pm »
8051 is very cheap because the IP (hdl design) is cheap, even open, and everyone can buy and use it. For ARM you pay royalties, and AVR/PIC are proprietary. Pushing the costs up.
You can do a lot of general purpose stuff with 8051, but during development you're maneuvering around the limitations of the architecture and the extra's built in by the vendor.
Not very suitable for rapid development though. But if you're looking to put away thousands of units or maybe you already know your way around 8051 it a great tool.
 

Offline dannyf

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: AVR8 vs Cortex-M???
« Reply #71 on: April 12, 2016, 07:54:17 pm »
"For ARM you pay royalties, a"

Of a typical asp for cm0 or a cm3/4 chip, how much of that is due to licensing?
================================
https://dannyelectronics.wordpress.com/
 

Offline Kjelt

  • Super Contributor
  • ***
  • Posts: 6460
  • Country: nl
Re: AVR8 vs Cortex-M???
« Reply #72 on: April 12, 2016, 08:12:40 pm »
In 2001 we wanted to include VHDL Arm core for a security project. We needed around 500 prototypes asked for a quote: came out $50000.- probably because under that amount they do not do anything at all  :palm:
We had to use an Altera NIOS core instead :(
 

Offline Scrts

  • Frequent Contributor
  • **
  • Posts: 797
  • Country: lt
Re: AVR8 vs Cortex-M???
« Reply #73 on: April 12, 2016, 08:28:45 pm »
In 2001 we wanted to include VHDL Arm core for a security project. We needed around 500 prototypes asked for a quote: came out $50000.- probably because under that amount they do not do anything at all  :palm:
We had to use an Altera NIOS core instead :(

Was that FPGA? Because in FPGA it probably would not run faster than Nios. On the other hand, LatticeMico32 is free on all platform.
 

Offline Kjelt

  • Super Contributor
  • ***
  • Posts: 6460
  • Country: nl
Re: AVR8 vs Cortex-M???
« Reply #74 on: April 12, 2016, 08:56:58 pm »
Thanks but as said that was 15 years ago in 2001 ;)
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf