www.geehy.com Page 351
Field
Name
R/W
Description
0
ADDRNUM
R/W
Slave Address Number Configure
In the slave 7-bit address mode, it can be configured to identify the
single-address mode and double-address mode; only ADDR1 is
identified in single-address mode; both ADDR1 and ADDR2 can be
identified in double-address mode
Single or double address registers can be identified in 7-bit address
mode, specifically as follows:
0: Identify one address (ADDR1)
1: Identify two addresses (ADDR1 and ADDR2)
7:1
ADDR2[7:1]
R/W
Slave Dual Address Mode Address Setup
[7:1] bit of the address in double-address mode
15:8
Reserved
Data register (I2C_DATA)
Offset address: 0x10
Reset value: 0x0000
Field
Name
R/W
Description
7:0
DATA
R/W
Data Register
In I2C transmission mode, write the data to be sent to this register; in I2C
receiving mode, read the received data from this register.
15:8
Reserved
State register 1 (I2C_STS1)
Offset address: 0x14
Reset value: 0x0000
Field
Name
R/W
Description
0
STARTFLG
R
Start Bit Sent Finished Flag
0: Not transmit
1: Transmit
When the start bit is sent, this bit can be set to 1 by hardware; this
bit can be cleared after the software first reads STS1 register and
then writes the DATA register; when I2CEN
=0, it can be cleared by
hardware.
1
ADDRFLG
R
Address Transfer Complete /Receive Match Flag
Whether the matching address is received in slave mode:
0: Not receive
1: Receive
Whether finishing transmitting the address in master mode:
0: Not completed
1: Completed
The bit is set to 1 by hardware; this bit can be cleared after the
software first reads STS1 register and then reads STS2 register;
when I2CEN=0, it can be cleared by hardware.
2
BTCFLG
R
Byte Transfer Complete Flag
0: Not completed
1: Completed