133 points · by mofosyne · 1w ago · 20 comments
> Update 2014-01-07:
> It actually works on a ATtiny 10 now, yay!...
>
> Update 2014-03-19:
> I published a more detailed write-up...
>
> Source: https://github.com/cpldcpu/u-wire
---
> Flash: 988 of 1024 bytes used (96.4%)
> SRAM: 28 (variables)+2 (stack) of 32 bytes used (93.8%)
>
> This is most likely the most complex firmware ever loaded into an ATtiny10!
>
> Source: https://cpldcpu.com/2014/03/19/%c2%b5-wire-usb-on-an-attiny-10
It felt like it was devalued by a sorrowful LLM/AI, but no… The person achieved the whole code manually.Considering recent times… This is an authentic, real achievement that may inspire and support someone else and is to be kept treasured in the history with genuine glory, honor, and dignity.
Thank you… Thank you heartfelt for being an actual engineer, developer with authentic experience to be actually proud of, and held up as an example!
You can memorize the whole instruction set and write assembly if you wish, but can also program C, C++ and even Rust now. The tooling is accessable and the chips are cheap and easily sourced.
I once used a bitbanged USB on a t85 and thought it was barely possible, but this is another level. Impressive!
There is even the AVR DU with official USB support now.
AVR remains as simple and easy to understand as ever. Just with an updated coat of fresh paint. Faster ADC, DAC, dual power supply, 1.8V operation at full speed, same 5V support as ever, etc. etc.
Microchip, for some reason, decided to rebrand like in 2022.
They are called AVR DD, DA, DB, EA, EB, and DU now.
They are better than both ATtiny and ATmegas of old. But the rebranding seems to have been a mistake IMO. I feel like a lot of hobbyists missed the name switch.
The AVR DD is cheaper, lower power and (if you buy VFQN packages) smaller than any ATtiny ever was. They are good products IMO if you only need an 8-bitter still in 2026.
---------
The Cortex M0+ parts have dropped down below $1 however, but they still seem to have worse peripherals than an AVR DD or AVR EA. The ADC, AC, DAC and LUTs offered by AVR remains legendary.
But if you want something like a 2014 era ATMega or ATTiny but 32-bit, well yeah those Cortex M0+ chips are possibly a superior choice. Comparable peripherals to the 8-bitters of the 2010s but with more SRam and Flash.
I would say that the standout Cortex M0+ chip line is TI's MSPM0+ line, which come in with ATMega328 like peripherals but like 50cents and modern 32-bit ... Or you can buy the more expensive ones with OpAmps.... Even fancy OpAmps like chopper OpAmps or self-zeroing OpAmps (or regular rail to rail OpAmps, etc. etc).
i can easily get years of runtimes in LF parts too. while its peripherals are not particularly great at low power vs say, a msp430 or efm8sb, it simply has so few it comes out way ahead