r/attiny • u/ackarwow • 21h ago
Bare-metal AVR programming with Pascal. A five-lesson course
I've created a free, five-lesson (so far) course on bare-metal programming of AVR microcontrollers using Free Pascal. The course combines practical examples with a technical introduction to the language and low-level AVR programming.
Lesson 0 introduces Free Pascal for AVR and covers language fundamentals, hardware registers, bitwise operations, interrupts, inline assembly and linker sections.
Lessons 1–4 cover practical bare-metal programming using the ATtiny13, with examples involving LEDs, buttons and 7-segment displays.
The course uses AVRPascal IDE, a multiplatform development environment for Free Pascal targeting AVR microcontrollers. You can also use any text editor and the command-line toolchain.
All lessons are available here:
https://akarwowski.pl/index.php?page=electronics&lang=en#course
Feedback, especially critical feedback, is very welcome.




