GD32A50x User Manual
536
5
STPDETIE
Stop detection interrupt enable
0: Stop detection (STPDET) interrupt is disabled
1: Stop detection (STPDET) interrupt is enabled
4
NACKIE
Not acknowledge received interrupt enable
0: NACK received interrupt is disabled
1: NACK received interrupt is enabled
3
ADDMIE
Address match interrupt enable in slave mode
0: Address match interrupt is disabled
1: Address match interrupt is enabled
2
RBNEIE
Receive interrupt enable
0: Receive (RBNE) interrupt is disabled
1: Receive (RBNE) interrupt is enabled
1
TIE
Transmit interrupt enable
0: Transmit (TI) interrupt is disabled
1: Transmit (TI) interrupt is enabled
0
I2CEN
I2C peripheral enable
0: I2C is disabled
1: I2C is enabled
20.4.2.
Control register 1 (I2C_CTL1)
Address offset: 0x04
Reset value: 0x0000 0000
This register can be accessed by word(32-bit).
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
Reserved
PECTRA
NS
AUTOEN
D
RELOAD
BYTENUM[7:0]
rw
rw
rw
rw
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
NACKEN
STOP
START
HEAD10
R
ADD10E
N
TRDIR
SADDRESS[9:0]
rw
rw
rw
rw
rw
rw
rw
Bits
Fields
Descriptions
31:27
Reserved
Must be kept at reset value.
26
PECTRANS
PEC Transfer
Set by software.
Cleared by hardware in the following cases:
When PEC byte is transferred or ADDSEND bit is set or STOP signal is detected or
I2CEN=0.