ATtiny20 Atmel Corporation, ATtiny20 Datasheet - Page 169

no-image

ATtiny20

Manufacturer Part Number
ATtiny20
Description
Manufacturer
Atmel Corporation
Datasheets

Specifications of ATtiny20

Flash (kbytes)
2 Kbytes
Pin Count
14
Max. Operating Frequency
12 MHz
Cpu
8-bit AVR
# Of Touch Channels
5
Hardware Qtouch Acquisition
Yes
Max I/o Pins
12
Ext Interrupts
12
Usb Speed
No
Usb Interface
No
Spi
1
Twi (i2c)
1
Graphic Lcd
No
Video Decoder
No
Camera Interface
No
Adc Channels
8
Adc Resolution (bits)
10
Adc Speed (ksps)
15
Analog Comparators
1
Resistive Touch Screen
No
Temp. Sensor
Yes
Crypto Engine
No
Sram (kbytes)
0.12
Self Program Memory
NO
Dram Memory
No
Nand Interface
No
Picopower
No
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
3
32khz Rtc
No
Calibrated Rc Oscillator
Yes

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ATtiny20-CCU
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
ATtiny20-CCUR
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
ATtiny20-MMHR
Manufacturer:
ATMEL
Quantity:
20 000
Part Number:
ATtiny20-SSU
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Part Number:
ATtiny20-XU
Manufacturer:
Atmel
Quantity:
904
19.4.3.2
19.4.3.3
19.4.3.4
19.4.3.5
19.4.4
8235B–AVR–04/11
Reading NVM Lock Bits
Erasing the Code Section
Writing a Double Code Word
Erasing the Configuration Section
Writing a Configuration Word
The algorithm for erasing all pages of the Flash code section is as follows:
The algorithm for writing two words to the code section is as follows:
The algorithm for erasing the Configuration section is as follows:
The algorithm for writing a Configuration word is as follows.
The Non-Volatile Memory Lock Byte can be read from the mapped location in data memory.
1. Write the SECTION_ERASE command to the NVMCMD register
2. Start the erase operation by writing a dummy byte to the high byte of any word location
3. Wait until the NVMBSY bit has been cleared
1. Write the DWORD_WRITE command to the NVMCMD register
2. Write the low byte of the low data word to the low byte of a target word location
3. Write the high byte of the low data word to the high byte of the same target word
4. Send IDLE character as described in section
5. Write the low byte of the high data word to the low byte of the next target word location
6. Write the high byte of the high data word to the high byte of the same target word loca-
7. Wait until the NVMBSY bit has been cleared
1. Write the SECTION_ERASE command to the NVMCMD register
2. Start the erase operation by writing a dummy byte to the high byte of any word location
3. Wait until the NVMBSY bit has been cleared
1. Write the DWORD_WRITE command to the NVMCMD register
2. Write the low byte of the data word to the low byte of the configuration word location
3. Write the high byte of the data word to the high byte of the same configuration word
4. Send IDLE character as described in section
5. Write a dummy byte to the low byte of the next configuration word location
6. Write a dummy byte to the high byte of the same configuration word location. This will
7. Wait until the NVMBSY bit has been cleared
inside the code section
location
tion. This will start the Flash write operation
inside the configuration section
location
start the Flash write operation
“Supported Characters” on page 154
“Supported Characters” on page 154
ATtiny20
169

Related parts for ATtiny20