Rev. 1.10
144
October 23, 2020
Rev. 1.10
145
October 23, 2020
BC66F5652
2.4GHz RF Transceiver A/D Flash MCU
BC66F5652
2.4GHz RF Transceiver A/D Flash MCU
•
LSB first or MSB first data transmission modes
•
Transmission complete flag
• Rising or falling active clock edge
The status of the SPI interface pins is determined by a number of factors such as whether the device is
in the master or slave mode and upon the condition of certain control bits such as CSEN and SIMEN.
SIMD
TX/RX Shift Register
SDI Pin
Clock
Edge/Polarity
Control
CKEG
CKPOLB
Clock
Source
Select
f
SYS
f
SUB
PTM CCRP match frequency/2
SCK Pin
CSEN
Busy
Status
SDO Pin
WCOL Flag
TRF Flag
SCS Pin
Data Bus
SIMICD Flag
SPI Block Diagram
SPI Registers
There are three internal registers which control the overall operation of the SPI interface. These are
the SIMD data register and two registers SIMC0 and SIMC2. The SIMC1 register is only used by
the I
2
C interface.
Register
Name
Bit
7
6
5
4
3
2
1
0
SIMC0
SIM2
SIM1
SIM0
—
SIMDEB1 SIMDEB0 SIMEN
SIMICF
SIMC2
D7
D6
CKPOLB
CKEG
MLS
CSEN
WCOL
TRF
SIMD
D7
D6
D5
D4
D3
D2
D1
D0
SPI Register List
SPI Data Register
The SIMD register is used to store the data being transmitted and received. The same register is used
by both the SPI and I
2
C functions. Before the device writes data to the SPI bus, the actual data to
be transmitted must be placed in the SIMD register. After the data is received from the SPI bus, the
device can read it from the SIMD register. Any transmission or reception of data from the SPI bus
must be made via the SIMD register.
• SIMD Register
Bit
7
6
5
4
3
2
1
0
Name
D7
D6
D5
D4
D3
D2
D1
D0
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
POR
x
x
x
x
x
x
x
x
“x”: unknown
Bit 7~0
D7~D0
: SIM data register bit 7 ~ bit 0