4 ms·
> and has more powerful peripherals. I severely doubt that. On a G0? AVR DB has 3x OpAmps. AVR EA and AVR EB have a x16 gain differential amplifier on the ADC
by dragontamer 2y ago
> and has more powerful peripherals.
I severely doubt that. On a G0?
AVR DB has 3x OpAmps. AVR EA and AVR EB have a x16 gain differential amplifier on the ADC (!!!).
The peripherals on the AVR Dx and AVR Ex series are just out-of-this-world good. And unlike ESP32, the ADC has good linear qualities and reasonable accuracy.
------
Even the "runt" of the bunch, the AVR DD (fewest features / cheapest price) has an Event System and Programmable Logic. You get ~4x 3-LUTs + 2x 1-bit memory that can perform operations on your inputs before the AVR Core/CPU even wakes up.
In fact, there's a sample demo of AVR Programmable Logic + AVR Event System (which is a "router" to tie inputs and outputs more flexibly. Its not a perfect router but its better than nothing) + ties it to AVR Timers, so that a quadrature-encoder could be offloaded outside of the core. https://ww1.microchip.com/downloads/en/AppNotes/00002434A.pdf https://ww1.microchip.com/downloads/en/AppNotes/00002434A.pd...
--------
STM32 G0-series is somewhat comparable to AVR DD in that the STM32 G0-series is "barebones". But the AVR DD's "barebones" has more features than STM32 G-series.
Now STM32 G0 has a lot more SRAM and MHz. But peripherals? Peripherals is where the PIC and AVR series shines. The only competitor to peripherals is like... TI's new MSP M0 line (which also ships with 1 to 3 OpAmps... zero-drift / chopper OpAmps to boot).
If you want a comparable 32-bit processor, I'd go to TI MSP M0 (also ARM but TI is adding an event-system, OpAmps, and other nice low-level peripherals that are familiar to the AVR Dx users)
--------
STM32 does have OpAmps / Event Systems and all that good stuff. But they're locked to the more expensive G4 series.
-------
Ultimately, STM32 and AVR Dx aren't competing in the same league. AVR Dx is more of a competitor to your I2C ADCs or simple logic (now that AVR Dx and Ex have Four 3-LUTs, you have a surprising amount of glue-logic available that can take the place of old 7xxx chips).
PIC and AVR core sucks. Its all about the peripherals. (Well.... AVR and PIC are also absurdly power-efficient. In part because of how well designed the peripherals are)