ATxmega128B1 Atmel Corporation, ATxmega128B1 Datasheet - Page 243

no-image

ATxmega128B1

Manufacturer Part Number
ATxmega128B1
Description
Manufacturer
Atmel Corporation
Datasheets

Specifications of ATxmega128B1

Flash (kbytes)
128 Kbytes
Pin Count
100
Max. Operating Frequency
32 MHz
Cpu
8-bit AVR
# Of Touch Channels
16
Hardware Qtouch Acquisition
No
Max I/o Pins
53
Ext Interrupts
53
Usb Transceiver
1
Usb Speed
Full Speed
Usb Interface
Device
Spi
3
Twi (i2c)
1
Uart
2
Segment Lcd
160
Graphic Lcd
No
Video Decoder
No
Camera Interface
No
Adc Channels
16
Adc Resolution (bits)
12
Adc Speed (ksps)
2000
Analog Comparators
4
Resistive Touch Screen
No
Temp. Sensor
Yes
Crypto Engine
AES/DES
Sram (kbytes)
8
Eeprom (bytes)
2048
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
3
Output Compare Channels
10
Input Capture Channels
10
Pwm Channels
10
32khz Rtc
Yes
Calibrated Rc Oscillator
Yes

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ATxmega128B1-AU
Manufacturer:
TI
Quantity:
90
Part Number:
ATxmega128B1-AU
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
ATxmega128B1-AUR
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
ATxmega128B1-CUR
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
ATxmega128B1-U
Manufacturer:
FUJITSU
Quantity:
632
19.3.9
19.4
8291A–AVR–10/11
TWI Bus State Logic
Synchronization
Figure 19-9
devices are able to issue a START condition, but DEVICE1 loses arbitration when attempting to
transmit a high level (bit 5) while DEVICE2 is transmitting a low level.
Arbitration between a repeated START condition and a data bit, a STOP condition and a data
bit, or a repeated START condition and a STOP condition are not allowed and will require spe-
cial handling by software.
A clock synchronization algorithm is necessary for solving situations where more than one mas-
ter is trying to control the SCL line at the same time. The algorithm is based on the same
principles used for the clock stretching previously described.
where two masters are competing for control over the bus clock. The SCL line is the wired-AND
result of the two masters clock outputs.
Figure 19-10. Clock synchronization.
A high-to-low transition on the SCL line will force the line low for all masters on the bus, and they
will start timing their low clock period. The timing length of the low clock period can vary among
the masters. When a master (DEVICE1 in this case) has completed its low period, it releases the
SCL line. However, the SCL line will not go high until all masters have released it. Consequently,
the SCL line will be held low by the device with the longest low period (DEVICE2). Devices with
shorter low periods must insert a wait state until the clock is released. All masters start their high
period when the SCL line is released by all devices and has gone high. The device which first
completes its high period (DEVICE1) forces the clock line low, and the procedure is then
repeated. The result is that the device with the shortest clock period determines the high period,
while the low period of the clock is determined by the device with the longest clock period.
The bus state logic continuously monitors the activity on the TWI bus lines when the master is
enabled. It continues to operate in all sleep modes, including power-down.
The bus state logic includes START and STOP condition detectors, collision detection, inactive
bus timeout detection, and a bit counter. Theseare used to determine the bus state. Software
can get the current bus state by reading the bus state bits in the master status register. The bus
state can be unknown, idle, busy, or owner, and is determined according to the state diagram
shown in
the figure.
DEVICE1_SCL
DEVICE2_SCL
SCL
(wired-AND)
Figure
shows an example where two TWI masters are contending for bus ownership. Both
19-11. The values of the bus state bits according to state are shown in binary in
Low Period
Count
State
Wait
Atmel AVR XMEGA B
High Period
Count
Figure 19-10
shows an example
243

Related parts for ATxmega128B1