Nations Technologies Inc.
Tel
:
+86-755-86309900
:
info@nationstech.com
Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North.
Nanshan District, Shenzhen, 518057, P.R.China
444
/
631
Bit field
Name
Description
1
SMBMODE
SMBus mode
0
:
I2C mode
;
1
:
SMBus mode.
0
EN
I2C Peripheral enable
0
:
Disable I2C module;
1
:
Enable I2C module
Note: If this bit is cleared when the communication is in progress, the I2C module is disabled and
returns to the idle state after the current communication ends,all bits will be cleared.
In master mode,this bit must never be cleared until the communication has ended.
I2C Control register 2 (I2C_CTRL2)
Address offset: 0x04
Reset value: 0x0000
Bit field
Name
Description
15:13
Reserved
Reserved, the reset value must be maintained
.
12
DMALAST
DMA last transfer
0: Next DMA EOT is not the last transfer
1: Next DMA EOT is the last transfer
Note: This bit is used in the master receiving mode, so that a NACK can be generated when
data is received for the last time.
11
DMAEN
DMA requests enable
0: Disable DMA
1: Enable DMA
10
BUFINTEN
Buffer interrupt enable
0: When I2C_STS1.TXDATE=1 or I2C_STS1.RXDATNE=1, any interrupt is not generated.
1: If I2C_CTRL2.EVTINTEN= 1,When I2C_STS1.TXDATE=1 or I2C_STS1.RXDATNE= 1,
interrupt will be generated.
9
EVTINTEN
Event interrupt enable
0
:
Disable event interrupt
;
1
:
Enable event interrupt
This interrupt is generated when:
I2C_STS1.STARTBF = 1 (Master)
I2C_STS1.ADDR F = 1 (Master/Slave)
I2C_STS1.ADD10F = 1 (Master)
I2C_STS1.STOPF = 1 (Slave)
I2C_STS1.BSF = 1 with no I2C_STS1.TXDATE or I2C_STS1.RXDATNE event