AVR64DA32 TWI1 registers

The 15 registers of TWI1 (Two-Wire Interface), from 0x920, with their reset value and every field. The AVR64DA32 has 486 registers in 46 peripherals, one page each.

TWI1 Two-Wire Interface

CTRLAControl A

Address
0x920
Reset
0x00
Access
read/write
  1. 7–
  2. 6INPUTLVL
  3. 5–
  4. 4SDASETUP
  5. 3SDAHOLD1
  6. 2SDAHOLD0
  7. 1FMPEN
  8. 0–
4 fields
FieldBitsWhat it does
INPUTLVL6Input Voltage Transition Level
  • 0 I2C input voltage transition level
  • 1 SMBus 3.0 input voltage transition level
SDASETUP4SDA Setup Time
  • 0 SDA setup time is 4 clock cycles
  • 1 SDA setup time is 8 clock cycles
SDAHOLD3:2SDA Hold Time
  • 0 SDA hold time off
  • 1 Typical 50ns hold time
  • 2 Typical 300ns hold time
  • 3 Typical 500ns hold time
FMPEN1FM Plus Enable
  • 0 Operating in Standard-mode or Fast-mode
  • 1 Operating in Fast-mode Plus

DUALCTRLDual Control

Address
0x921
Reset
0x00
Access
read/write
  1. 7–
  2. 6INPUTLVL
  3. 5–
  4. 4–
  5. 3SDAHOLD1
  6. 2SDAHOLD0
  7. 1FMPEN
  8. 0ENABLE
4 fields
FieldBitsWhat it does
INPUTLVL6Input Voltage Transition Level
  • 0 I2C input voltage transition level
  • 1 SMBus 3.0 input voltage transition level
SDAHOLD3:2SDA Hold Time
  • 0 SDA hold time off
  • 1 Typical 50ns hold time
  • 2 Typical 300ns hold time
  • 3 Typical 500ns hold time
FMPEN1FM Plus Enable
ENABLE0Dual Control Enable

DBGCTRLDebug Control Register

Address
0x922
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3–
  6. 2–
  7. 1–
  8. 0DBGRUN
1 field
FieldBitsWhat it does
DBGRUN0Debug Run

MCTRLAHost Control A

Address
0x923
Reset
0x00
Access
read/write
  1. 7RIEN
  2. 6WIEN
  3. 5–
  4. 4QCEN
  5. 3TIMEOUT1
  6. 2TIMEOUT0
  7. 1SMEN
  8. 0ENABLE
6 fields
FieldBitsWhat it does
RIEN7Read Interrupt Enable
WIEN6Write Interrupt Enable
QCEN4Quick Command Enable
TIMEOUT3:2Inactive Bus Timeout
  • 0 Bus Timeout Disabled
  • 1 50 Microseconds
  • 2 100 Microseconds
  • 3 200 Microseconds
SMEN1Smart Mode Enable
ENABLE0Enable TWI Host

MCTRLBHost Control B

Address
0x924
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3FLUSH
  6. 2ACKACT
  7. 1MCMD1
  8. 0MCMD0
3 fields
FieldBitsWhat it does
FLUSH3Flush
ACKACT2Acknowledge Action
  • 0 Send ACK
  • 1 Send NACK
MCMD1:0Command
  • 0 No Action
  • 1 Issue Repeated Start Condition
  • 2 Receive or Transmit Data, depending on DIR
  • 3 Issue Stop Condition

MSTATUSHost Status

Address
0x925
Reset
0x00
Access
read/write
  1. 7RIF
  2. 6WIF
  3. 5CLKHOLD
  4. 4RXACK
  5. 3ARBLOST
  6. 2BUSERR
  7. 1BUSSTATE1
  8. 0BUSSTATE0
7 fields
FieldBitsWhat it does
RIF7Read Interrupt Flag
WIF6Write Interrupt Flag
CLKHOLD5Clock Hold
RXACK4Received Acknowledge
ARBLOST3Arbitration Lost
BUSERR2Bus Error
BUSSTATE1:0Bus State
  • 0 Unknown Bus State
  • 1 Bus is Idle
  • 2 This Module Controls The Bus
  • 3 The Bus is Busy

