English
Language : 

BH66F2470 Datasheet, PDF (140/223 Pages) Holtek Semiconductor Inc – Glucose Meter Flash MCU
BH66F2470
Glucose Meter 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.
Data Bus
SIMD
SDI Pin
TX/RX Shift Register
SDO Pin
CKEG
CKPOLB
SCK Pin
fSYS
fSUB
PTM2 CCRP match frequency/2
Clock
Edge/Polarity
Control
Clock
Source
Select
Busy
Status
SCS Pin
CSEN
SPI Block Diagram
WCOL
TRF
SIMICF
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
SIMC0
SIMC2
SIMD
7
SIM2
D7
D7
6
SIM1
D6
D6
5
SIM0
CKPOLB
D5
Bit
4
3
2
— SIMDEB1 SIMDEB0
CKEG
MLS
CSEN
D4
D3
D2
1
SIMEN
WCOL
D1
0
SIMICF
TRF
D0
SPI Registers 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 I2C 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.
Rev. 1.00
140
March 15, 2017