EasyManua.ls Logo

Holtek HT66F0175 - Page 138

Default Icon
207 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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
TheSIMDregisterisusedtostorethedatabeingtransmittedandreceived.Thesameregisterisused
byboththeSPIandI
2
Cfunctions.BeforethedevicewritesdatatotheI
2
Cbus,theactualdatato
betransmittedmustbeplacedintheSIMDregister.AfterthedataisreceivedfromtheI
2
Cbus,the
devicecanreaditfromtheSIMDregister.AnytransmissionorreceptionofdatafromtheI
2
Cbus
mustbemadeviathe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 x x x x x x x
“x”: unknown
SIMA Register
TheSIMAregisterisalsousedbytheSPIinterfacebuthasthenameSIMC2.TheSIMAregisteris
thelocationwherethe7-bitslaveaddressoftheslavedeviceisstored.Bits7~1oftheSIMAregister
denethedeviceslaveaddress.Bit0isnotdened.
Whenamasterdevice,whichisconnectedtotheI
2
Cbus,sendsoutanaddress,whichmatchesthe
slaveaddressintheSIMAregister,theslavedevicewillbeselected.NotethattheSIMAregisteris
thesameregisteraddressasSIMC2whichisusedbytheSPIinterface.
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
Bit7~1 IICA6~IICA0:I
2
Cslaveaddress
IICA6~IICA0istheI
2
Cslaveaddressbit6~bit0
Bit0 Undenedbit
Thebitcanbereadorwrittenbytheapplicationprogram.
TherearealsothreecontrolregistersfortheI
2
Cinterface,SIMC0,SIMC1andSIMTOC.The
registerSIMC0isusedtocontroltheenable/disablefunctionandtosetthedatatransmission
clockfrequency.TheSIMC1registercontainstherelevantagswhichareusedtoindicatetheI
2
C
communicationstatus.TheSIMTOCregisterisusedtocontroltheI
2
Cbustime-outfunctionwhich
isdescribedintheI
2
CTime-outControlsection.

Table of Contents