ATtiny40 Atmel Corporation, ATtiny40 Datasheet - Page 164

no-image

ATtiny40

Manufacturer Part Number
ATtiny40
Description
Manufacturer
Atmel Corporation
Datasheets

Specifications of ATtiny40

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

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
ATtiny40-MMHR
Quantity:
6 000
20.7
20.7.1
20.7.2
164
Register Description
ATtiny40
NVMCMD – Non-Volatile Memory Command Register
NVMCSR – Non-Volatile Memory Control and Status Register
See NVMEN bit in
• Bits 7:6 – Res: Reserved Bits
These bits are reserved and will always read as zero.
• Bits 5:0 – NVMCMD[5:0]: Non-Volatile Memory Command
These bits define the programming commands for the flash, as shown in
Table 20-9.
• 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.
• Bits 6:0 – Res: Reserved Bits
These bits are reserved and will always read as zero.
Bit
0x33
Read/Write
Initial Value
Bit
0x32
Read/Write
Initial Value
Operation Type
General
Section
Flash Words
NVMBSY
NVM Programming commands
R/W
R
7
0
7
0
“TPISR – Tiny Programming Interface Status Register” on page
0b000000
0b010000
0b010100
R
0b011101
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
CODE_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
Write Flash words
R/W
Table
0
0
R
0
0
NVMCMD
20-9.
NVMCSR
8263A–AVR–08/10
155.

Related parts for ATtiny40