User`s guide
Rev. 1.10 120 November 14, 2014 Rev. 1.10 121 November 14, 2014
HT66FW2230
Wireless Charger A/D Flash 8-Bit MCU
MFI2 Register
Bit 7 6 5 4 3 2 1 0
Name — — DEF LVF — — DEE LVE
R/W — — R/W R/W — — R/W R/W
POR — — 0 0 — — 0 0
Bit7~6 Unimplemented,readas"0"
Bit5 DEF:DataEEPROMinterruptrequestag
0:Norequest
1:Interruptrequest
Bit4 LVF:LVDinterruptrequestag
0:Norequest
1:Interruptrequest
Bit3~2 Unimplemented,readas"0"
Bit1 DEE:DataEEPROMInterruptControl
0:Disable
1:Enable
Bit0 LVE:LVDInterruptControl
0:Disable
1:Enable
Interrupt Operation
Whentheconditionsforaninterrupteventoccur,suchasaTMComparatorPorComparatorA
matchorA/Dconversioncompletionetc,therelevantinterruptrequestagwillbeset.Whether
therequestagactuallygeneratesaprogramjumptotherelevantinterruptvectorisdeterminedby
theconditionoftheinterruptenablebit.Iftheenablebitissethighthentheprogramwilljumpto
itsrelevantvector;iftheenablebitiszerothenalthoughtheinterruptrequestagissetanactual
interruptwillnotbegeneratedandtheprogramwillnotjumptotherelevantinterruptvector.The
globalinterruptenablebit,ifclearedtozero,willdisableallinterrupts.
Whenaninterruptisgenerated,theProgramCounter,whichstorestheaddressofthenextinstruction
tobeexecuted,willbetransferredontothestack.TheProgramCounterwillthenbeloadedwithanew
addresswhichwillbethevalueofthecorrespondinginterruptvector.Themicrocontrollerwillthen
fetchitsnextinstructionfromthisinterruptvector.Theinstructionatthisvectorwillusuallybea“JMP”
whichwilljumptoanothersectionofprogramwhichisknownastheinterruptserviceroutine.Hereis
locatedthecodetocontroltheappropriateinterrupt.Theinterruptserviceroutinemustbeterminated
witha“RETI”,whichretrievestheoriginalProgramCounteraddressfromthestackandallowsthe
microcontrollertocontinuewithnormalexecutionatthepointwheretheinterruptoccurred.
Thevariousinterruptenablebits,togetherwiththeirassociatedrequestflags,areshowninthe
accompanyingdiagramswiththeirorderofpriority.Someinterruptsourceshavetheirown
individualvectorwhileotherssharethesamemulti-function interruptvector.Onceaninterrupt
subroutineisserviced,alltheotherinterruptswillbeblocked,astheglobalinterruptenablebit,
EMIbitwillbeclearedautomatically.Thiswillpreventanyfurtherinterruptnestingfromoccurring.
However,ifotherinterruptrequestsoccurduringthisinterval,althoughtheinterruptwillnotbe
immediatelyserviced,therequestagwillstillberecorded.
Ifaninterruptrequiresimmediateservicingwhiletheprogramisalreadyinanotherinterruptservice
routine,theEMIbitshouldbesetafterenteringtheroutine,toallowinterruptnesting.Ifthestack
isfull,theinterruptrequestwillnotbeacknowledged,eveniftherelatedinterruptisenabled,until
theStackPointerisdecremented.Ifimmediateserviceisdesired,thestackmustbepreventedfrom
becomingfull.Incaseofsimultaneousrequests,theaccompanyingdiagramshowstheprioritythat
isapplied.Alloftheinterruptrequestagswhensetwillwake-upthedeviceifitisinSLEEPor
IDLEMode,howevertopreventawake-upfromoccurringthecorrespondingagshouldbeset
beforethedeviceisinSLEEPorIDLEMode.