Skip to content
0:00 / 0:00

#avr#atmega328#arduino

Learning AVR-C Episode 1: Introduction

humanHardDrive

47K subscribers • 1 video on Hallway

YouTube
  • Recommended by 2 people: 2 in engineering communities.
  • A classic. People kept recommending it from 2017 to 2022.

Beginner. No background in the topic needed.

218K views14 years ago2 recommendations

HardwareProgramming languagesEmbedded systemsC

This tutorial introduces AVR-C programming for microcontrollers, explaining the tools and setup needed to program Arduino hardware without the abstraction layer.

This is the first in a line of tutorials taking a deeper look at what it is exactly that makes the Arduino tick. In this tutorial we look at what is necessary to go this route of programming. Remember that this is much more complicated than using the Arduino IDE thus it requires more programming know-how. You've been warned. AVRDude Assistant: the software I wrote to make using AVRDude a little more habitable. All the necessary files are included, no need for searching. mediafire.com/download.php?b1jq94l1qs329ds AVR Pocket Programmer: sparkfun.com/products/9825 AVR Studio 5: atmel.com/Images/as5installer-stable-5.1.208-full.exe Atmega328 Datasheet: atmel.com/Images/doc8271.pdf

Why it's here

2 people recommend this

What people say. Recommended for learning bare-metal embedded C programming on Arduino hardware without the Arduino IDE abstractions.

u/Im_intin r/embedded • Recommends

On “Choosing a board for a complete beginner.”

You've been using arduinos, so why not continue with the same hardware without the arduino abstraction layer? I don't recommend moving to STM32 just yet. Those have just as much abstraction as arduinos, but unlike with AVRs, it's a lot more difficult to uncover the inner workings. Moreover, if you skip 8-bitters, you'll never learn any assembly (I'm sure there are people programming STM32 with assembly but they are about as rare as unicorns). With 8-bit MCUs without HAL you'll learn some assembly by osmosis even if you never write a single assembly program. P.S. Don't trust my opinion — instead give AVR C a try, and decide if it's for you. link to this video

u/Theblob789in r/embedded • Recommends

On “How do i check if my Atmega328Ps are not fried”

…er provided IDEs (like microchip studio) will allow for code to be compiled and flashed directly onto the processor with the IDE itself. This is done with files that are created automatically which will determine what parts of the binary should be flashed onto the parts of the processors memory. This youtube series goes over a lot of the basics: link to this video…