MBAUDHost Baud Rate Control

Address
0x926
Reset
0x00
Access
read/write
  1. 7BAUD7
  2. 6BAUD6
  3. 5BAUD5
  4. 4BAUD4
  5. 3BAUD3
  6. 2BAUD2
  7. 1BAUD1
  8. 0BAUD0
1 field
FieldBitsWhat it does
BAUD7:0Baud

MADDRHost Address

Address
0x927
Reset
0x00
Access
read/write
  1. 7ADDR7
  2. 6ADDR6
  3. 5ADDR5
  4. 4ADDR4
  5. 3ADDR3
  6. 2ADDR2
  7. 1ADDR1
  8. 0ADDR0
1 field
FieldBitsWhat it does
ADDR7:0Address

MDATAHost Data

Address
0x928
Reset
0x00
Access
read/write
  1. 7DATA7
  2. 6DATA6
  3. 5DATA5
  4. 4DATA4
  5. 3DATA3
  6. 2DATA2
  7. 1DATA1
  8. 0DATA0
1 field
FieldBitsWhat it does
DATA7:0Data

SCTRLAClient Control A

Address
0x929
Reset
0x00
Access
read/write
  1. 7DIEN
  2. 6APIEN
  3. 5PIEN
  4. 4–
  5. 3–
  6. 2PMEN
  7. 1SMEN
  8. 0ENABLE
6 fields
FieldBitsWhat it does
DIEN7Data Interrupt Enable
APIEN6Address/Stop Interrupt Enable
PIEN5Stop Interrupt Enable
PMEN2Promiscuous Mode Enable
SMEN1Smart Mode Enable
ENABLE0Enable TWI Client

SCTRLBClient Control B

Address
0x92A
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3–
  6. 2ACKACT
  7. 1SCMD1
  8. 0SCMD0
2 fields
FieldBitsWhat it does
ACKACT2Acknowledge Action
  • 0 Send ACK
  • 1 Send NACK
SCMD1:0Command
  • 0 No Action
  • 2 Used To Complete a Transaction
  • 3 Used in Response to Address/Data Interrupt

SSTATUSClient Status

Address
0x92B
Reset
0x00
Access
read/write
  1. 7DIF
  2. 6APIF
  3. 5CLKHOLD
  4. 4RXACK
  5. 3COLL
  6. 2BUSERR
  7. 1DIR
  8. 0AP
8 fields
FieldBitsWhat it does
DIF7Data Interrupt Flag
APIF6Address/Stop Interrupt Flag
CLKHOLD5Clock Hold
RXACK4Received Acknowledge
COLL3Collision
BUSERR2Bus Error
DIR1Read/Write Direction
AP0Client Address or Stop
  • 0 Stop condition generated APIF
  • 1 Address detection generated APIF

SADDRClient Address

Address
0x92C
Reset
0x00
Access
read/write
  1. 7ADDR7
  2. 6ADDR6
  3. 5ADDR5
  4. 4ADDR4
  5. 3ADDR3
  6. 2ADDR2
  7. 1ADDR1
  8. 0ADDR0
1 field
FieldBitsWhat it does
ADDR7:0Address

SDATAClient Data

Address
0x92D
Reset
0x00
Access
read/write
  1. 7DATA7
  2. 6DATA6
  3. 5DATA5
  4. 4DATA4
  5. 3DATA3
  6. 2DATA2
  7. 1DATA1
  8. 0DATA0
1 field
FieldBitsWhat it does
DATA7:0Data

SADDRMASKClient Address Mask

Address
0x92E
Reset
0x00
Access
read/write
  1. 7ADDRMASK6
  2. 6ADDRMASK5
  3. 5ADDRMASK4
  4. 4ADDRMASK3
  5. 3ADDRMASK2
  6. 2ADDRMASK1
  7. 1ADDRMASK0
  8. 0ADDREN
2 fields
FieldBitsWhat it does
ADDRMASK7:1Address Mask
ADDREN0Address Enable