English
Language : 

HT69F340 Datasheet, PDF (150/235 Pages) Holtek Semiconductor Inc – TinyPowerTM I/O Flash MCU with LCD & EEPROM
HT69F340/HT69F350/HT69F360
TinyPowerTM I/O Flash MCU with LCD & EEPROM
Bit 0
SIMICF: SIM Incomplete Flag
0: SIM incomplete is not occurred
1: SIM incomplete is occurred
The SIMICF bit is determined by SCS pin. When SCS pin is set to “1”, it will clear the
SPI counter. Meanwhile, the interrupt is occurred, if slave device didn’t complete data
received, then the incomplete flag, SIMICF, is set to “1”.
SIMC2 Register
Bit
7
Name
D7
R/W
R/W
POR
0
6
5
4
3
2
1
0
D6
CKPOLB CKEG
MLS
CSEN WCOL
TRF
R/W
R/W
R/W
R/W
R/W
R/W
R/W
0
0
0
0
0
0
0
Bit 7 ~ 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Undefined bits
These bits can be read or written by user software program.
CKPOLB: Determines the base condition of the clock line
0: the SCK line will be high when the clock is inactive
1: the SCK line will be low when the clock is inactive
The CKPOLB bit determines the base condition of the clock line, if the bit is high,
then the SCK line will be low when the clock is inactive. When the CKPOLB bit is
low, then the SCK line will be high when the clock is inactive.
CKEG: Determines SPI SCK active clock edge type
CKPOLB=0
0: SCK is high base level and data capture at SCK rising edge
1: SCK is high base level and data capture at SCK falling edge
CKPOLB=1
0: SCK is low base level and data capture at SCK falling edge
1: SCK is low base level and data capture at SCK rising edge
The CKEG and CKPOLB bits are used to setup the way that the clock signal outputs
and inputs data on the SPI bus. These two bits must be configured before data transfer
is executed otherwise an erroneous clock edge may be generated. The CKPOLB bit
determines the base condition of the clock line, if the bit is high, then the SCK line
will be low when the clock is inactive. When the CKPOLB bit is low, then the SCK
line will be high when the clock is inactive. The CKEG bit determines active clock
edge type which depends upon the condition of CKPOLB bit.
MLS: SPI Data shift order
0: LSB
1: MSB
This is the data shift select bit and is used to select how the data is transferred, either
MSB or LSB first. Setting the bit high will select MSB first and low for LSB first.
CSEN: SPI SCS pin Control
0: Disable
1: Enable
The CSEN bit is used as an enable/disable for the SCS pin. If this bit is low, then the
SCS pin will be disabled and placed into I/O pin or the other functions. If the bit is
high the SCS pin will be enabled and used as a select pin.
WCOL: SPI Write Collision flag
0: No collision
1: Collision
The WCOL flag is used to detect if a data collision has occurred. If this bit is high it
means that data has been attempted to be written to the SIMD register during a data
transfer operation. This writing operation will be ignored if data is being transferred.
The bit can be cleared by the application program.
Rev. 1.30
150
November 18, 2016