Author Topic: PIC versus Atmel/ESP/STM/etc.  (Read 6770 times)

0 Members and 1 Guest are viewing this topic.

Offline barshatriplee

  • Regular Contributor
  • *
  • !
  • Posts: 130
  • Country: bd
Re: PIC versus Atmel/ESP/STM/etc.
« Reply #25 on: April 05, 2023, 05:49:39 am »
The choice can come out differently for different applications. But considering the cost, people are inclined to STM32 more. Here are some articles that you may find helpful.

https://www.wellpcb.com/pic32-vs-stm32.html
https://titoma.com/blog/stm32-pic32-manufacturing
 

Offline 0xFFF0Topic starter

  • Regular Contributor
  • *
  • Posts: 87
  • Country: de
Re: PIC versus Atmel/ESP/STM/etc.
« Reply #26 on: April 05, 2023, 11:23:08 am »
Development cycles are extremely fast these days. I don't want to deal with data sheets and registers for months. What every developer needs, are powerful libraries and a large number of sample applications. Almost all MCUs that are not in the Ardunio environment have lost.
 

Offline voltsandjolts

  • Supporter
  • ****
  • Posts: 2300
  • Country: gb
Re: PIC versus Atmel/ESP/STM/etc.
« Reply #27 on: April 05, 2023, 11:41:53 am »
I don't think the OP wanted an answer, they just started this thread to express their (blinkered, misguided) opinion.
 

Online JPortici

  • Super Contributor
  • ***
  • Posts: 3461
  • Country: it
Re: PIC versus Atmel/ESP/STM/etc.
« Reply #28 on: April 05, 2023, 12:23:02 pm »
I don't think the OP wanted an answer, they just started this thread to express their (blinkered, misguided) opinion.

Which, IIRC, i not their first time

Development cycles are extremely fast these days. I don't want to deal with data sheets and registers for months. What every developer needs, are powerful libraries and a large number of sample applications. Almost all MCUs that are not in the Ardunio environment have lost.

You have the right to your opinion  :-//
 

Offline newbrain

  • Super Contributor
  • ***
  • Posts: 1719
  • Country: se
Re: PIC versus Atmel/ESP/STM/etc.
« Reply #29 on: April 05, 2023, 12:37:55 pm »
Almost all MCUs that are not in the Ardunio environment have lost.
You might have misspelled lots.
Nandemo wa shiranai wa yo, shitteru koto dake.
 
The following users thanked this post: voltsandjolts, Kim Christensen

Offline peter-h

  • Super Contributor
  • ***
  • Posts: 3700
  • Country: gb
  • Doing electronics since the 1960s...
Re: PIC versus Atmel/ESP/STM/etc.
« Reply #30 on: April 05, 2023, 01:42:14 pm »
I would answer this a bit differently. Most applications can be done by most CPUs, within broad limits. But some companies discontinue parts much more readily than others. I used an Atmel part, it went OEL, I started a design with a replacement from Atmel, that got dropped even before I got around to doing the PCB (we had a fair stock of the old part). So, no more Atmel for me.

I would trust ST and (from many years ago; not sure about present) Hitachi/Renesas.
Z80 Z180 Z280 Z8 S8 8031 8051 H8/300 H8/500 80x86 90S1200 32F417
 

Offline NorthGuy

  • Super Contributor
  • ***
  • Posts: 3147
  • Country: ca
Re: PIC versus Atmel/ESP/STM/etc.
« Reply #31 on: April 05, 2023, 02:39:25 pm »
Development cycles are extremely fast these days. I don't want to deal with data sheets and registers for months. What every developer needs, are powerful libraries and a large number of sample applications.

No need. Just use ChatGPT and it'll write the program for you instantly and much better than you ever could.
 
The following users thanked this post: JPortici

Online SiliconWizard

  • Super Contributor
  • ***
  • Posts: 14487
  • Country: fr
Re: PIC versus Atmel/ESP/STM/etc.
« Reply #32 on: April 05, 2023, 06:53:38 pm »
Almost all MCUs that are not in the Ardunio environment have lost.

Really! :-DD
 

Offline james_s

  • Super Contributor
  • ***
  • Posts: 21611
  • Country: us
