User`s guide
Rev. 1.10 92 November 14, 2014 Rev. 1.10 93 November 14, 2014
HT66FW2230
Wireless Charger A/D Flash 8-Bit MCU
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.Forthisdevice,whichonly
operatesinslavemode,therearetwomethodsoftransferringdataontheI
2
Cbus,theslavetransmit
modeandtheslavereceivemode.
ItissuggestedthattheusershallnotenterthemicroprocessortoHALTmodebyapplication
programduringprocessingI
2
Ccommunication.
IfthepinisconguredtoSDAorSCLfunctionofI
2
Cinterface,thepinisconguredtoopen-collect
Input/Outputportanditspull-upfunctioncanbeenabledbyprogrammingtherelatedGenericPull-
upControlRegister.
START signal
from M aste r
Send s la ve addre ss
and R/W bit from M aste r
A cknow le dge
from s la ve
S end data byte
from M aste r
A cknow l edge
from s la ve
STOP s ig nal
from M aste r