ATTINY20-MMHR Atmel, ATTINY20-MMHR Datasheet - Page 160

no-image

ATTINY20-MMHR

Manufacturer Part Number
ATTINY20-MMHR
Description
MCU AVR 2KB FLASH 12MHZ 20QFN
Manufacturer
Atmel
Series
AVR® ATtinyr
Datasheet

Specifications of ATTINY20-MMHR

Core Processor
AVR
Core Size
8-Bit
Speed
12MHz
Connectivity
I²C, SPI
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
12
Program Memory Size
2KB (1K x 16)
Program Memory Type
FLASH
Ram Size
128 x 8
Voltage - Supply (vcc/vdd)
1.8 V ~ 5.5 V
Data Converters
A/D 8x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
*
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Eeprom Size
-

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ATTINY20-MMHR
Manufacturer:
ATMEL
Quantity:
20 000
18.5.8
18.6
18.7
160
Accessing the Non-Volatile Memory Controller
Control and Status Space Register Descriptions
ATtiny20
SKEY - Serial KEY signaling
The SKEY instruction is used to signal the activation key that enables NVM programming. The
SKEY instruction is followed by the 8 data bytes that includes the activation key, as shown in
Table
Table 18-9.
By default, NVM programming is not enabled. In order to access the NVM Controller and be able
to program the non-volatile memories, a unique key must be sent using the SKEY instruction.
The 64-bit key that will enable NVM programming is given in
Table 18-10. Enable Key for Non-Volatile Memory Programming
After the key has been given, the Non-Volatile Memory Enable (NVMEN) bit in the TPI Status
Register (TPISR) must be polled until the Non-Volatile memory has been enabled.
NVM programming is disabled by writing a logical zero to the NVMEN bit in TPISR.
The control and status registers of the Tiny Programming Interface are mapped in the Control
and Status Space (CSS) of the interface. These registers are not part of the I/O register map
and are accessible via SLDCS and SSTCS instructions, only. The control and status registers
are directly involved in configuration and status monitoring of the TPI.
A summary of CSS registers is shown in
Table 18-11. Summary of Control and Status Registers
Operation
Key
Key
NVM Program Enable
Addr.
0x0F
0x0E
0x0D
0x0C
0x0B
0x0A
0x09
0x08
0x07
0x06
0x05
0x04
0x03
18-9.
{8[data}}
Name
TPIIR
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
The Serial KEY signaling (SKEY) Instruction
Bit 7
Opcode
1110 0000
Bit 6
Tiny Programming Interface Identification Code
Table
Bit 5
18-11.
Remarks
Data bytes follow after instruction
Value
0x1289AB45CDD888FF
Bit 4
Bit 3
Table
18-10.
Bit 2
Bit 1
8235B–AVR–04/11
Bit 0

Related parts for ATTINY20-MMHR