6 ms·
> What draws people to start projects with AVR in 2022? Very small current draw, particularly in sleep mode (picoamps), otherwise good enough processing power
by mihaigalos 4y ago
> What draws people to start projects with AVR in 2022?
Very small current draw, particularly in sleep mode (picoamps), otherwise good enough processing power up until 32 Mhz.
The craft is complex because it requires both software and hardware (electrical engineering) knowledge for just about anything more than blinking a led.
It's fascinating in its own, when things work. When they don't (faulty wiring, lack of electrical contact, etc.), it's very frustrating.
> Is it simply that AVRs are available in through-hole packages?
Perhaps, for small projects. If you go a bit more advanced, you can order PCBs very cheaply online (5$ for 5 pcs).
> Are they perceived to be easier to start with, compared to small ARMs for instance?
In the end, you write code for a compiler so from your perspective, nothing changes.
- josephcsible 4y ago> In the end, you write code for a compiler so from your perspective, nothing changes. Isn't this only true if you're only using the CPU and not any of the other onboard hardware? For example, consider this small Arduino program I wrote: https://arduino.stackexchange.com/a/56595/33351 https://arduino.stackexchange.com/a/56595/33351 It would need to be entirely discarded and rewritten from scratch to work on any non-AVR microcontroller.
- mihaigalos 4y agoYes, you are correct. But in most cases, you would use a driver and abstract away what individual registers get read/written. The HAL can be taken from anywhere, really. Doesn't need to be avrgcc/Arduino. The registers in the link are C macros resolving to uint8_t*, pointing to memory locations where you read/write to.