628
/
838
Nations Technologies Inc.
Tel
:
+86-755-86309900
:
Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North.
Nanshan District, Shenzhen, 518057, P.R.China
Bit field
Name
Description
8
ERRINTEN
Error interrupt enable
0
:
Disable error interrupt
;
1
:
Enable error interrupt.
This interrupt is generated when:
I2C_STS1.BUSERR = 1
;
I2C_STS1.ARLOST = 1
;
I2C_STS1.ACKFAIL = 1
;
I2C_STS1.OVERRUN = 1
;
I2C_STS1.PECERR = 1
;
I2C_STS1.TIMOUT = 1
;
I2C_STS1.SMBALERT = 1.
7:6
Reserved
Reserved, the reset value must be maintained
.
5:0
CLKFREQ[5:0]
I2C Peripheral clock frequency
CLKFREQ[5:0] should be the APB clock frequency to generate the correct timming.
000000
:
Disable
000001
:
Disable
000010
:
2MHz
000011
:
3MHz
...
100100
:
36MHz
100101~111111
:
Disable.
22.6.4
I2C Own address register 1 (I2C_OADDR1)
Address offset: 0x08
Reset value: 0x0000
Bit field
Name
Description
15
ADDRMODE
Addressing mode (slave mode)
0: 7-bit slave address
1: 10-bit slave address
14
Reserved
Must always be kept as' 1' by the software.
13:10
Reserved
Reserved, the reset value must be maintained.
9:8
ADDR[9:8]
Interface address
9~8 bits of the address.
Note: don't care these bits in 7-bit address mode
7:1
ADDR[7:1]
Interface address
7~1 bits of the address.
0
ADDR0
Interface address