ATTINY5-MAH Atmel, ATTINY5-MAH Datasheet - Page 115

IC MCU AVR 512B FLASH 8UDFN

ATTINY5-MAH

Manufacturer Part Number
ATTINY5-MAH
Description
IC MCU AVR 512B FLASH 8UDFN
Manufacturer
Atmel
Series
AVR® ATtinyr
Datasheets

Specifications of ATTINY5-MAH

Core Processor
AVR
Core Size
8-Bit
Speed
12MHz
Peripherals
POR, PWM, WDT
Number Of I /o
4
Program Memory Size
512B (256 x 16)
Program Memory Type
FLASH
Ram Size
32 x 8
Voltage - Supply (vcc/vdd)
1.8 V ~ 5.5 V
Data Converters
A/D 4x8b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
8-UFDFN Exposed Pad
Core
AVR8
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Eeprom Size
-
Connectivity
-
Lead Free Status / Rohs Status
 Details
15.4.4
15.4.5
15.5
15.6
15.6.1
15.6.2
8127D–AVR–02/10
Self programming
External Programming
Reading NVM Lock Bits
Writing NVM Lock Bits
Entering External Programming Mode
Exiting External Programming Mode
The Non-Volatile Memory Lock Byte can be read from the mapped location in data memory.
The algorithm for writing the Lock bits is as follows.
The ATtiny4/5/9/10 don't support internal programming.
The method for programming the Non-Volatile Memories by means of an external programmer is
referred to as external programming. External programming can be done both in-system or in
mass production.
The Non-Volatile Memories can be externally programmed via the Tiny Programming Interface
(TPI). For details on the TPI, see
nal programmer can access the NVM control and status registers mapped to I/O space and the
NVM memory mapped to data memory space.
The TPI must be enabled before external programming mode can be entered. The following pro-
cedure describes, how to enter the external programming mode after the TPI has been enabled:
Refer to the Tiny Programming Interface description on
enabling the TPI and programming the NVM.
Clear the NVM enable bit to disable NVM programming, then release the RESET pin.
See NVMEN bit in
1. Write the WORD_WRITE command to the NVMCMD register.
2. Write the lock bits value to the Non-Volatile Memory Lock Byte location. This is the low
3. Start the NVM Lock Bit write operation by writing a dummy byte to the high byte of the
4. Wait until the NVMBSY bit has been cleared.
1. Make a request for enabling NVM programming by sending the NVM memory access
2. Poll the status of the NVMEN bit in TPISR until it has been set.
byte of the Non-Volatile Memory Lock Word.
NVM Lock Word location.
key with the SKEY instruction.
“TPISR – Tiny Programming Interface Status Register” on page
“Programming interface” on page
page 97
for more detailed information of
97. Using the TPI, the exter-
ATtiny4/5/9/10
107.
115

Related parts for ATTINY5-MAH