Professional Documents
Culture Documents
1.TinyAVR :
•Less memory
•small size
•suitable only for simpler applications.
2.MegaAVR :
•These are the most popular ones
•having good amount of memory (upto 256 KB) higher
number of inbuilt peripherals
•suitable for moderate to complex applications.
3.XmegaAVR :
Used commercially for complex applications, which
require large program memory and high speed.
AVR microcontrollers are fast:
•executes most of the instructions in single
execution cycle.
•AVRs are about 4 times faster than PICs.
•they consume less power and can be operated in
different power saving modes.
• Free IDE.
•Available in Egyptian market.
comparison between the three most commonly used
families of microcontrollers:
AVR follows Harvard Architecture :
• Within one single clock cycle, AVR can take inputs from two general
purpose registers and put them to ALU for carrying out the requested
operation.
•AVR does not have any register like accumulator as in 8051 family of
microcontrollers.
ATmega16 Flavors :
Example : We connect the pin PB0 to a switch, and the port A pins to a LEDs
Some I/O port applications
As Output:
– LEDs – Buzzer – Relay – …
As Input:
– Switches – Digital sensors – Signal from another uC – PC
parallel port
Example of I/O ports Interfacing : switch and LEDs
R = 10K R = 220-330