ATxmega16D4 Atmel Corporation, ATxmega16D4 Datasheet - Page 190

no-image

ATxmega16D4

Manufacturer Part Number
ATxmega16D4
Description
Manufacturer
Atmel Corporation
Datasheets

Specifications of ATxmega16D4

Flash (kbytes)
16 Kbytes
Pin Count
44
Max. Operating Frequency
32 MHz
Cpu
8-bit AVR
# Of Touch Channels
16
Hardware Qtouch Acquisition
No
Max I/o Pins
34
Ext Interrupts
34
Usb Speed
No
Usb Interface
No
Spi
4
Twi (i2c)
2
Uart
2
Graphic Lcd
No
Video Decoder
No
Camera Interface
No
Adc Channels
12
Adc Resolution (bits)
12
Adc Speed (ksps)
200
Analog Comparators
2
Resistive Touch Screen
No
Temp. Sensor
Yes
Crypto Engine
No
Sram (kbytes)
2
Eeprom (bytes)
1024
Self Program Memory
YES
Dram Memory
No
Nand Interface
No
Picopower
Yes
Temp. Range (deg C)
-40 to 85
I/o Supply Class
1.6 to 3.6
Operating Voltage (vcc)
1.6 to 3.6
Fpu
No
Mpu / Mmu
no / no
Timers
4
Output Compare Channels
14
Input Capture Channels
14
Pwm Channels
14
32khz Rtc
Yes
Calibrated Rc Oscillator
Yes

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ATxmega16D4-AU
Manufacturer:
Atmel
Quantity:
438
Part Number:
ATxmega16D4-AU
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
ATxmega16D4-AU
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Company:
Part Number:
ATxmega16D4-AU
Quantity:
69
Part Number:
ATxmega16D4-AUR
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
ATxmega16D4-CU
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
ATxmega16D4-CUR
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
ATxmega16D4-MH
Manufacturer:
Atmel
Quantity:
1 605
Part Number:
ATxmega16D4-MHR
Manufacturer:
SANYO
Quantity:
50
Part Number:
ATxmega16D4-MHR
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
16.10.4
16.10.5
8210B–AVR–04/10
ADDR - TWI Slave Address Register
DATA - TWI Slave Data Register
• Bit 0 - AP: Slave Address or Stop
The Slave Address or Stop (AP) flag indicates whether a valid address or a STOP condition
caused the last setting of the APIF in the STATUS register.
Table 16-8.
The slave address (ADDR) register contains the TWI slave address used by the slave address
match logic to determine if a master has addressed the slave. When using 7-bit or 10-bit
address recognition mode, the upper 7-bits of the address register (ADDR[7:1]) represents the
slave address. The least significant bit (ADDR[0]) is used for general call address recognition.
Setting ADDR[0] enables general call address recognition logic.
When using 10-bit addressing the address match logic only support hardware address recogni-
tion of the first byte of a 10-bit address. By setting ADDR[7:1] = "0b11110nn", 'nn' represents bit
9 and 8 or the slave address. The next byte received is bit 7 to 0 in the 10-bit address, and this
must be handled by software.
When the address match logic detects that a valid address byte is received, the APIF is set, and
the DIR flag is updated.
If the PMEN bit in the CTRLA register is set, the address match logic responds to all addresses
transmitted on the TWI bus. The ADDR register is not used in this mode.
The data (DATA) register is used when transmitting and received data. During data transfer,
data is shifted from/to the DATA register and to/from the bus. This implies that the DATA register
cannot be accessed during byte transfers, and this is protected in hardware. The Data register
can only be accessed when the SCL line is held low by the slave, i.e. when CLKHOLD is set.
When a master is reading data from the slave, data to send must be written to the DATA regis-
ter. The byte transfer is started when the Master start to clock the data byte from the slave,
followed by the slave receiving the acknowledge bit from the master. The DIF and the CLKHOLD
flag are set.
When a master write data to the slave the DIF and the CLKHOLD flag are set when one byte is
received in the DATA register. If Smart Mode is enabled, reading the DATA register will trigger
the bus operation as set by the ACKACT bit.
Accessing the DATA register will clear the slave interrupt flags and the CLKHOLD flag.
Bit
+0x04
Read/Write
Initial Value
Bit
+0x03
Read/Write
Initial Value
AP
0
1
R/W
R/W
TWI slave address or stop
7
0
7
0
Description
A stop condition generated the interrupt on APIF
Address detection generated the interrupt on APIF
R/W
R/W
6
0
6
0
R/W
R/W
5
0
5
0
R/W
R/W
4
0
4
0
ADDR[7:0]
DATA[7:0]
R/W
R/W
3
0
3
0
R/W
R/W
2
0
2
0
R/W
R/W
1
0
1
0
XMEGA D
R/W
R/W
0
0
0
0
ADDR
DATA
190

Related parts for ATxmega16D4