ATMEGA161-8PI Atmel, ATMEGA161-8PI Datasheet - Page 119

IC AVR MCU 16K 8MHZ IND 40-DIP

ATMEGA161-8PI

Manufacturer Part Number
ATMEGA161-8PI
Description
IC AVR MCU 16K 8MHZ IND 40-DIP
Manufacturer
Atmel
Series
AVR® ATmegar
Datasheet

Specifications of ATMEGA161-8PI

Core Processor
AVR
Core Size
8-Bit
Speed
8MHz
Connectivity
SPI, UART/USART
Peripherals
POR, PWM, WDT
Number Of I /o
35
Program Memory Size
16KB (8K x 16)
Program Memory Type
FLASH
Eeprom Size
512 x 8
Ram Size
1K x 8
Voltage - Supply (vcc/vdd)
4 V ~ 5.5 V
Oscillator Type
External
Operating Temperature
-40°C ~ 85°C
Package / Case
40-DIP (0.600", 15.24mm)
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
Data Converters
-
Other names
ATMEGA1618PI
Enter Programming Mode
Chip Erase
1228D–AVR–02/07
Table 42. Pin Name Mapping
Table 43. XA1 and XA0 Coding
Table 44. Command Byte Bit Coding
The following algorithm puts the device in Parallel Programming mode:
1. Apply 4.5 - 5.5V between V
2. Set RESET and BS pins to “0” and wait at least 500 ns.
3. Apply 11.5 - 12.5V to RESET, and wait for at least 500 ns.
The Chip Erase will erase the Flash and EEPROM memories plus Lock bits. The Lock
bits are not reset until the Program memory has been completely erased. The Fuse bits
are not changed. A Chip Erase must be performed before the Flash is reprogrammed.
Load Command “Chip Erase”
1. Set XA1, XA0 to “10”. This enables command loading.
2. Set BS1 to “0”.
3. Set DATA to “1000 0000”. This is the command for Chip Erase.
4. Give WR a negative pulse. This starts the Chip Erase. RDY/BSY goes low.
5. Wait until RDY/BSY goes high before loading a new command.
Programming Mode
XA1
0
0
1
1
Signal Name in
PAGEL
DATA
XA0
BS2
Command Byte
0
1
0
1
1000 0000
0100 0000
0010 0000
0001 0000
0001 0001
0000 1000
0000 0100
0000 0010
0000 0011
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
Pin Name
PB7 - 0
PD7
PA0
CC
and GND.
I/O
I/O
I
I
Command Executed
Chip Erase
Write Fuse bits
Write Lock bits
Write Flash
Write EEPROM
Read Signature Bytes
Read Fuse and Lock bits
Read Flash
Read EEPROM
Function
Program Memory Page Load
Byte Select 2 (Always low)
Bi-directional Data Bus (Output when OE is low)
ATmega161(L)
119

Related parts for ATMEGA161-8PI