Re: PIC versus Atmel/ESP/STM/etc.
« Reply #33 on: April 05, 2023, 06:59:18 pm »
The best microcontroller for a project is usually the one you are familiar with and know how to develop for. If I were starting out today I'd probably go with STM32 but since I know AVR I've stuck with the 8 bit AVRs, they're adequate for most of my needs. For other stuff there is the ESP8266 and ESP32, I use the Arduino framework on those, but Arduino is really only good for hobby projects.
 
The following users thanked this post: bookaboo, peter-h

Offline voltsandjolts

  • Supporter
  • ****
  • Posts: 2300
  • Country: gb
Re: PIC versus Atmel/ESP/STM/etc.
« Reply #34 on: April 05, 2023, 07:03:49 pm »
^ Yeh. I think AVR MCUs + avr-gcc is the best 8-bit development experience.
 

Offline westfw

  • Super Contributor
  • ***
  • Posts: 4199
  • Country: us
Re: PIC versus Atmel/ESP/STM/etc.
« Reply #35 on: April 05, 2023, 10:28:36 pm »
Quote
AVR MCUs + avr-gcc is the best 8-bit development experience
how about 8051 with Keil (say, using the SiLabs advanced 8051 chips and their free version of the compiler/IDE)?
(Has someone used both enough to compare them?  I'm not interested in "8051 isn't really designed for use with C" arguments...)


Keil IDE and compiler have a good reputation, except for the price, and the SiLabs deal negates that...

 

Online SiliconWizard

  • Super Contributor
  • ***
  • Posts: 14487
  • Country: fr
Re: PIC versus Atmel/ESP/STM/etc.
« Reply #36 on: April 05, 2023, 10:38:07 pm »
You can't beat a Z80 with Turbo Pascal 3.0!
 

Online brucehoult

  • Super Contributor
  • ***
  • Posts: 4039
  • Country: nz
Re: PIC versus Atmel/ESP/STM/etc.
« Reply #37 on: April 05, 2023, 10:46:04 pm »
You can't beat a Z80 with Turbo Pascal 3.0!

I never used TP3, but from memory I could beat Turbo Pascal 1.0 with my eyes closed. On suitably small functions, with enough time to spend.

It was massively better than any compiler for 6502 at the time though. Maybe even now.
 

Offline nigelwright7557

  • Frequent Contributor
  • **
  • Posts: 690
  • Country: gb
    • Electronic controls
Re: PIC versus Atmel/ESP/STM/etc.
« Reply #38 on: April 05, 2023, 11:14:45 pm »
I have sort of got bogged down in PIC.
I have been programming then since mid 1980's.
I have so many projects I can draw on for functions like USB, FFT etc.
Why reinvent what I already have in abundance ?

The current chip shortage is a nuisance, I have to buy what Microchip have in stock then convert my code to that.

 

Offline peter-h

  • Super Contributor
  • ***
  • Posts: 3700
  • Country: gb
  • Doing electronics since the 1960s...
Re: PIC versus Atmel/ESP/STM/etc.
« Reply #39 on: April 06, 2023, 06:35:00 am »
Big mistake of Zilog to not bring out a Z80 based microcontroller. They owned the world, and gave it away.

They had all the peripherals anybody might want.

The chip shortage is over, but the distis are desperately trying to prop up the cliff before it breaks off completely.
« Last Edit: April 06, 2023, 07:35:57 am by peter-h »
Z80 Z180 Z280 Z8 S8 8031 8051 H8/300 H8/500 80x86 90S1200 32F417
 

Offline westfw

  • Super Contributor
  • ***
  • Posts: 4199
  • Country: us
Re: PIC versus Atmel/ESP/STM/etc.
« Reply #40 on: April 06, 2023, 07:47:48 am »
Quote
Big mistake of Zilog to not bring out a Z80 based microcontroller.
They did, eventually.  The whole EZ80Acclaim series, apparently introduced in 2001.
But it was too little, too late.  Or perhaps too much, too late - the smallest current chip is a 100pin QFP for $10; I don't remember them ever doing a low pin count or low-priced uC, and those seem to have been what captured peoples' imaginations...


In the early days, companies without a flash process were at a significant disadvantage.  And Z80 programmers expected RAM-rich systems by then.
 

Offline mikerj

  • Super Contributor
  • ***
  • Posts: 3240
  • Country: gb
Re: PIC versus Atmel/ESP/STM/etc.
« Reply #41 on: April 06, 2023, 07:50:05 am »
Quote
AVR MCUs + avr-gcc is the best 8-bit development experience
how about 8051 with Keil (say, using the SiLabs advanced 8051 chips and their free version of the compiler/IDE)?
(Has someone used both enough to compare them?  I'm not interested in "8051 isn't really designed for use with C" arguments...)


Keil IDE and compiler have a good reputation, except for the price, and the SiLabs deal negates that...

The 8051 was the first microcontroller I ever used, though that was back when C compilers were available only to companies with deep pockets so it was assembler all the way.  The memory model of the 8051 architecture is rather awkward though (even compared to the 8 bit PICs) so I wouldn't say they are the ideal introduction to micros these days.  IME AVRs are in a different league in terms of ease of use for a noob.
 

Offline mikeselectricstuff

  • Super Contributor
  • ***
  • Posts: 13748
  • Country: gb
    • Mike's Electric Stuff
Re: PIC versus Atmel/ESP/STM/etc.
« Reply #42 on: April 06, 2023, 07:51:47 am »
I have sort of got bogged down in PIC.
I have been programming then since mid 1980's.
I have so many projects I can draw on for functions like USB, FFT etc.
Why reinvent what I already have in abundance ?

The current chip shortage is a nuisance, I have to buy what Microchip have in stock then convert my code to that.
At least Microchip have had some stock of some parts through the shortage, whearas STM32 people have been mostly screwed.
Youtube channel:Taking wierd stuff apart. Very apart.
Mike's Electric Stuff: High voltage, vintage electronics etc.
Day Job: Mostly LEDs
 

Offline mikeselectricstuff

  • Super Contributor
  • ***
  • Posts: 13748
  • Country: gb
    • Mike's Electric Stuff
Re: PIC versus Atmel/ESP/STM/etc.
« Reply #43 on: April 06, 2023, 07:54:39 am »
Quote
Big mistake of Zilog to not bring out a Z80 based microcontroller.
They did, eventually.  The whole EZ80Acclaim series, apparently introduced in 2001.
But it was too little, too late.  Or perhaps too much, too late - the smallest current chip is a 100pin QFP for $10; I don't remember them ever doing a low pin count or low-priced uC, and those seem to have been what captured peoples' imaginations...


In the early days, companies without a flash process were at a significant disadvantage.  And Z80 programmers expected RAM-rich systems by then.
Zilog did bring out a range of low-end MCUs, Z86 series, intended to compete with PIC16C5x - the pinout was compatible if you turned it upside down. ISTR it was used a lot for universe remote controls as they had licensed a library of IR codes.
Youtube channel:Taking wierd stuff apart. Very apart.
Mike's Electric Stuff: High voltage, vintage electronics etc.
Day Job: Mostly LEDs
 

Online brucehoult

  • Super Contributor
  • ***
  • Posts: 4039
  • Country: nz
Re: PIC versus Atmel/ESP/STM/etc.
« Reply #44 on: April 06, 2023, 08:23:13 am »
The memory model of the 8051 architecture is rather awkward though (even compared to the 8 bit PICs) so I wouldn't say they are the ideal introduction to micros these days.  IME AVRs are in a different league in terms of ease of use for a noob.

They are, though they are not without warts.

  • Only three pointer register pairs
  • weird register that must always be 0 -- except when a mul just overwrote it
  • limitations on registers for many instructions
  • different instructions to access data in flash (fixed on the latest ones I think?)

RISC-V has got 6800-level simplicity and orthogonality, but with registers to burn. RV32I is as sparse and easy to learn as any 8 bitter, and they now start from $0.10 (in qty 50) for a C-friendly, gdb-friendly, flash-based microcontroller (CH32V003).
 

Offline Kleinstein

  • Super Contributor
  • ***
  • Posts: 14210
  • Country: de
Re: PIC versus Atmel/ESP/STM/etc.
« Reply #45 on: April 06, 2023, 12:45:29 pm »
Most µC programming is today done in C or a similar languish. So the ASM details and memory layout does not matter that much, if there is a well working compiler.
The 8051 and PIC16 memory organization is a bit awkward and does not make it easy to the compiler, e.g. with larger structures in RAM.
In most areas the AVRs are easier, but they have the problem with seprate adress ranges for RAM and Flash, e.g. causing the separaet prog_mem pointers in GCC.
Making it easy for the compiler got them a relatively good GCC suport and this helped a lot.
AFAIK the is "fixed" to some degree with newer models (mapping some of the ROM to RAM space)

The NUL register with the AVR GCC is not a fault of the AVRs, but a fault if GCC's default register use, tha uses register 0 for the "fixed" 0 value - they should have changed this when the mega chips with HW muliplier came out. One could still change this , if one recompiles as the libraries.  Though late this could still be changed. The resoring of the zero value is handled by the compiler and the normal programmer does not have to care (maybe with inline ASM that used the MUL commands) - so I would consider this more like a missed optimization.

For a beginner the quality of the manuals / data-seets and the quality of the available tools is more important than the actual µC. With lacking of buggy decumentation or compiler a µC is pretty much useless.
 

Offline peter-h

  • Super Contributor
  • ***
  • Posts: 3700
  • Country: gb
  • Doing electronics since the 1960s...
Re: PIC versus Atmel/ESP/STM/etc.
« Reply #46 on: April 06, 2023, 01:53:52 pm »
Quote
But it was too little, too late

Yes, in a world where most code (in that sector) was done in assembler, the mfg had to carve the market for any new CPU out of solid rock.

The small chips (of any mfg) are still mostly programmed in asm.
Z80 Z180 Z280 Z8 S8 8031 8051 H8/300 H8/500 80x86 90S1200 32F417
 

Offline voltsandjolts

  • Supporter
  • ****
  • Posts: 2300
  • Country: gb
Re: PIC versus Atmel/ESP/STM/etc.
« Reply #47 on: April 06, 2023, 02:12:25 pm »
The 8051 and PIC16 memory organization is a bit awkward and does not make it easy to the compiler, e.g. with larger structures in RAM

The AVR memory layout is more pleasant to both the compiler and programmer.
Keil C51 is impressive and has extended 8051 architecture lifetime by decades, but data/idata/pdata/xdata qualifiers are a nuisance.
A linear RAM space is oh so nice.
 

Offline mikeselectricstuff

  • Super Contributor
  • ***
  • Posts: 13748
  • Country: gb
    • Mike's Electric Stuff
Re: PIC versus Atmel/ESP/STM/etc.
« Reply #48 on: April 06, 2023, 02:53:16 pm »
Quote
The small chips (of any mfg) are still mostly programmed in asm.
I doubt that - it's perfectly feasible to (carefully) use C on tiny parts. I've done various designs with both application code and a bootloader on a 512-word 10F322, all in C

Youtube channel:Taking wierd stuff apart. Very apart.
Mike's Electric Stuff: High voltage, vintage electronics etc.
Day Job: Mostly LEDs
 

Offline westfw

  • Super Contributor
  • ***
  • Posts: 4199
  • Country: us
Re: PIC versus Atmel/ESP/STM/etc.
« Reply #49 on: April 06, 2023, 05:19:28 pm »
Quote
Zilog did bring out a range of low-end MCUs, Z86 series
Those were Z8, not Z80, so they had no chance of winning the Z80-user market.


Quote
[AVR] are not without warts.
Only three pointer register pairs
Three pointers, four pairs for use with ADIW/SBIW instructions, and all 32 for MOVW.  Not all AVRs, BTW.

Quote
weird register that must always be 0 -- except when a mul just overwrote it
A compiler convention, not architecture.  avr-gcc chose R1 before there was a multiply instruction, which was a mistake. (RISC-V does something similar - An "always 0" register, right?  Although that IS at the ISA level, and doesn't have any weird exceptions.)
Quote
limitations on registers for many instructions
Mostly, the "immediate operand" instructions only work on the upper 16 registers (of 32 total.)
And the weird (newer) instructions like SPM, MUL, etc.
Quote
different instructions to access data in flash (fixed on the latest ones I think?)
only "fixed" on new chips with 48k or less of flash.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf