Rev. 1.50 144 August 28, 2017 Rev. 1.50 145 August 28, 2017
HT66F0175/HT66F0185
A/D Flash MCU with EEPROM
HT66F0175/HT66F0185
A/D Flash MCU with EEPROM
I C time- out
c ounte r start
I C time- out c ounte r re set
on SCL negativ e transitio n
101 001 00
1
0
01010
1
1
SCL
Start
SDA
SRW
ACK
Stop
SCL
SDA
Slave Address
2
2
I
2
C Time-out
WhenanI
2
Ctime-outcounteroverowoccurs,thecounterwillstopandtheSIMTOENbitwill
beclearedtozeroandtheSIMTOFbitwillbesethightoindicatethatatime-outconditionhas
occurred.Thetime-outconditionwillalsogenerateaninterruptwhichusestheI
2
Cinterrruptvector.
WhenanI
2
Ctime-outoccurs,theI
2
Cinternalcircuitrywillberesetandtheregisterswillbereset
intothefollowingcondition:
Register After I
2
C Time-out
SIMD, SIMA, SIMC0 No change
SIMC1 Reset to POR condition
I
2
C Register after Time-out
TheSIMTOFagcanbeclearedbytheapplicationprogram.Thereare64time-outperiodselections
whichcanbeselectedusingtheSIMTOSbitsintheSIMTOCregister.Thetime-outdurationis
calculatedbytheformula:((1~64)×(32/f
SUB
)).Thisgivesatime-outperiodwhichrangesfrom
about1msto64ms.
SIMTOC Register
Bit 7 6 5 4 3 2 1 0
Name SIMTOEN SIMTOF SIMTOS5 SIMTOS4 SIMTOS3 SIMTOS2 SIMTOS1 SIMTOS0
R/W R/W R/W R/W R/W R/W R/W R/W R/W
POR 0 0 0 0 0 0 0 0
Bit7 SIMTOEN:SIMI
2
CTime-outfunctioncontrol
0:Disable
1:Enable
Bit6 SIMTOF:SIMI
2
CTime-outag
0:Notime-outoccurred
1:Time-outoccurred
Bit5~0 SIMTOS5~SIMTOS0:SIMI
2
CTime-outperiodselection
I
2
CTime-outclocksourceisf
SUB
/32
I
2
CTime-outperiodisequalto
(SIMTOS[5:0]+1)×
32
f
SUB