Professional Documents
Culture Documents
A
TO
O N
T I
U C
D
T RO
IN
INTRODUCTION
Generally microcontrollers have power saving system, like idle mode or power saving mode
so overall it uses less power and also since external components are low overall
consumption of power is less. While in microprocessors generally there is no power
saving system and also many external components are used with it, so its power
consumption is high in comparison with microcontrollers.
Microcontrollers are compact so it makes them favorable and efficient system for
small products and applications while microprocessors are bulky so they are
preferred for larger applications
AVR FAMILY
AVRs are generally classified into following:
tinyAVR – the ATtiny series
0.5–16 KB program memory
6–32-pin package
Limited peripheral set
megaAVR – the ATmega series
4–256 KB program memory
28–100-pin package
Extended instruction set (multiply instructions and instructions for handling larger
program memories)
Extensive peripheral set
XMEGA – the ATxmega series
16–384 KB program memory
44–64–100-pin package (A4, A3, A1)
32-pin package: XMEGA-E (XMEGA8E5)
Extended performance features, such as DMA, "Event System", and cryptography
support
Extensive peripheral set with ADCs
ATMEGA 328 PIN DIAGRAM
PIN DESCRIPTION TABLE
PIN NUMBER DESCRIPTION FUNCTION
1 PC6 Reset
2 PD0 Digital Pin (RX)
3 PD1 Digital Pin (TX)
4 PD2 Digital Pin
5 PD3 Digital Pin (PWM)
6 PD4 Digital Pin
Positive Voltage
7 Vcc
(Power)
8 GND Ground
9 XTAL 1 Crystal Oscillator
PIN NUMBER DESCRIPTION FUNCTION
10 XTAL 2 Crystal Oscillator
11 PD5 Digital Pin (PWM)
12 PD6 Digital Pin (PWM)
13 PD7 Digital Pin
14 PB0 Digital Pin
15 PB1 Digital Pin (PWM)
16 PB2 Digital Pin (PWM)
17 PB3 Digital Pin (PWM)
18 PB4 Digital Pin
PIN NUMBER DESCRIPTION FUNCTION
18 PB4 Digital Pin
19 PB5 Digital Pin
Positive voltage for ADC
20 AVCC
(power)
21 AREF Reference Voltage
22 GND Ground
23 PC0 Analog Input
24 PC1 Analog Input
25 PC2 Analog Input
26 PC3 Analog Input
27 PC4 Analog Input
28 PC5 Analog Input
THANK YOU