![Geehy SEMICONDUCTOR APM32F405 Series User Manual Download Page 351](http://html1.mh-extra.com/html/geehy-semiconductor/apm32f405-series/apm32f405-series_user-manual_573630351.webp)
www.geehy.com Page 350
Field
Name
R/W
Description
8
ERRIEN
R/W
Error Interrupt Enable
0: Disable
1: When the position 1 of any of the following state register is enabled,
the interrupt will be generated: SMBALTFLG, TTEFLG, PECEFLG,
OVRURFLG, AEFLG, ALFLG, and STS1_BERRFLG
9
EVIEN
R/W
Event Interrupt Enable
0: Disable
1: When the position 1 of any of the following state registers is enabled,
the interrupt will be generated: STARTFLG, ADDRFLG, ADDR10FLG,
STOPFLG, BTCFLG, TXBEFLG is set to 1 and BUFIEN is set to 1,
RXBNEFLG is set to 1 and BUFIEN is set to 1.
10
BUFIEN
R/W
Buffer Interrupt Enable
0: Disable
1: Enable; when the bit of any of the following state register is set to 1,
the interrupt will be generated: TXBEFLG and RXBNEFLG
11
DMAEN
R/W
DMA Requests Enable
0: Disable
1: When TXBEFLG=1 or RXBNEFLG=1, enable DMA request
12
LTCFG
R/W
DMA Last Transfer Configure
Configure whether the EOT of the next DMA is the last transmission
received, and only used for the master receiving mode.
0: No
1: Yes
15:13
Reserved
Slave mode address register 1 (I2C_SADDR1)
Offset address: 0x08
Reset value: 0x0000
Field
Name
R/W
Description
0
ADDR[0]
R/W
Slave Address Setup
When the address mode is 7 bits, the bit is invalid; when the
address mode is 10 bits, this bit is the 0 bit of the address.
7:1
ADDR[7:1]
R/W
Slave Address Setup
Slave address [7:1] bit
9:8
ADDR[9:8]
R/W
Slave Address Setup
When the address mode is 7 bits, the bit is invalid; when the
address mode is 10 bits, this bit is the [9:8] bit of the address.
14:10
Reserved
15
ADDRLEN
R/W
Slave Address Length Configure
0: 7-bit address mode
1: 10-bit address mode
Slave address register 2 (I2C_SADDR2)
Offset address: 0x0C
Reset value: 0x0000