Rev. 2.50 186 June 22, 2017 Rev. 2.50 187 June 22, 2017
HT66F20/HT66F30/HT66F40/HT66F50/HT66F60
HT66FU30/HT66FU40/HT66FU50/HT66FU60
A/D Flash MCU with EEPROM
HT66F20/HT66F30/HT66F40/HT66F50/HT66F60
HT66FU30/HT66FU40/HT66FU50/HT66FU60
A/D Flash MCU with EEPROM
SPI Registers
TherearethreeinternalregisterswhichcontroltheoveralloperationoftheSPIinterface.Theseare
theSIMDdataregisterandtworegistersSIMC0andSIMC2.NotethattheSIMC1registerisonly
usedbytheI
2
Cinterface.
Register
Name
Bit
7 6 5 4 3 2 1 0
SIMC0 SIM2
SIM1 SIM0 PCKEN PCKP1 PCKP0 SIMEN —
SIMD
D7 D6 D5 D4 D3 D2 D1 D0
SIMC2
D7 D6 CKPOLB CKEG MLS CSEN WCOL TRF
SIM Registers List
TheSIMDregisterisusedtostorethedatabeingtransmittedandreceived.Thesameregisterisused
byboththeSPIandI
2
Cfunctions.BeforethedevicewritesdatatotheSPIbus,theactualdatato
betransmittedmustbeplacedintheSIMDregister.AfterthedataisreceivedfromtheSPIbus,the
devicecanreaditfromtheSIMDregister.AnytransmissionorreceptionofdatafromtheSPIbus
mustbemadeviatheSIMDregister.
• 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”: unknown
TherearealsotwocontrolregistersfortheSPIinterface,SIMC0andSIMC2.NotethattheSIMC2
registeralsohasthenameSIMAwhichisusedbytheI
2
Cfunction.TheSIMC1registerisnotused
bytheSPIfunction,onlybytheI
2
Cfunction.RegisterSIMC0isusedtocontroltheenable/disable
functionandtosetthedatatransmissionclockfrequency.AlthoughnotconnectedwiththeSPI
function,theSIMC0registerisalsousedtocontrolthePeripheralClockPrescaler.RegisterSIMC2
isusedforothercontrolfunctionssuchasLSB/MSBselection,writecollisionagetc.