Create an account to leave a comment.
Already have an account?
I'd say start with something usual as with any other MCU/platform - RTFM & Blink :) So that means datasheet & simple blink program for a start. Fortunately AVR has almost everything you need to get started in only one Complete Datasheet PDF.
If you don't have any AVR at hand yet, order some popular and old part like atmega8(a), atmega168, atmega328(p), etc. There is a lot of information on them so you won't get any issues getting examples on code.
Also I'd say some cheap avrdude programmer, like USBAsp, should be more than enough for a start. You can live without debugger to get started at least. I think now you can get PICKit 4 or a cheap Snap official debugger later. They don't support every AVR part, but most widely used are usually supported.
Are you sure? yes | no
Try my little beast! :) https://hackaday.io/project/165726-xling
I started with some ATmega and ATtiny DIP chips and an AVR Dragon to upload programs to them, operated using the Atmel Studio IDE. But that was back before Arduino was popular. Nowadays I'd say download the Arduino IDE, buy an Uno or Nano, and study the example programs. And as Pierre-Loup said, read the ATmega328P datasheet (this is the chip used in Uno and Nano) to see what all it's capable of.
yeahh I am going for datasheet stuffs , Is it possible to program ATmega chips without using arduino IDE and board .Thank you for comment
Yes, you can. Atmel has a development platform.You can also start from scratch, but that means collecting every tools that the Arduino IDE aggregates of you : a compiler (I believe it's GCC), the uploader (avrdude), and of course making a makefile and hand-managing dependencies for your projects.The IDE has its drawbacks, but it greatly implifies things !For boards, Atmel has its dev boards, but they are way more expensive than Arduinos one.Some Teensy (and others probably) use CPU naming (port + number) for pins.Remember that what makes an Arduino board is mainly the tool used for programming : physically they usually follow closely (sometimes part for part !) the layout recommendation from the applications notes. They just have the silkscreen using the conventions used by the language.
I'd start with Arduino. The IDE and the boards.
I know a little about arduino like writing and uploading codes
may I should learn more about their hardware parts
and thank you for comment
I don't know exactly what you intend to do, but the Arduino IDE has one more advantage : it implements a lot (almost all) of the peripherals available on the chip. I learnt a lot by reading the code from Arduino and comparing it to the datasheet. Or reading datasheets and then reading the code.On the use of peripherals, and on the way a complex project can be articulate.
There are also tons of tutorials online you can google something like "avr beginner tutorial" to find. Really the best resource though is like Pierre-Loup suggested and getting an easy to start with development board like an arduino.
ayeee sir and thank you for suggestions
From the datasheet of the concerned part(s).And from application notes from Atmel (now microchip).
that will be a great idea thanks a lot
© 2020 Hackaday