3.1 - Basics of Microcontroller Atmega328P
3.1 - Basics of Microcontroller Atmega328P
AT
M
M
i
e
cr
g
F
o
a
Y
C
3
–
o
2
D
n
8
t
E
r
S
P
ol l e
…
r
.
3
H – VIT
.
B
1
asi cs
Vishwakarma Institute of Technology
FY - Department of Engineering, Sciences and Humanities
a) It is a MuP
USB
Reset
socket
Power Supply
Digital Output / PWM / Serial Pins
MuC - ATMega328P
devices which can interact with other devices and environment using
sensors and actuators.
Arduino is a open source hardware and software company
who has permitted manufacturing of Arduino boards and kits
by anyone.
etc.
3) Total of 28 pins
4) 14 pins are digital i/o pins. 6 of which can be used for PWM o/p
5) 6 pins are for analog input
6) Thus, 14 + 6 = 20 pins for i/o
7) Internal ADC is available. 3 pins for control of analog i/p
8) 2 pins for clock and 2 pins for power
9) 1 pin for Reset
10) Arduino UNO board uses 16MHz crystal frequency. But crystal
Features of ATMega328P
11) ATMega328P has 3 Ports – Port B, Port C and Port D.
12) Port B and Port D are digital ports – 8 pins each.
FY - Department of Engineering, Sciences and Humanities
Vishwakarma Institute of Technology
Pin 27 – PC4 – Analog pin/Serial bus data SDA / Ext. Interrupt pin
Pin 26 – PC3 – Analog pin / Ext. Interrupt pin
Pin 25 – PC2 – Analog pin / Ext. Interrupt pin
Pin 24 – PC1 – Analog pin / Ext. Interrupt pin
Pin 23 – PC0 – Analog pin / Ext. Interrupt pin
Pin PC0 to PC5 – Above 6 Analog pins can be programmed to handle
digital i/o data as well. (These are not dedicated analog pins)
35
FY - Department of Engineering, Sciences and Humanities
ATMe
Micro
g
C
a
o
a
3
FY – D
nt
2
n
r
8
ol
k
P
l er
B
3
a
s!
.
Th ESH – VIT
s
1
i cs