Rev. 1.50 138 August 28, 2017 Rev. 1.50 139 August 28, 2017
HT66F0175/HT66F0185
A/D Flash MCU with EEPROM
HT66F0175/HT66F0185
A/D Flash MCU with EEPROM
SIMD Register
TheSIMDregisterisusedtostorethedatabeingtransmittedandreceived.Thesameregisterisused
byboththeSPIandI
2
Cfunctions.BeforethedevicewritesdatatotheI
2
Cbus,theactualdatato
betransmittedmustbeplacedintheSIMDregister.AfterthedataisreceivedfromtheI
2
Cbus,the
devicecanreaditfromtheSIMDregister.AnytransmissionorreceptionofdatafromtheI
2
Cbus
mustbemadeviatheSIMDregister.
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
SIMA Register
TheSIMAregisterisalsousedbytheSPIinterfacebuthasthenameSIMC2.TheSIMAregisteris
thelocationwherethe7-bitslaveaddressoftheslavedeviceisstored.Bits7~1oftheSIMAregister
denethedeviceslaveaddress.Bit0isnotdened.
Whenamasterdevice,whichisconnectedtotheI
2
Cbus,sendsoutanaddress,whichmatchesthe
slaveaddressintheSIMAregister,theslavedevicewillbeselected.NotethattheSIMAregisteris
thesameregisteraddressasSIMC2whichisusedbytheSPIinterface.
Bit 7 6 5 4 3 2 1 0
Name IICA6 IICA5 IICA4 IICA3 IICA2 IICA1 IICA0 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
Bit7~1 IICA6~IICA0:I
2
Cslaveaddress
IICA6~IICA0istheI
2
Cslaveaddressbit6~bit0
Bit0 Undenedbit
Thebitcanbereadorwrittenbytheapplicationprogram.
TherearealsothreecontrolregistersfortheI
2
Cinterface,SIMC0,SIMC1andSIMTOC.The
registerSIMC0isusedtocontroltheenable/disablefunctionandtosetthedatatransmission
clockfrequency.TheSIMC1registercontainstherelevantagswhichareusedtoindicatetheI
2
C
communicationstatus.TheSIMTOCregisterisusedtocontroltheI
2
Cbustime-outfunctionwhich
isdescribedintheI
2
CTime-outControlsection.