
CH32V003
Reference Manual
V1.3
152
13.11.2 I2C Control register 2(I2C1_CTLR2)
Offset address: 0x04
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
Reserved
LAST DMA
EN
ITBU
FEN
ITEV
TEN
ITER
REN Reserved
FREQ[5:0]
Bit
Name
Access
Description
Reset value
[15:13] Reserved
RO Reserved
0
12
LAST
RW
DMA last transfer bit.
1
:
Next DMA EOT is the last transfer.
0
:
Next DMA EOT is not the last transfer.
Note: This bit is used in master receiver mode to
permit the generation of a NACK on the last
received data.
0
11
DMAEN
RW
DMA requests enable bit.
Set this bit to allow
DMA request when TxE or RxEN is set.
0
10
ITBUFEN
RW
Buffer interrupt enable bit.
1
:
When TxE or RxEN is set, event interrupt is
generated.
0
:
When TxE or RxEN is set, no interrupt is
generated.
0
9
ITEVTEN
RW
Event interrupt enable bit.
Set this bit to enable
event interrupt. This interrupt will be generated
under the following conditions.
SB=1 (Master mode).
ADDR=1 (Master-slave mode).
ADDR10 = 1 (Master mode).
STOPF=1 (Slave mode).
BTF = 1, but no TxE or RxEN events.
TxE event to 1 if ITBUFEN = 1.
RxNE event to 1if ITBUFEN = 1.
0
8
ITERREN
RW
Error interrupt enable bit. Set to allow error
interrupts.
The interrupt will be generated under the
following conditions.
BERR=1; ARLO=1; AF=1; OVR=1; PECERR=1.
TIMEOUT=1; SMBAlert=1.
0
[7:6]
Reserved
RO Reserved
0
[5:0]
FREQ
RW
The I2C module clock frequency field, which
must be entered at the correct clock frequency to
produce the correct timing, allows a range
between 2-36 MHz. It must be set between
000010b and 100100b in MHz.
0
13.11.3 I2C Own address register 1(I2C1_OAR1)
Offset address: 0x08
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
ADD
MOD
E
Reserved
ADD[9:8]
ADD[7:1]
ADD
0
Bit
Name
Access
Description
Reset value
15
ADDMODE
RW
Address mode.
1: 10-bit slave address (does not respond to 7-bit
addresses).
0