AT32WB415
Series Reference Manual
2022.04.13
Page 130
Ver 2.00
– OVER = 1
– PECERR = 1
– TMOUT = 1
– ALERTF = 1
Bit 7: 0
CLKFREQ
0x00
rw
I
2
C input clock frequency
Correct input clock frequency must be set to generate
correct timings. The range allowed is between 2 MHz and
120 MHz.
2: 2MHz
3: 3MHz
……
120: 120MHz
11.5.3 Own address register1 (I2C_OADDR1)
Bit
Register
Reset value
Type
Description
Bit 15
ADDR1MODE
0x0
rw
Address mode
0: 7-bit address
1: 10-bit address
Bit 14: 10 Reserved
0x00
resd
Kept at its default value.
Bit 9: 0
ADDR1
0x000
rw
Own address1
In 7-bit address mode, bit 0 and bit [9
:
8] don’t care.
11.5.4 Own address register2 (I2C_OADDR2)
Bit
Register
Reset value
Type
Description
Bit 15: 8
Reserved
0x00
resd
Kept at its default value.
Bit 7: 1
ADDR2
0x00
rw
Own address 2
7-bit address
Bit 0
ADDR2EN
0x0
rw
Own address 2 enable
0: In 7-bit address mode, only OADDR1 is recognized.
1: In 7-bit address mode, both OADDR1 and OADDR2 are
recognized.
11.5.5 Data register (I2C_DT)
Bit
Register
Reset value
Type
Description
Bit 15: 8
Reserved
0x00
resd
Kept at its default value
Bit 7: 0
DT[7
:
0]
0x00
rw
This field is used to store data received or to be
transferred.
Transmitter mode: Data transfer starts automatically when
a byte is written to the DT register. Once the transfer starts
(TDE=1), I
2
C will keep a continuous data transfer flow if the
next data to be transferred is written to the DT register in a
timely manner.
Receiver mode: Btyes received are copied into the DT
register (RDNE=1). A continuous data transfer flow can be
maintained if the DT register is read before the next word
is received (RDNE=1).
Note: If an ARLOST event occurs on ACK pulse, the
received byte is not copied into the data register, so it
cannot be read.