Introduction To Arduino Before Exp1
Introduction To Arduino Before Exp1
2
Example of a Microcontroller: ATmega328
❑It also has 3 built-in Timers, two of them are 8 Bit timers while the third one is a
16-Bit Timer.
❑Arduino UNO is based on Atmega328 Microcontroller. It’s UNO’s heart.
❑It operates ranging from 3.3V to 5.5V but normally we use 5V as a standard.
❑Its excellent features include cost efficiency, low power dissipation, programming
lock for security purposes, real timer counter with a separate oscillator.
❑It’s normally used in Embedded System applications.
❑Moreover, ATmega 328 has several different features which make it the most
popular device in today’s market. These features consist of advanced RISC
architecture, good performance, 6 PWM pins, programmable Serial USART,
programming lock for software security, throughput up to 20 MIPS, etc.
3
4
ATmega328 Pins Description
Functions associated with the pins must be known in order to use the device appropriately:
❑ VCC is a digital voltage supply.
❑ AVCC is a supply voltage pin for analog to digital converter.
❑ GND denotes Ground and it has a 0V.
❑ ATmega-328 pins are divided into different ports which are given in detail below:
✓ Port A consists of the pins from PA0 to PA7. These pins serve as an analog input to convert from
analog to digital converters. If analog to digital converter is not used, port A acts as an eight (8) bit
bidirectional input/output port.
✓ Port B consists of the pins from PB0 to PB7. This port is an 8-bit bidirectional port having an internal
pull-up resistor.
✓ Port C consists of the pins from PC0 to PC7. The output buffers of port C have symmetrical drive
characteristics with source capability as well as a high sink.
✓ Port D consists of the pins from PD0 to PD7. It is also an 8-bit input/output port having an internal
pull-up resistor.
✓ AREF is an analog reference pin for analog to digital converter.
5
6
ATmega328 Memory
ATmega 328 has three types of memories
e.g., EEPROM, SRAM, etc. The capacity of
each memory is explained in detail below:
❑ Flash Memory has 32KB capacity. It has an
address of 15 bits. It is a Programmable Read
Only Memory (ROM) and non-volatile memory.
❑ SRAM stands for Static Random Access
Memory. It is a volatile memory i.e., data will be
removed after removing the power supply.
❑ EEPROM stands for Electrically Erasable
Programmable Read Only Memory. It has long-
term data.
7
ATmega328 General Purpose Registers
❑ ATmega-328 has thirty-two (32) General
Purpose Registers (GPRs).
❑ These all of the registers are part of Static
Random Access Memory (SRAM).
8
• ATmega328 and Arduino
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
References:
• http://www.circuitstoday.com/arduino-uno-pinout-schematics
39 39
Thanks for attending….
40