ATtiny40 Atmel Corporation, ATtiny40 Datasheet - Page 151

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
19.5.1
19.5.2
8263A–AVR–08/10
SLD - Serial LoaD from data space using indirect addressing
SST - Serial STore to data space using indirect addressing
The TPI instruction set is summarised in
Table 19-1.
The SLD instruction uses indirect addressing to load data from the data space to the TPI physi-
cal layer shift-register for serial read-out. The data space location is pointed by the Pointer
Register (PR), where the address must have been stored before data is accessed. The Pointer
Register can either be left unchanged by the operation, or it can be post-incremented, as shown
in
Table 19-2.
The SST instruction uses indirect addressing to store into data space the byte that is shifted into
the physical layer shift register. The data space location is pointed by the Pointer Register (PR),
where the address must have been stored before the operation. The Pointer Register can be
either left unchanged by the operation, or it can be post-incremented, as shown in
Table 19-3.
Mnemonic
SLD
SLD
SST
SST
SSTPR
SIN
SOUT
SLDCS
SSTCS
SKEY
Operation
data
data
Operation
DS[PR]
DS[PR]
Table
19-2.
DS[PR]
DS[PR]
data
data
Instruction Set Summary
The Serial Load from Data Space (SLD) Instruction
The Serial Store to Data Space (SLD) Instruction
Operand
data, PR
data, PR+
PR, data
PR+, data
PR, a
data, a
a, data
data, a
a, data
Key, {8{data}}
Opcode
0010 0000
0010 0100
Opcode
0110 0000
0110 0100
Description
Serial LoaD from data space using indirect
addressing
Serial LoaD from data space using indirect
addressing and post-increment
Serial STore to data space using indirect
addressing
Serial STore to data space using indirect
addressing and post-increment
Serial STore to Pointer Register using direct
addressing
Serial IN from data space
Serial OUT to data space
Serial LoaD from Control and Status space
using direct addressing
Serial STore to Control and Status space
using direct addressing
Serial KEY
Table
19-1.
Remarks
PR
PR
Remarks
PR
PR
PR
PR + 1
PR
PR + 1
Register
Unchanged
Post increment
Register
Unchanged
Post increment
Operation
data
data
PR
DS[PR]
DS[PR]
PR
PR[a]
data
I/O[a]
data
CSS[a]
Key
Table
PR+1
PR+1
{8{data}}
DS[PR]
DS[PR]
I/O[a]
CSS[a]
data
data
data
data
data
19-3.
151

Related parts for ATtiny40