User`s guide

Rev. 1.10 124 November 14, 2014 Rev. 1.10 125 November 14, 2014
HT66FW2230
Wireless Charger A/D Flash 8-Bit MCU
PSCR Register
Bit 7 6 5 4 3 2 1 0
Name CLKSEL1 CLKSEL0
R/W R/W R/W
POR 0 0
Bit7~2 Unimplemented,readas"0"
Bit1~0 CLKSEL1 ~ CLKSEL0:f
TB
clocksourceselection
00:f
SYS
01:f
SYS
/4
11:f
SUB





   
  






 


Time Base Interrupt
EEPROM Interrupt
TheEEPROMinterruptiscontainedwithintheMulti-functionInterrupt.AnEEPROMInterrupt
requestwilltakeplacewhentheEEPROMInterruptrequestflag,DEF,isset,whichoccurs
whenanEEPROMWritecycleends.Toallowtheprogramtobranchtoitsrespectiveinterrupt
vectoraddress,theglobalinterruptenablebit,EMI,andEEPROMInterruptenablebit,DEE,
andassociatedMulti-functioninterruptenablebit,MF2E,mustrstbeset.Whentheinterruptis
enabled,thestackisnotfullandanEEPROMWritecycleends,asubroutinecalltotherespective
EEPROMInterruptvector,willtakeplace.WhentheEEPROMInterruptisserviced,theEMIbit
willbeautomaticallyclearedtodisableotherinterrupts,howeveronlytheMulti-functioninterrupt
requestagwillbealsoautomaticallycleared.AstheDEFagwillnotbeautomaticallycleared,it
hastobeclearedbytheapplicationprogram.
LVD Interrupt
TheLowVoltageDetectorInterruptiscontainedwithintheMulti-functionInterrupt.AnLVD
InterruptrequestwilltakeplacewhentheLVDInterruptrequestflag,LVF,isset,whichoccurs
whentheLowVoltageDetectorfunctiondetectsalowpowersupplyvoltage.Toallowtheprogram
tobranchtoitsrespectiveinterruptvectoraddress,theglobalinterruptenablebit,EMI,andLow
VoltageInterruptenablebit,LVE,andassociatedMulti-functioninterruptenablebit,MF2E,must
rstbeset.Whentheinterruptisenabled,thestackisnotfullandalowvoltageconditionoccurs,
asubroutinecalltotheLVDInterruptvector,willtakeplace.WhentheLowVoltageInterruptis
serviced,theEMIbitwillbeautomaticallyclearedtodisableotherinterrupts,howeveronlythe
Multi-functioninterruptrequestagwillbealsoautomaticallycleared.AstheLVFagwillnotbe
automaticallycleared,ithastobeclearedbytheapplicationprogram.