
Embedded
Upload Firmware Without a Programmer Using an AVR Serial Bootloader
Install the Optiboot bootloader on an ATmega328P with an ISP programmer once, set the boot fuses, then upload sketches over a serial cable with avrdude.
7 min read
Tag
3 posts

Install the Optiboot bootloader on an ATmega328P with an ISP programmer once, set the boot fuses, then upload sketches over a serial cable with avrdude.

Use avr-libc set_sleep_mode, sleep_enable and sleep_cpu to power down an ATmega328P and wake on a pin change interrupt, with the race-free sequence.

Learn the three AVR port registers on an ATmega328P: DDRx sets direction, PORTx drives output or the pull-up, PINx reads and toggles, with avr-gcc examples.