ATmega168

8-bit AVR® microcontroller

PDF datasheet

    
(PCINT14/RESET) PC61 •28PC5 (ADC5/SCL/PCINT13)
(PCINT16/RXD) PD0227PC4 (ADC4/SDA/PCINT12)
(PCINT17/TXD) PD1326PC3 (ADC3/PCINT11)
(PCINT18/INT0) PD2425PC2 (ADC2/PCINT10)
(PCINT19/OC2B/INT1) PD3524PC1 (ADC1/PCINT9)
(PCINT20/XCK/T0) PD4623PC0 (ADC0/PCINT8)
Vcc722GND
GND821AREF
(PCINT6/XTAL1/TOSC1) PB6920AVcc
(PCINT17/XTAL2/TOSC2) PB71019PB5 (SCK/PCINT5)
(PCINT21/OC0B/T1) PD51118PB4 (MISO/PCINT4)
(PCINT22/OC0A/AIN0) PD61217PB3 (MOSI/OC2A/PCINT3)
(PCINT23/AIN1) PD71316PB2 (SS/OC1B/PCINT2)
(PCINT0/CLKO/ICP1) PB01415PB1 (OC1A/PCINT1)
    
PinSymbolDescription
1(PCINT14/RESET) PC6reset (active low); port C
2(PCINT16/RXD) PD0port D
3(PCINT17/TXD) PD1port D
4(PCINT18/INT0) PD2external interrupt 0; port D
5(PCINT19/OC2B/INT1) PD3external interrupt 1; port D
6(PCINT20/XCK/T0) PD4port D
7Vccsupply voltage
8GNDground
9(PCINT6/XTAL1/TOSC1) PB6clock oscillator pin 1; port B
10(PCINT17/XTAL2/TOSC2) PB7clock oscillator pin 2; port B
11(PCINT21/OC0B/T1) PD5port D
12(PCINT22/OC0A/AIN0) PD6port D
13(PCINT23/AIN1) PD7port D
14(PCINT0/CLKO/ICP1) PB0clock output; port B
15PB1 (OC1A/PCINT1)port B
16PB2 (SS/OC1B/PCINT2)SPI slave select; port B
17PB3 (MOSI/OC2A/PCINT3)SPI master output/slave input; port B
18PB4 (MISO/PCINT4)SPI master input/slave output; port B
19PB5 (SCK/PCINT5)SPI master clock; port B
20AVccA/D converter supply voltage
21AREFanalog reference for A/D converter
22GNDground
23PC0 (ADC0/PCINT8)port C
24PC1 (ADC1/PCINT9)port C
25PC2 (ADC2/PCINT10)port C
26PC3 (ADC3/PCINT11)port C
27PC4 (ADC4/SDA/PCINT12)I2C Data pin; port C
28PC5 (ADC5/SCL/PCINT13)I2C Clock pin; port C

Specifications

(typical values under recommended operating conditions, unless specified)
ParameterValueUnit
Flash memory4K (ATmega48)
8K (ATmega88)
16K (ATmega168)
32K (ATmega328P)
bytes
Internal SRAM512 (ATmega48)
1K (ATmega88)
1K (ATmega168)
2K (ATmega328P)
bytes
EEPROM256 (ATmega48)
512 (ATmega88)
512 (ATmega168)
1K (ATmega328P)
bytes
Programmable I/O lines23
Maximum clock frequency20MHz

Note: Data is maintained by an independent source and accuracy is not guaranteed. Check with the manufacturer's datasheet for up-to-date information.