Rev. 1.10
152
October 23, 2020
Rev. 1.10
153
October 23, 2020
BC66F5652
2.4GHz RF Transceiver A/D Flash MCU
BC66F5652
2.4GHz RF Transceiver A/D Flash MCU
I
2
C Address Register
The SIMA register is also used by the SPI interface but has the name SIMC2. The SIMA register is
the location where the 7-bit slave address of the slave device is stored. Bits 7~1 of the SIMA register
define the device slave address. Bit 0 is not defined. When a master device, which is connected to
the I
2
C bus, sends out an address, which matches the slave address in the SIMA register, the slave
device will be selected. Note that the SIMA register is the same register address as SIMC2 which is
used by the SPI interface.
• SIMA Register
Bit
7
6
5
4
3
2
1
0
Name
SIMA6
SIMA5
SIMA4
SIMA3
SIMA2
SIMA1
SIMA0
D0
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
POR
0
0
0
0
0
0
0
0
Bit 7~1
SIMA6~SIMA0
: I
2
C slave address
SIMA6~SIMA0 is the I
2
C slave address bit 6 ~ bit 0
Bit 0
D0
: Reserved bit, can be read or written by the application program
I
2
C Control Register
There are also three control registers for the I
2
C interface, SIMC0, SIMC1 and SIMTOC. The
register SIMC0 is used to control the enable/disable function and to set the data transmission
clock frequency.
The SIMC1 register contains the relevant flags which are used to indicate the I
2
C
communication status. The SIMTOC register is used to control the I
2
C bus time-out function which
is described in the I
2
C Time-out Control section.
• SIMC0 Register
Bit
7
6
5
4
3
2
1
0
Name
SIM2
SIM1
SIM0
—
SIMDEB1 SIMDEB0 SIMEN
SIMICF
R/W
R/W
R/W
R/W
—
R/W
R/W
R/W
R/W
POR
1
1
1
—
0
0
0
0
Bit 7~5
SIM2~SIM0:
SIM Operating Mode Control
000: SPI master mode; SPI clock is f
SYS
/4
001: SPI master mode; SPI clock is f
SYS
/16
010: SPI master mode; SPI clock is f
SYS
/64
011: SPI master mode; SPI clock is f
SUB
100: SPI master mode; SPI clock is PTM CCRP match frequency/2
101: SPI slave mode
110: I
2
C slave mode
111: Unused mode
These bits setup the overall operating mode of the SIM function. As well as selecting
if the I
2
C or SPI function, they are used to control the SPI Master/Slave selection and
the SPI Master clock frequency. The SPI clock is a function of the system clock but
can also be chosen to be sourced from PTM and f
SUB
. If the SPI Slave Mode is selected
then the clock will be supplied by an external Master device.
Bit 4
Unimplemented, read as “0”
Bit 3~2
SIMDEB1~SIMDEB0
:
I
2
C Debounce Time Selection
00: No debounce
01: 2 system clock debounce
1x: 4 system clock debounce
These bits are used to select the I
2
C debounce time when the SIM is configured as the
I
2
C interface function by setting the SIM2~SIM0 bits to “110”.