ATtiny4 Atmel Corporation, ATtiny4 Datasheet - Page 116
![no-image](/images/manufacturer_photos/0/0/79/atmel_corporation_sml.jpg)
ATtiny4
Manufacturer Part Number
ATtiny4
Description
Manufacturer
Atmel Corporation
Specifications of ATtiny4
Flash (kbytes)
0.5 Kbytes
Pin Count
6
Max. Operating Frequency
12 MHz
Cpu
8-bit AVR
# Of Touch Channels
1
Hardware Qtouch Acquisition
No
Max I/o Pins
4
Ext Interrupts
4
Usb Speed
No
Usb Interface
No
Graphic Lcd
No
Video Decoder
No
Camera Interface
No
Analog Comparators
1
Resistive Touch Screen
No
Temp. Sensor
No
Crypto Engine
No
Sram (kbytes)
0.03
Self Program Memory
NO
Dram Memory
No
Nand Interface
No
Picopower
No
Temp. Range (deg C)
-40 to 125
I/o Supply Class
1.8 to 5.5
Operating Voltage (vcc)
1.8 to 5.5
Fpu
No
Mpu / Mmu
no / no
Timers
1
Output Compare Channels
2
Input Capture Channels
1
Pwm Channels
2
32khz Rtc
No
Calibrated Rc Oscillator
Yes
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
ATtiny4-TS8R
Manufacturer:
ADI
Quantity:
635
Part Number:
ATtiny4-TSHR
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Company:
Part Number:
ATtiny4313-MMHR
Manufacturer:
MICRON
Quantity:
4 100
Company:
Part Number:
ATtiny4313-MU
Manufacturer:
HITTITE
Quantity:
101
Part Number:
ATtiny4313-SU
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Company:
Part Number:
ATtiny44-15MZ
Manufacturer:
ATMEL
Quantity:
1 000
Part Number:
ATtiny44-15MZ
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Company:
Part Number:
ATtiny44-15SSZ
Manufacturer:
ATMEL
Quantity:
350
Part Number:
ATtiny441-MUR
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
ATtiny44A-MFR
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
15.7
15.7.1
15.7.2
116
Register Description
ATtiny4/5/9/10
NVMCSR - Non-Volatile Memory Control and Status Register
NVMCMD - Non-Volatile Memory Command Register
• Bit 7 - NVMBSY: Non-Volatile Memory Busy
This bit indicates the NVM memory (Flash memory and Lock Bits) is busy, being programmed.
This bit is set when a program operation is started, and it remains set until the operation has
been completed.
• Bit 6:0 - Res: Reserved Bits
These bits are reserved and will always be read as zero.
• Bit 7:6 - Res: Reserved Bits
These bits are reserved and will always read zero.
• Bit 5:0 - NVMCMD[5:0]: Non-Volatile Memory Command
These bits define the programming commands for the flash, as shown in
Table 15-10. NVM Programming commands
Bit
0x32
Read/Write
Initial Value
Bit
0x33
Read/Write
Initial Value
Operation Type
General
Section
Word
NVMBSY
R/W
R
7
–
0
7
0
0b000000
0b010000
0b010100
0b011101
R
6
–
0
Binary
R
6
–
0
NVMCMD
R/W
5
0
R
5
–
0
0x1D
0x00
0x10
0x14
Hex
R/W
4
0
R
4
–
0
R/W
Mnemonic
NO_OPERATION
CHIP_ERASE
SECTION_ERASE
WORD_WRITE
NVMCMD[5:0]
3
0
R
3
–
0
R/W
2
0
R
2
–
0
R/W
1
0
R
1
–
0
Description
No operation
Chip erase
Section erase
Word write
R/W
Table
0
0
R
0
–
0
15-10.
NVMCMD
NVMCSR
8127E–AVR–11/11