User`s guide

Rev. 1.10 94 November 14, 2014 Rev. 1.10 95 November 14, 2014
HT66FW2230
Wireless Charger A/D Flash 8-Bit MCU
I
2
C Registers
TherearefourcontrolregistersassociatedwiththeI
2
Cbus,IICC0,IICC1,IICAandI2CTOCand
onedataregister,IICD.TheIICDregister,isusedtostorethedatabeingtransmittedandreceivedon
theI
2
Cbus.BeforethemicrocontrollerwritesdatatotheI
2
Cbus,theactualdatatobetransmitted
mustbeplacedintheIICDregister.AfterthedataisreceivedfromtheI
2
Cbus,themicrocontroller
canreaditfromtheIICDregister.AnytransmissionorreceptionofdatafromtheI
2
Cbusmustbe
madeviatheIICDregister.
Register
Name
Bit
7 6 5 4 3 2 1 0
IICC0
I2CDBNC1 I2CDBNC0 I2CEN
IICC1 IICHCF IICHAAS IICHBB IICHTX IICTXAK IICSRW
IICRNIC IICRXAK
IICD IICDD7 IICDD6 IICDD5
IICDD4 IICDD3 IICDD2 IICDD1 IICDD0
IICA IICA6 IICA5
IICA4 IICA3 IICA2 IICA1 IICA0
I2CTOC I2CTOEN I2CTOF I2CTOS5 I2CTOS4 I2CTOS3 I2CTOS2 I2CTOS1 I2CTOS0
I
2
C Registers List
IICC0 Register
Bit 7 6 5 4 3 2 1 0
Name I2CDBNC1 I2CDBNC0 I2CEN
R/W R/W R/W R/W
POR 0 0 0
Bit7~4 unimplemented,readas“0”
Bit3~2 I2CDBNC1~I2CDBNC0:I
2
CDebounceTimeSelection
00:Nodebounce
01:2systemclockdebounce
10:4systemclockdebounce
11:4systemclockdebounce
Bit1 I2CEN:I
2
Cenable
0:Disable(GPIOpin-sharedwithI
2
CisI/Ofunction)
1:Enable(GPIOpin-sharedwithI
2
CisI
2
Cfunction)
Bit0 Unimplemented,readas"0"
I
2
Cfunctioncouldbeturnedofforturnedonbycontrollingtherelatedpin-sharingcontrolbitwhich
decidesthefunctionoftheI/Oportspin-sharedthepinsSDAandSCL.WhentheI/Oportspin-
sharedthepinsSDAandSCLarechosentothefunctionsotherthanSDAandSCLbypin-sharing
controlbit,I
2
Cfunctionisturnedoffanditsoperatingcurrentwillbereducedtoaminimumvalue.
Incontrary,I
2
CfunctionisturnedonwhentheI/Oportspin-sharedthepinsSDAandSCLare
chosentothepinsSDAandSCLbycontrollingpin-sharingcontrolbit.