ATtiny2313A Atmel Corporation, ATtiny2313A Datasheet - Page 175

no-image

ATtiny2313A

Manufacturer Part Number
ATtiny2313A
Description
Manufacturer
Atmel Corporation
Datasheets

Specifications of ATtiny2313A

Flash (kbytes)
2 Kbytes
Pin Count
20
Max. Operating Frequency
20 MHz
Cpu
8-bit AVR
Hardware Qtouch Acquisition
No
Max I/o Pins
18
Ext Interrupts
18
Usb Speed
No
Usb Interface
No
Spi
2
Twi (i2c)
1
Uart
1
Graphic Lcd
No
Video Decoder
No
Camera Interface
No
Adc Speed (ksps)
15
Analog Comparators
1
Resistive Touch Screen
No
Temp. Sensor
No
Crypto Engine
No
Sram (kbytes)
0.12
Eeprom (bytes)
128
Self Program Memory
YES
Dram Memory
No
Nand Interface
No
Picopower
Yes
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
2
Output Compare Channels
4
Input Capture Channels
1
Pwm Channels
4
32khz Rtc
No
Calibrated Rc Oscillator
Yes

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ATtiny2313A-MMH
Manufacturer:
SAMSUNG
Quantity:
101
Part Number:
ATtiny2313A-MU
Manufacturer:
ATMEL
Quantity:
313
Company:
Part Number:
ATtiny2313A-MU
Quantity:
20 000
Part Number:
ATtiny2313A-MUR
Manufacturer:
LT
Quantity:
4 439
Part Number:
ATtiny2313A-PU
Manufacturer:
TI
Quantity:
1 560
Part Number:
ATtiny2313A-PU
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Company:
Part Number:
ATtiny2313A-PU
Quantity:
1 800
Part Number:
ATtiny2313A-SU
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
19.4.2
19.4.3
19.4.4
8246B–AVR–09/11
Page Erase
Page Load
Page Write
Although the least significant bit of the Z-register (Z0) should be zero for SPM, it should be noted
that the LPM instruction addresses the Flash byte-by-byte and uses Z0 as a byte select bit.
Once a programming operation is initiated, the address is latched and the Z-pointer can be used
for other operations.
To execute Page Erase:
The data in R1 and R0 is ignored. The page address must be written to PCPAGE in the Z-regis-
ter. Other bits in the Z-pointer are ignored during this operation.
If an interrupt occurs during the timed sequence above the four cycle access cannot be guaran-
teed. In order to ensure atomic operation interrupts should be disabled before writing to
SPMCSR.
The CPU is halted during the Page Erase operation.
To write an instruction word:
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 RWWSRE 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 tem-
porary buffer.
If the EEPROM is written in the middle of an SPM Page Load operation, all data loaded will be
lost.
To execute Page Write:
The data in R1 and R0 is ignored. The page address must be written to PCPAGE. Other bits in
the Z-pointer must be written to zero during this operation.
The CPU is halted during the Page Write operation.
• Set up the address in the Z-pointer
• Write “00000011” to SPMCSR
• Execute an SPM instruction within four clock cycles after writing SPMCSR
• Set up the address in the Z-pointer
• Set up the data in R1:R0
• Write “00000001” to SPMCSR
• Execute an SPM instruction within four clock cycles after writing SPMCSR
• Set up the address in the Z-pointer
• Write “00000101” to SPMCSR
• Execute an SPM instruction within four clock cycles after writing SPMCSR
ATtiny2313A/4313
175

Related parts for ATtiny2313A