Rev. 1.00
134
September 11, 2018
Rev. 1.00
135
September 11, 2018
HT45F4050
A/D NFC Flash MCU
HT45F4050
A/D NFC Flash MCU
The SPI function in the device offers the following features:
•
Full duplex synchronous data transfer
•
Both Master and Slave modes
•
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
SCS Pin
Data Bus
WCOL
TRF
SIMICF
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
control registers, SIMC0 and SIMC2.
Register
Name
Bit
7
6
5
4
3
2
1
0
SIMC0
SIM2
SIM1
SIM0
—
SIMDEB1 SIMDEB0 SIMEN
SIMICF
SIMC2
D7
D6
CKPOLB
—
MLS
CSEN
WCOL
TRF
SIMD
D7
D6
D5
—
D3
D2
D1
D0
SPI Registers List