User`s guide
Rev. 1.10 122 November 14, 2014 Rev. 1.10 123 November 14, 2014
HT66FW2230
Wireless Charger A/D Flash 8-Bit MCU
Demodulation
OCPF
DEMF
OCPE
DEME
04H
08H
INT0
INT0F
INT0E
0CH
Interrupt
Name
Request
Flags
Enable
Bits
Master
Enable
Vector
EMI auto disabled in ISR
Low
Interrupts contained within
Multi-Function Interrupts
Priority
High
XXE
Enable Bits
xxF
Request Flag
,
auto reset in ISR
Legend
xxF
Request Flag
,
no auto reset in ISR
28H
TB1F TB1E
Time Base 1
I
2
C
IICF IICE
20H
INT1
INT1F INT1E
24H
TB0F
TB0E
Time Base 0
14H
Multi-Function 1 MF1F MF1E
1CH
A/D
ADF
ADE
OCP
EMI
EMI
EMI
EMI
EMI
EMI
EMI
EMI
2CH
EMI
18H
Multi-Function 2 MF2F MF2E
EMI
10H
Multi-Function 0 MF0F MF0E
EMI
TM0 A T0AF T0AE
TM0 P
T0PF T0PE
TM1 A T1AF T1AE
TM1 P
T1PF T1PE
LVD LVF LVE
EEPROM
DEF DEE
Interrupt
Name
Request
Flags
Enable
Bits
Interrupt Structure
External Interrupt
TheexternalinterruptsarecontrolledbysignaltransitionsonthepinsINT0,INT1.Anexternal
interruptrequestwilltakeplacewhentheexternalinterruptrequestags,INT0F,INT1F,areset,
whichwilloccurwhenatransition,whosetypeischosenbytheedgeselectbits,appearsonthe
externalinterruptpins.Toallowtheprogramtobranchtoitsrespectiveinterruptvectoraddress,the
globalinterruptenablebit,EMI,andrespectiveexternalinterruptenablebit,INT0E,INT1E,must
rstbeset.AdditionallythecorrectinterruptedgetypemustbeselectedusingtheINTEGregisterto
enabletheexternalinterruptfunctionandtochoosethetriggeredgetype.Astheexternalinterrupt
pinsarepin-sharedwithI/Opins,theycanonlybeconfiguredasexternalinterruptpinsiftheir
externalinterruptenablebitinthecorrespondinginterruptregisterhasbeenset.Thepinmustalso
besetupasaninputbysettingthecorrespondingbitintheportcontrolregister.Whentheinterrupt
isenabled,thestackisnotfullandthecorrecttransitiontypeappearsontheexternalinterruptpin,
asubroutinecalltotheexternalinterruptvector,willtakeplace.Whentheinterruptisserviced,the
externalinterruptrequestags,INT0F,INT1F,willbeautomaticallyresetandtheEMIbitwillbe
automaticallyclearedtodisableotherinterrupts.Notethatanypull-highresistorselectionsonthe
externalinterruptpinswillremainvalidevenifthepinisusedasanexternalinterruptinput.The
INTEGregisterisusedtoselectthetypeofactiveedgethatwilltriggertheexternalinterrupt.A
choiceofeitherrisingorfallingorbothedgetypescanbechosentotriggeranexternalinterrupt.
NotethattheINTEGregistercanalsobeusedtodisabletheexternalinterruptfunction.