ATTINY20-CCUR Atmel, ATTINY20-CCUR Datasheet - Page 151

no-image

ATTINY20-CCUR

Manufacturer Part Number
ATTINY20-CCUR
Description
MCU AVR 2KB FLASH 12MHZ 15UFBGA
Manufacturer
Atmel
Series
AVR® ATtinyr
Datasheet

Specifications of ATTINY20-CCUR

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
12
Program Memory Size
2KB (1K x 16)
Program Memory Type
FLASH
Ram Size
128 x 8
Voltage - Supply (vcc/vdd)
1.8 V ~ 5.5 V
Data Converters
A/D 8x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
*
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Eeprom Size
-

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ATTINY20-CCUR
Manufacturer:
Atmel
Quantity:
10 000
17.5.6
8235B–AVR–04/11
TWSAM – TWI Slave Address Mask Register
When a master reads data from a slave, the data to be sent must be written to the TWSD regis-
ter. The byte transfer is started when the master starts to clock the data byte from the slave. It is
followed by the slave receiving the acknowledge bit from the master. The TWDIF and the TWCH
bits are then set.
When a master writes data to a slave, the TWDIF and the TWCH flags are set when one byte
has been received in the data register. If Smart Mode is enabled, reading the data register will
trigger the bus operation, as set by the TWAA bit in TWSCRB. Accessing TWSD in Smart Mode
will clear the slave data interrupt flag and the TWCH bit.
• Bits 7:1 – TWSAM[7:1]: TWI Address Mask
These bits can act as a second address match register, or an address mask register, depending
on the TWAE setting.
If TWAE is set to zero, TWSAM can be loaded with a 7-bit slave address mask. Each bit in
TWSAM can mask (disable) the corresponding address bit in the TWSA register. If the mask bit
is one the address match between the incoming address bit and the corresponding bit in TWSA
is ignored. In other words, masked bits will always match.
If TWAE is set to one, TWSAM can be loaded with a second slave address in addition to the
TWSA register. In this mode, the slave will match on 2 unique addresses, one in TWSA and the
other in TWSAM.
• Bit 0 – TWAE: TWI Address Enable
By default, this bit is zero and the TWSAM bits acts as an address mask to the TWSA register. If
this bit is set to one, the slave address match logic responds to the two unique addresses in
TWSA and TWSAM.
Bit
0x29
Read/Write
Initial Value
R/W
7
0
R/W
6
0
R/W
5
0
TWSAM[7:1]
R/W
4
0
R/W
3
0
R/W
2
0
R/W
1
0
TWAE
ATtiny20
R/W
0
0
TWSAM
151

Related parts for ATTINY20-CCUR