ATTINY24-15SSZ Atmel, ATTINY24-15SSZ Datasheet - Page 157

MCU AVR 2K FLASH 15MHZ 14-SOIC

ATTINY24-15SSZ

Manufacturer Part Number
ATTINY24-15SSZ
Description
MCU AVR 2K FLASH 15MHZ 14-SOIC
Manufacturer
Atmel
Series
AVR® ATtinyr
Datasheet

Specifications of ATTINY24-15SSZ

Package / Case
14-SOIC (3.9mm Width), 14-SOL
Voltage - Supply (vcc/vdd)
2.7 V ~ 5.5 V
Operating Temperature
-40°C ~ 125°C
Speed
16MHz
Number Of I /o
12
Eeprom Size
128 x 8
Core Processor
AVR
Program Memory Type
FLASH
Ram Size
128 x 8
Program Memory Size
2KB (2K x 8)
Data Converters
A/D 8x10b
Oscillator Type
Internal
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Connectivity
USI
Core Size
8-Bit
Cpu Family
ATtiny
Device Core
AVR
Device Core Size
8b
Frequency (max)
16MHz
Interface Type
SPI/UART
Total Internal Ram Size
128Byte
# I/os (max)
12
Number Of Timers - General Purpose
2
Operating Supply Voltage (typ)
3.3/5V
Operating Supply Voltage (max)
5.5V
Operating Supply Voltage (min)
2.7V
On-chip Adc
8-chx10-bit
Instruction Set Architecture
RISC
Operating Temp Range
-40C to 125C
Operating Temperature Classification
Automotive
Mounting
Surface Mount
Pin Count
14
Package Type
SOIC
Lead Free Status / RoHS Status
Lead free / RoHS Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ATTINY24-15SSZ
Manufacturer:
ATMEL
Quantity:
349
Part Number:
ATTINY24-15SSZ
Manufacturer:
ATTINY
Quantity:
20 000
20. Self-Programming the Flash
20.1
20.2
7701D–AVR–09/10
Performing Page Erase by SPM
Filling the Temporary Buffer (Page Loading)
The device provides a self-programming mechanism (SPM) for downloading and uploading
program code by the MCU itself. The self programming can use any available data interface
and associated protocol to read code and write (program) that code into program memory.
Program memory is updated in a page-by-page fashion. Before programming a page with the
data stored in the temporary page buffer, the page must be erased. The temporary page buf-
fer is filled one word at a time using SPM, and the buffer can be filled either before the page
erase command or between a page erase and a page write operation:
Alternative 1 - Fill the buffer before a page erase
• Fill the temporary page buffer
• Perform a Page Erase
• Perform a Page Write
Alternative 2 - Fill the buffer after a page erase
• Perform a Page Erase
• Fill the temporary page buffer
• Perform a Page Write
If only a part of the page needs to be changed, the rest of the page must be stored (for exam-
ple in the temporary page buffer) before the erase, and then be re-written. When using
alternative 1, the boot loader provides an effective read-modify-write feature, which allows the
user software to first read the page and do the necessary changes, and then write back the
modified data. If alternative 2 is used, it is not possible to read the old data while loading
because the page is already erased. The temporary page buffer can be accessed in a random
sequence. It is essential that the page address used in both the page erase and page write
operation is addressing the same page.
To execute a page erase, set up the address in the Z-pointer, write "00000011" to SPMCSR,
and execute SPM within four clock cycles after writing SPMCSR. The data in R1 and R0 are
ignored. The page address must be written to PCPAGE in the Z-register. Other bits in the
Z-pointer will be ignored during this operation.
The CPU is halted during the page erase operation.
To write an instruction word, set up the address in the Z-pointer and data in R1:R0, write
“00000001” to SPMCSR and execute SPM within four clock cycles after writing SPMCSR. The
content of PCWORD in the Z-register is used to address the data in the temporary buffer. The
temporary buffer will auto-erase after a Page Write operation or by writing the CTPB bit in
SPMCSR. It is also erased after a system reset. Note that it is not possible to write more than
one time to each address without erasing the temporary buffer.
If the EEPROM is written in the middle of an SPM Page Load operation, all data loaded will be
lost.
Atmel ATtiny24/44/84 [Preliminary]
157

Related parts for ATTINY24-15SSZ