Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Tutorial for AVR MCU programming for beginner

polashd

Member
I’m a newbie (almost, learned some basic coding using winavr couple of years ago, from youtube channel of ‘Patrickhood D.’, forgot most,). Now I want to start over again from the very basic. I want to use ‘Microchip studio’/ ‘Atmel studio’, AVRISP MK2, AVR MCU’s (like Atmega, AtTiny series).

I searched a lot in youtube and internet for this type of tutorials (it’s a very tedious task). Found many results. Failed to find any playlist which teaches from scratch to moderate level for a new beginner (there are many standalone tutorials or with few videos).

Can anyone pls suggest me of any detail tutorials in youtube (preferable) or in internet?
 
Consider looking at block language coding as well. Fast way of getting solutions, from
simple to web based.

Tuniot
Blockly US
Scratch
NodeRed
Visuino
Ardublock

Examples :


https://www.electro-tech-online.com/threads/help-please.162836/#post-1416676 Post #5

https://www.edaboard.com/threads/gui-codeless-processor-design.397358/#post-1708529 Talking Voltmeter

I use C for more indepth designs, but love the block stuff for speed of design, as I am a visual learner.....

The block languages span AVR, ATTINY, to ESP8266 and ESP32, so quite versatile.

I use a Nano or UNO boards configed in Arduino as ISP to program ATTINY chips.


Regards, Dana.
 
Last edited:
For a real good beginner description I'll seeking for a long Time.
When You are familiar with AVRGCC it should be no problem to use MICROCHIP Studio in C.
The programming Tool AVRISP MKII doesn't support the newer Tiny or AVRxxDBxx Controllers with UPDI Programming Port.
When You don't have a funtional Programmer I would suggest to use Microchip SNAP.
It support's the newer UPDI Mode for Programming and debugging and works with the PIC Series too.
A big problem to start over with the Controllers is to use the now used names of Functions and Register's.
I use CodevisionAVR to create a new Project with the Automatic Programm Generator ( Code Wizzard ).
Then I copy the generated Files into Studio and finish the Programm.
So the most Register Names would work.

A little Tip:
When You searching for where a Name or Function is defined.
Go to the Function and Press ALT-G and the Item would be shown.

I working on 2 Projects with an AVR32DB32 now ;)
 

Latest threads

Back
Top