ATmega168 Atmel Corporation, ATmega168 Datasheet - Page 291
![no-image](/images/manufacturer_photos/0/0/79/atmel_corporation_sml.jpg)
ATmega168
Manufacturer Part Number
ATmega168
Description
Manufacturer
Atmel Corporation
Specifications of ATmega168
Flash (kbytes)
16 Kbytes
Pin Count
32
Max. Operating Frequency
20 MHz
Cpu
8-bit AVR
# Of Touch Channels
16
Hardware Qtouch Acquisition
No
Max I/o Pins
23
Ext Interrupts
24
Usb Speed
No
Usb Interface
No
Spi
2
Twi (i2c)
1
Uart
1
Graphic Lcd
No
Video Decoder
No
Camera Interface
No
Adc Channels
8
Adc Resolution (bits)
10
Adc Speed (ksps)
15
Analog Comparators
1
Resistive Touch Screen
No
Temp. Sensor
No
Crypto Engine
No
Sram (kbytes)
1
Eeprom (bytes)
512
Self Program Memory
YES
Dram Memory
No
Nand Interface
No
Picopower
No
Temp. Range (deg C)
-40 to 85
I/o Supply Class
1.8 to 5.5
Operating Voltage (vcc)
1.8 to 5.5
Fpu
No
Mpu / Mmu
no / no
Timers
3
Output Compare Channels
6
Input Capture Channels
1
Pwm Channels
6
32khz Rtc
Yes
Calibrated Rc Oscillator
Yes
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
ATMEGA168
Manufacturer:
AVAILINK
Quantity:
1 590
Company:
Part Number:
ATmega168-15AD
Manufacturer:
VISHAY
Quantity:
15 600
Part Number:
ATmega168-15AT1
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Company:
Part Number:
ATmega168-15MT
Manufacturer:
ATMEL
Quantity:
686
Part Number:
ATmega168-15MT
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Company:
Part Number:
ATmega168-15MT1
Manufacturer:
ATMEL
Quantity:
372
Part Number:
ATmega168-15MZ
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Part Number:
ATmega168-20AU
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
28.7
28.7.1
2545T–AVR–05/11
Parallel programming
Enter programming mode
Table 28-13. XA1 and XA0 coding.
Table 28-14. Command byte bit coding.
The following algorithm puts the device in Parallel (High-voltage) Programming mode:
1. Set Prog_enable pins listed in
2. Apply 4.5V - 5.5V between V
Ensure that V
3. Wait 20µs - 60µs, and apply 11.5V - 12.5V to RESET.
4. Keep the Prog_enable pins unchanged for at least 10µs after the High-voltage has been
5. Wait at least 300µs before giving any parallel programming commands.
6. Exit Programming mode by power the device down or by bringing RESET pin to 0V.
If the rise time of the V
tive algorithm can be used.
1. Set Prog_enable pins listed in
2. Apply 4.5V - 5.5V between V
3. Monitor V
XA1
Command byte
V
applied to ensure the Prog_enable Signature has been latched.
V
0
0
1
1
CC
CC
1000 0000
0100 0000
0010 0000
0001 0000
0001 0001
0000 1000
0000 0100
0000 0010
0000 0011
to 0V.
to 0V.
CC
CC
XA0
0
1
0
1
, and as soon as V
reaches at least 1.8V within the next 20µs.
Action when XTAL1 is pulsed
Load flash or EEPROM address (high or low address byte determined by BS1)
Load data (high or low data byte for flash determined by BS1)
Load command
No action, idle
Command executed
Chip erase
Write fuse bits
Write lock bits
Write flash
Write EEPROM
Read signature bytes and calibration byte
Read fuse and lock bits
Read flash
Read EEPROM
CC
is unable to fulfill the requirements listed above, the following alterna-
CC
CC
Table 28-12 on page 290
Table 28-12 on page 290
CC
and GND.
and GND.
reaches 0.9V - 1.1V, apply 11.5V - 12.5V to RESET.
to “0000”, RESET pin to 0V and
to “0000”, RESET pin to 0V and
ATmega48/88/168
291