275
8331B–AVR–03/12
Atmel AVR XMEGA AU
21.9
Register Description – TWI Master
21.9.1
CTRLA
–
Control register A
• Bit 7:6
–
INTLVL[1:0]: Interrupt Level
These bits select the interrupt level for the TWI master interrupt, as described in
Programmable Multilevel Interrupt Controller” on page 134
.
• Bit 5
–
RIEN: Read Interrupt Enable
Setting the read interrupt enable (RIEN) bit enables the read interrupt when the read interrupt
flag (RIF) in the STATUS register is set. In addition the INTLVL bits must be nonzero for TWI
master interrupts to be generated.
• Bit 4
–
WIEN: Write Interrupt Enable
Setting the write interrupt enable (WIEN) bit enables the write interrupt when the write interrupt
flag (WIF) in the STATUS register is set. In addition the INTLVL bits must be nonzero for TWI
master interrupts to be generated.
• Bit 3
–
ENABLE: Enable TWI Master
Setting the enable TWI master (ENABLE) bit enables the TWI master.
• Bit 2:0
–
Reserved
These bits are unused and reserved for future use. For compatibility with future devices, always
write these bits to zero when this register is written.
21.9.2
CTRLB
–
Control register B
• Bit 7:4
–
Reserved
These bits are unused and reserved for future use. For compatibility with future devices, always
write these bits to zero when this register is written.
• Bit 3:2
–
TIMEOUT[1:0]: Inactive Bus Timeout
Setting the inactive bus timeout (TIMEOUT) bits to a nonzero value will enable the inactive bus
timeout supervisor. If the bus is inactive for longer than the TIMEOUT setting, the bus state logic
will enter the idle state.
lists the timeout settings.
Bit
7
6
5
4
3
2
1
0
INTLVL[1:0]
RIEN
WIEN
ENABLE
–
–
–
CTRLA
Read/Write
R/W
R/W
R/W
R/W
R/W
R
R
R
Initial Value
0
0
0
0
0
0
0
0
Bit
7
6
5
4
3
2
1
0
–
–
–
–
TIMEOUT[1:0]
QCEN
SMEN
CTRLB
Read/Write
R
R
R
R
R/W
R/W
R/W
R/W
Initial Value
0
0
0
0
0
0
0
0