ATTINY40-SU Atmel, ATTINY40-SU Datasheet - Page 7
![no-image](/images/manufacturer_photos/0/0/78/atmel_sml.jpg)
ATTINY40-SU
Manufacturer Part Number
ATTINY40-SU
Description
IC MCU AVR 4K FLASH 20SOIC
Manufacturer
Atmel
Series
AVR® ATtinyr
Datasheet
1.ATTINY40-SU.pdf
(18 pages)
Specifications of ATTINY40-SU
Core Processor
AVR
Core Size
8-Bit
Speed
12MHz
Connectivity
I²C, SPI
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
18
Program Memory Size
4KB (2K x 16)
Program Memory Type
FLASH
Ram Size
256 x 8
Voltage - Supply (vcc/vdd)
1.8 V ~ 5.5 V
Data Converters
A/D 12x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
20-SOIC (0.300", 7.50mm Width)
Processor Series
ATtiny
Core
AVR
Data Bus Width
8 bit
Data Ram Size
256 B
Interface Type
SPI, TWI, ISB
Number Of Programmable I/os
18
Number Of Timers
2
Operating Supply Voltage
3.3 V
Maximum Operating Temperature
+ 85 C
Mounting Style
SMD/SMT
Minimum Operating Temperature
- 40 C
Operating Temperature Range
- 40 C to + 85 C
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Eeprom Size
-
Lead Free Status / Rohs Status
Details
4. Register Summary
8263AS–AVR–08/10
Address
0x3F
0x3E
0x3D
0x3C
0x3B
0x3A
0x2F
0x2E
0x2D
0x2C
0x2B
0x2A
0x1F
0x1E
0x1D
0x1C
0x1B
0x1A
0x0F
0x0E
0x0D
0x0C
0x0B
0x0A
0x39
0x38
0x37
0x36
0x35
0x34
0x33
0x32
0x31
0x30
0x29
0x28
0x27
0x26
0x25
0x24
0x23
0x22
0x21
0x20
0x19
0x18
0x17
0x16
0x15
0x14
0x13
0x12
0x11
0x10
0x09
0x08
0x07
0x06
0x05
0x04
0x03
0x02
0x01
0x00
NVMCMD
NVMCSR
WDTCSR
TWSCRA
TWSCRB
Reserved
CLKMSR
TWSSRA
ADCSRA
ADCSRB
PORTCR
OSCCAL
CLKPSR
TCNT1H
TCCR1A
PCMSK2
TCCR0A
TCCR0B
PCMSK1
PCMSK0
RSTFLR
TCNT1L
Name
MCUCR
TWSAM
RAMAR
RAMDR
ADMUX
QTCSR
OCR1A
OCR1B
PORTC
OCR0A
OCR0B
ACSRA
ACSRB
PORTB
PORTA
TCNT0
GIMSK
TWSD
TIMSK
DIDR0
SREG
SPCR
SPDR
TWSA
PUEC
DDRC
ADCH
DDRB
DDRA
SPSR
ADCL
PUEB
PUEA
PINC
GIFR
TIFR
PINB
PINA
SPH
CCP
PRR
SPL
NVMBSY
COM0A1
PORTA7
ADC11D
TWSHE
ADC7D
PCINT7
DDRA7
FOC0A
PUEA7
TWDIF
Bit 7
ISC01
TCW1
ADEN
VDEN
PINA7
HSEL
WDIF
ICIE1
SPIE
SPIF
ICF1
ACD
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
I
ACBG/ACIRE
COM0A0
ADC10D
PORTA6
TWASIF
PCINT6
FOC0B
ADC6D
PUEA6
DDRA6
Bit 6
WCOL
ICEN1
PCIE2
PCIF2
PINA6
ISC00
ADSC
VDPD
REFS
WDIE
HLEV
SPE
T
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
PORTC5
PCINT17
COM0B1
PORTA5
OCIE1B
PCINT5
OCF1B
PUEC5
DDRC5
ADATE
REFEN
ADC5D
ADC9D
DDRA5
TWDIE
PUEA5
DORD
TWCH
ICNC1
PINC5
Bit 5
WDP3
PCIE1
PCIF1
PINA5
ACLP
ACO
TSM
H
–
–
–
–
–
–
–
–
–
–
–
–
–
–
Timer/Counter1 – Counter Register High Byte
Timer/Counter1 – Counter Register Low Byte
Timer/Counter1 – Compare Register A
Timer/Counter1 – Compare Register B
Timer/Counter0 – Compare Register A
Timer/Counter0 – Compare Register B
QTouch Control and Status Register
ADC Conversion Result – High Byte
ADC Conversion Result – Low Byte
Timer/Counter0 – Counter Register
TWI Slave Address Mask Register
CPU Change Protection Register
Oscillator Calibration Register
TWI Slave Address Register
PORTC4
PCINT16
COM0B0
ADC0EN
TWASIE
PORTA4
TWI Slave Data Register
OCIE1A
DDRC4
PCINT4
Stack Pointer High Byte
OCF1A
PUEC4
ADC4D
ADC8D
PUEA4
DDRA4
Stack Pointer Low Byte
PRTWI
Bit 4
TWRA
ICES1
RAM Address Register
PINC4
PCIE0
PINA4
BODS
MSTR
PCIF0
ADIF
PSR
ACI
RAM Data Register
S
SPI Data Register
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
NVM Command Register
PORTC3
PCINT15
PCINT11
PORTB3
PORTA3
CLKPS3
WGM02
PCINT3
PUEC3
DDRC3
ADLAR
ADC3D
DDRB3
DDRA3
PUEB3
PUEA3
WDRF
PRSPI
PINC3
Bit 3
TWEN
TOIE1
ACCE
MUX3
PINB3
PINA3
CPOL
TOV1
CTC1
WDE
TWC
ACIE
ADIE
SM2
V
–
–
–
–
–
–
–
–
PORTC2
PCINT14
PCINT10
PORTB2
PORTA2
CLKPS2
PRTIM1
OCIE0B
DDRC2
PCINT2
OCF0B
PUEC2
ADPS2
ADC2D
PUEB2
DDRB2
PUEA2
DDRA2
TWSIE
ADTS2
Bit 2
WDP2
TWAA
TWBE
PINC2
ACME
BBMC
PINB2
PINA2
BORF
CPHA
MUX2
CS12
CS02
ACIC
SM1
N
–
–
–
–
–
–
CLKMS1
PORTC1
PCINT13
PORTB1
PORTA1
CLKPS1
PRTIM0
TWPME
OCIE0A
WGM01
ACIRS1
PCINT9
PCINT1
DDRC1
ADC1D
DDRB1
DDRA1
EXTRF
TWDIR
OCF0A
PUEC1
ADPS1
ADTS1
PUEB1
PUEA1
Bit 1
WDP1
PINC1
ACIS1
MUX1
BBMB
PINB1
PINA1
SPR1
CS11
CS01
SM0
Z
–
–
–
–
TWCMD[1.0]
PCINT12
CLKMS0
PORTC0
PORTB0
PORTA0
CLKPS0
TWSME
PRADC
WGM00
ACIRS0
PCINT8
PCINT0
PUEC0
DDRC0
ADC0D
DDRB0
DDRA0
ADPS0
ADTS0
PUEB0
PUEA0
Bit 0
WDP0
PINC0
ACIS0
PINB0
PINA0
PORF
SPI2X
TWAS
TOIE0
MUX0
INTF0
BBMA
SPR0
TOV0
CS10
CS00
INT0
SE
C
–
Pages 104,
Pages 79,
Pages 62,
Pages 30,
Pages 81,
Pages 81,
Page 144
Page 164
Page 164
Page 128
Page 130
Page 130
Page 139
Page 140
Page 141
Page 142
Page 143
Page 143
Page 102
Page 103
Page 119
Page 120
Page 117
Page 118
Page 118
Page 94
Page 45
Page 63
Page 14
Page 13
Page 13
Page 13
Page 39
Page 25
Page 24
Page 24
Page 31
Page 37
Page 95
Page 95
Page 95
Page 96
Page 19
Page 19
Page 64
Page 64
Page 64
Page 64
Page 76
Page 80
Page 80
Page 81
Page 43
Page 44
Page 45
Page 45
Page 63
Page 63
Page 63
Page 64
Page 63
Page 63
Page 63
Page
100
121
43
96
97
121
7