Nations Technologies Inc.
Tel
:
+86-755-86309900
:
info@nationstech.com
Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North.
Nanshan District, Shenzhen, 518057, P.R.China
443
/
631
Bit field
Name
Description
It can be set or cleared by software. Or when I2C_CTRL1.EN equals to 0, it will be cleared by
hardware.
0
:
No acknowledge send;
1
:
Send an acknowledge after receiving a byte
9
STOPGEN
Stop generation
It can be set or cleared by software. Or it will be cleared by hardware when a stop condition is
detected. Or it will be set by hardware when SMBus timeout error is detected,.
In the master mode:
0
:
No stop condition generates;
1
:
Generate a stop condition.
In the slave mode:
0
:
No stop condition generates;
1
:
Release SCL and SDA lines after the current byte.
Note
:
When the STOPGEN, STARTGEN or PEC bit is set, the software should not take any write
operation to I2C_CTRL1 until this bit is cleared by hardware. Otherwise, the STOPGEN,
STARTGEN or PEC bits may be set twice.
8
STARTGEN
Start generation
It can be set or cleared by software. Or it will be cleared by hardware when the start condition is
transferred or I2C_CTRL1.EN=0.
0: No start condition generates;
1: Generate a start conditions.
7
NOEXTEND
Clock extending disable (Slave mode)
This bit determines whether to pull SCL low when the data is not ready(I2C_STS1.ADDRF or
I2C_STS1.BSF flag is set) in slave mode, and is cleared by software reset
0: Enable Clock extending.
1: Disable Clock extending.
6
GCEN
General call enable
0
:
Disable General call. not respond(NACK) to the address 00h;
1
:
Enable General call. respond(ACK) the address 00h.
5
PECEN
PEC enable
0
:
Disable PEC module;
1
:
Enable PEC module.
4
ARPEN
ARP enable
0: Disable ARP
;
1: Enable ARP.
If I2C_CTRL1.SMBTYPE=0, the default address of SMBus device is used.
If I2C_CTRL1.SMBTYPE=1, the host address of SMBus is used.
3
SMBTYPE
SMBus type
0: Device
1: Host
2
Reserved
Reserved, the reset value must be maintained.