slide 1: WHAT IS AVR MICROCONTROLLER
An AVR microcontroller could be a form of device factory-made by Atmel that has specific
edges over different common chips however initial whats a microcontroller
The easiest method of considering its to check a microcontroller along with your laptop
that features a motherboard in it. on it motherboard could be a microchip Intel AMD
chips that has the intelligence RAM and EEPROM recollections and interfaces to
remainder of system like serial ports mostly USB ports now disk drives and show
interfaces.
A microcontroller has all or most of those options intrinsic to one chip therefore it doesn’t
would like a motherboard and plenty of elements LEDs as an example will be connected
on to the AVR. If you tried this with a microchip bang
AVR microcontrollers are available in totally different packages some designed for
through-hole mounting and a few surface mount. AVRs are out there with 8-pins to 100-
pins though something 64-pin or over is surface mount solely. Most of the people begin
with a DIL Dual in Line 28-pin chip just like the ATmega328 or the 40-pin ATmega16 or
ATmega32.
PC microprocessors are continuously a minimum of 32-bit and ordinarily currently 64-bit.
This suggests that they will method information in 32-bit or 64-bit chunks as theyre
connected to information buses this wide. The AVR is way less complicated and deals
with information in 8-bit chunks as its information bus is 8-bit wide though theres
currently associate AVR32 with 32-bit bus associated an ATxmega family with a 16-bit
information bus.
A laptop has associate software Windows or Linux and this runs programs like Word or
web mortal or Chrome that do specific things. Associate 8-bit microcontroller just like the
AVR doesn’t typically have associate software though it might run an easy one if needed
and instead it simply runs one program.
Just as your laptop would be useless if you didn’t install any programs associate AVR
should have a program put in to be any use. This program is hold on in memory intrinsic
slide 2: to the AVR not on associate external hard drive sort of a laptop. Loading this program
into the AVR is finished with associate AVR computer user typically once the AVR is
during a circuit or system thence AVR ISP or AVR in System computer user.
AVR ISP for AVR Microcontroller Programming
So whats a program A program could be a series of directions every terribly
straightforward that fetch and manipulate information. In most applications wherever
youd use associate AVR like a washer controller as an example this suggests reading
inputs checking their state and switch on outputs consequently. Typically youll got to
modify or manipulate the info or transmit it to a different device like associate digital
display or port.
A series of easy binary directions are accustomed do these basic tasks and everyone has
the same programing language instruction that humans will perceive. The foremost basic
method of writing a program for associate AVR is to use programing language although
you may write binary numbers if you would like to be pedantic.
Using programing language permits you to grasp much more regarding the operation of
the AVR and the way its place along. It’s additionally produces terribly little and quick
code. The disadvantage is that you simply because the computer user have to be
compelled to do everything as well as memory management and program structure
which may get terribly tedious.
To avoid this high level languages are progressively being employed to put in writing
programs for the AVR C specially however additionally Basic and Java derivatives. High
level implies that every line of C or Basic or Java code will translate into several lines of
programing language.
The compiler additionally deals with the program structure and memory management
therefore its a lot of easier. Ordinarily used routines like delays or math’s may be hold
on in libraries and reused terribly simply. The compiling program additionally deals with
larger numbers that take up over a computer memory unit 8-bits.
In my opinion writing AVR programs in C is like driving an automobile. Affirmative youll
be able to bed terribly simply however if one thing goes wrong you haven’t got a clue the
way to fix it and you can’t modify tough things like icy roads. Beginning with programing
language and writing therefore me straightforward programs allows you to perceive
whats occurring “under the hood” so you recognize however it works and might get the
foremost out of it. Then swap to C by all means that however a minimum of you recognize
however the AVR microcontroller fits along and its limitations.