User`s guide
Rev. 1.10 112 November 14, 2014 Rev. 1.10 113 November 14, 2014
HT66FW2230
Wireless Charger A/D Flash 8-Bit MCU
Offset Calibration
TheOCPcircuithas4operatingmodecontrolledbyOCPM1~OCPM0.Oneofthesemodesisthe
calibrationmode.Inthecalibrationmode,theOPandcomparatoroffsetcanbecalibrated.
OPAMPcalibration:
• Step1:SetOCPM[1:0]=11,OCPAOFM=1,theOCPisnowintheOPAMPcalibrationmode.
•
Step2:SetOCPAOF4~OCPAOF0=00000thenreadtheOCPAXbitstatus.
•
Step3:LetOCPAOF=OCPAOF+1thenreadtheOCPAXbitstatus;ifOCPAXischanged,record
theregisterdataasVOS1.
•
Step4:SetOCPAOF[4:0]111111thenreadtheOCPAXbitstatus.
•
Step5:LetOCPAOF=OCPAOF-1thenreadtheOCPAXbitstatus;ifOCPAXischanged,record
theregisterdataasVOS2.
• Step6:RestoreVOS=(VOS1+VOS2)/2totheOCPAOFregister.Thecalibrationisnownished.
Comparatorcalibration:
• Step1:SetOCPM[1:0]=11,OCPCOFM=1,theOCPisnowinthecomparatorcalibrationmode
•
Step2:SetOCPCOF[4:0]=00000thenreadtheOCPCXbitstatus.
•
Step3:LetOCPCOF=OCPCOF+1thenreadtheOCPCXbitstatus;ifOCPCXischanged,record
theregisterdataasVOS1.
•
Step4:SetOCPCOF[4:0]=11111thenreadtheOCPCXbitstatus.
•
Step5:LetOCPCOF=OCPCOF-1thenreadtheOCPCXbitstatus;ifOCPCXdataischanged,
recordtheregisterdataasVOS2.
• Step6:RestoreVOS=(VOS1+VOS2)/2totheOCPCOFregister.Thecalibrationisnownished.
OCP Register Description
TheOCP0andOCP1registersaretheOCPcontrolregisterswhichcontroltheOCPoperationmode,
PGAandlterfunctions.TheOCPREFregisterisusedtoprovidethereferencevoltagesfortheover
currentprotection.OCPACALandOCPCCALareusedtocancelouttheoperationalamplierand
comparatorinputoffset.
OCPC0 Register
Bit 7 6 5 4 3 2 1 0
Name OCPM1 OCPM0 — — — — — —
R/W R/W R/W — — — — — —
POR 0 0 — — — — — —
Bit7~6 OCPM1~OCPM0:Modeselection
00:OCPfunctiondisable,S1,S3on,S0,S2off
01:OCPfunctionenableinnon-Invertermode,S0,S3on,S1,S2off
10:OCPfunctionenableinInvertermode,S1,S2on,S0,S3off
11:OCPfunctionenablein0Vinputmode,S1,S3on,S0,S2off
Note:DisablemeansOPA,CMP,DAC,Filteralloff&comparatoroutput=low.
Bit5~0 Unimplemented,readas0