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 ;)
 
Hi Danadak.. It wasn't aimed at you We all know you love block language..
I did not take it that way, just happened to stumble across the unanswered post, not paying
attention to date, and posted.

Coming from the paper tape/ punched card/toggle switch era love it all. Quite a ride,
still remember C intro and all the problems with the compilers and aggravating exception
lists. Processor part bug lists galore. I worked on a semiconductor test system that was
way behind in docs, so had to write test vectors to figure out how the cpu worked.

The block languages remove all the strong typing, carrying a 500 page C book on you at all times.
With the intro of memory rich processors made this all possible. And for visual learners,
or impatient fidgety gotta have this now, real rapid code creation. One limitation is debug
a tad limited.

Block is not appropriate for all designs, just one more tool in the toolbox.

Its all good.

Regards, Dana.
 

Latest threads

New Articles From Microcontroller Tips

Back
Top