![NXP Semiconductors QN902 Series User Manual Download Page 63](http://html1.mh-extra.com/html/nxp-semiconductors/qn902-series/qn902-series_user-manual_1722213063.webp)
NXP Semiconductors
QN902x
User Manual of QN902x
UM10996
All information provided in this document is subject to legal disclaimers.
© NXP Semiconductors N.V. 2018. All rights reserved.
User Manual
Rev 1.3
— 05 November 2018
63 of 128
RX_INT interrupt is cleared.
4.
Data transfer finishes when STOP condition is detected.
7.4 Register Description
7.4.1 Register Map
The I2C registers base address is 0x40008000.
Table 35 I2C Register Map
Offset
Name
Description
000h
CR
Control register
004h
SR
Status register
008h
TXD
TX data register
00Ch
RXD
RX data register
010h
INT
Interrupt register
7.4.2
Register Description
Table 36 CR
Bit
Type
Reset
Symbol
Description
31-30
R
0
RSVD
Reserved
29-24
RW
0
SCL _RATIO[5-0]
I2C master clock ratio
fscl = (pclk/20)/(SC1)
The frequency range is pclk/20~pclk1260. The duty ratio is
2:3.
23
R
0
RSVD
Reserved
22-16
RW
0
SLAVE_ADDR[6-
0]
7-bit Slave address. In slave mode, the QN902x processor
responds when the 7-bit received address matches the
value in this register.
15-10
R
0
RSVD
Reserved
9
RW
0
SLV_EN
Slave mode enable
0:
disable slave mode
1: enable slave mode
Cannot set this bit and MSTR_EN at the same time
8
RW
0
MSTR_EN
Master mode enable
0:
disable master mode
1:enable master mode
Cannot set this bit and SLV_EN at the same time
7-6
R
0
RSVD
Reserved
5
RW
0
STP_INT_EN
Abnormal stop interrupt enable
0:
disable interrupt
1:
As a slave receiver, the I2C interface generated a NACK
pulse.
4
RW
0
SAM_INT_EN
Slave address match interrupt enable (only valid in slave
mode)
0: No slave address was detected
1:
The I2C interface detected a 7-bit address on the bus
that matches the pre-programmed SLAVE_ADDR[6:0].