User`s guide
Rev. 1.10 116 November 14, 2014 Rev. 1.10 117 November 14, 2014
HT66FW2230
Wireless Charger A/D Flash 8-Bit MCU
Interrupts
Interruptsareanimportantpartofanymicrocontrollersystem.Whenanexternaleventoran
internalfunctionsuchasaTimerModuleoranA/Dconverterrequiresmicrocontrollerattention,
theircorrespondinginterruptwillenforceatemporarysuspensionofthemainprogramallowingthe
microcontrollertodirectattentiontotheirrespectiveneeds.Thedevicecontainsseveralexternal
interruptandinternalinterruptsfunctions.Theexternalinterruptisgeneratedbytheactionof
theexternalINT0andINT1pins,whiletheinternalinterruptsaregeneratedbyvariousinternal
functionssuchastheTMs,Demodulation,OCP,TimeBase,LVD,EEPROMandtheA/Dconverter.
Interrupt Registers
Overallinterruptcontrol,whichbasicallymeansthesettingofrequestflagswhencertain
microcontrollerconditionsoccurandthesettingofinterruptenablebitsbytheapplicationprogram,
iscontrolledbyaseriesofregisters,locatedintheSpecialPurposeDataMemory,asshowninthe
accompanyingtable.Thenumberofregistersdependsuponthedevicechosenbutfallintothree
categories.TherstistheINTC0~INTC2registerswhichsetuptheprimaryinterrupts,thesecond
istheMFI0~MFI2registerswhichsetuptheMulti-functioninterrupts.FinallythereisanINTEG
registertosetuptheexternalinterrupttriggeredgetype.
Eachregistercontainsanumberofenablebitstoenableordisableindividualregistersaswellas
interruptflagstoindicatethepresenceofaninterruptrequest.Thenamingconventionofthese
followsaspecicpattern.Firstislistedanabbreviatedinterrupttype,thenthe(optional)numberof
thatinterruptfollowedbyeitheran“E”forenable/disablebitor“F”forrequestag.
Function Enable Bit Request Flag Notes
Global EMI — —
INTn Pin INTnE INTnF n=0 or 1
OCP OCPE OCPF —
Demodulation DEME DEMF —
A/D Converter ADE ADF —
Multi-function MFnE MFnF
n=0~2
Time Base TBnE TBnF n=0 or 1
I
2
C IICE IICF —
LVD LVE LVF —
EEPROM DEE DEF —
TM
TnPE TnPF
n=0 or 1
TnAE TnAF
Interrupt Register Bit Naming Conventions
Interrupt Register Contents
Name Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0
INTEG — — — — INT1S1 INT1S0 INT0S1 INT0S0
INTC0 — INT0F DEMF OCPF INT0E DEME OCPE EMI
INTC1 ADF MF2F MF1F MF0F ADE MF2E MF1E MF0E
INTC2 INT1F TB1F TB0F IICF INT1E TB1E TB0E IICE
MFI0 — — T0AF T0PF — — T0AE T0PE
MFI1 — — T1AF T1PF — — T1AE T1PE
MFI2 — — DEF LVF — — DEE LVE