Rev. 2.50 192 June 22, 2017 Rev. 2.50 193 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
I
2
C Interface
TheI
2
Cinterfaceisusedtocommunicatewithexternalperipheraldevicessuchassensors,
EEPROMmemoryetc.OriginallydevelopedbyPhilips,itisatwolinelowspeedserialinterface
forsynchronousserialdatatransfer.Theadvantageofonlytwolinesforcommunication,relatively
simplecommunicationprotocolandtheabilitytoaccommodatemultipledevicesonthesamebus
hasmadeitanextremelypopularinterfacetypeformanyapplications.
I
2
C Master Slave Bus Connection
I
2
C Interface Operation
TheI
2
Cserialinterfaceisatwolineinterface,aserialdataline,SDA,andserialclockline,SCL.As
manydevicesmaybeconnectedtogetheronthesamebus,theiroutputsarebothopendraintypes.
Forthisreasonitisnecessarythatexternalpull-highresistorsareconnectedtotheseoutputs.Note
thatnochipselectlineexists,aseachdeviceontheI
2
Cbusisidentiedbyauniqueaddresswhich
willbetransmittedandreceivedontheI
2
Cbus.
WhentwodevicescommunicatewitheachotheronthebidirectionalI
2
Cbus,oneisknownasthe
masterdeviceandoneastheslavedevice.Bothmasterandslavecantransmitandreceivedata,
however,itisthemasterdevicethathasoverallcontrolofthebus.Forthesedevices,whichonly
operatesinslavemode,therearetwomethodsoftransferringdataontheI
2
Cbus,theslavetransmit
modeandtheslavereceivemode.
ThereareseveralcongurationoptionsassociatedwiththeI
2
Cinterface.Oneoftheseistoenable
thefunctionwhichselectstheSIMpinsratherthannormalI/Opins.Notethatiftheconguration
optiondoesnotselecttheSIMfunctionthentheSIMENbitintheSIMC0registerwillhaveno
effect.AconfigurationoptiondeterminesthedebouncetimeoftheI
2
Cinterface.Thisusesthe
systemclocktoineffectaddadebouncetimetotheexternalclocktoreducethepossibilityof
glitchesontheclocklinecausingerroneousoperation.Thedebouncetime,ifselected,canbe
chosentobeeither2or4systemclocks.ToachievetherequiredI
2
Cdatatransferspeed,there
existsarelationshipbetweenthesystemclock,f
SYS
,andtheI
2
Cdebouncetime.ForeithertheI
2
C
StandardorFastmodeoperation,usersmusttakecareoftheselectedsystemclockfrequencyand
thecongureddebouncetimetomatchthecriterionshowninthefollowingtable.
I
2
C Debounce Time Selection I
2
C Standard Mode (100kHz) I
2
C Fast Mode (400kHz)
No debounce f
SYS
> 2MHz f
SYS
> 5MHz
2 system clock debounce f
SYS
> 4MHz f
SYS
> 10MHz
4 system clock debounce f
SYS
> 8MHz f
SYS
> 20MHz
I
2
C Minimum f
SYS
Frequency