User`s guide

Rev. 1.10 48 November 14, 2014 Rev. 1.10 49 November 14, 2014
HT66FW2230
Wireless Charger A/D Flash 8-Bit MCU
Reset Initial Conditions
Thedifferenttypesofresetdescribedaffecttheresetagsindifferentways.Theseags,known
asPDFandTOarelocatedinthestatusregisterandarecontrolledbyvariousmicrocontroller
operations,suchastheSLEEPorIDLEModefunctionorWatchdogTimer.Theresetflagsare
showninthetable:
TO PDF RESET Conditions
0 0
Power-on reset
u u LVR reset during NORMAL or SLOW Mode operation
1 u WDT time-out reset during NORMAL or SLOW Mode operation
1 1 WDT time-out reset during IDLE or SLEEP Mode operation
Note:“u”standsforunchanged
Thefollowingtableindicatesthewayinwhichthevariouscomponentsofthemicrocontrollerare
affectedafterapower-onresetoccurs.
Item Condition After RESET
Program Counter Reset to zero
Interrupts All interrupts will be disabled
WDT Clear after reset, WDT begins counting
Timer Modules Timer Modules will be turned off
Input/Output Ports I/O ports will be setup as inputs and AN0~AN7 as A/D input pins
Stack Pointer Stack Pointer will point to the top of the stack
Thedifferentkindsofresetsallaffecttheinternalregistersofthemicrocontrollerindifferentways.
Toensurereliablecontinuationofnormalprogramexecutionafteraresetoccurs,itisimportantto
knowwhatconditionthemicrocontrollerisinafteraparticularresetoccurs.Thefollowingtable
describeshoweachtypeofresetaffectseachofthemicrocontrollerinternalregisters.
Register Reset (Power On)
WDT Time-out
(Normal Operation)
WDT Time-out
(HALT)*
MP0 0000 0000 0000 0000 uuuu uuuu
MP1L 0000 0000 0000 0000 uuuu uuuu
MP1H 0000 0000 0000 0000 uuuu uuuu
MP2L 0000 0000 0000 0000 uuuu uuuu
MP2H 0000 0000 0000 0000 uuuu uuuu
ACC xxxx xxxx uuuu uuuu uuuu uuuu
PCL 0000 0000 0000 0000 0000 0000
TBLP xxxx xxxx uuuu uuuu uuuu uuuu
TBLH xxxx xxxx uuuu uuuu uuuu uuuu
TBHP ---- xxxx ---- uuuu ---- uuuu
STATUS xx00 xxxx xx1u uuuu uu11 uuuu
RSTFC ---- 0x-0 ---- uu-u ---- uu-u
RSTC 0101 0101 0101 0101 uuuu uuuu
WDTC 0101 0011 0101 0011 uuuu uuuu
PSCR ---- --00 ---- --00 ---- --uu
TBC0 0--- -000 0--- -000 u--- -uuu
TBC1 0--- -000 0--- -000 u--- -uuu
LVRC 0101 0101 0101 0101 uuuu uuuu
LVDC --00 -000 --00 -000 --uu -uuu
INTEG ---- 0000 ---- 0000 ---- uuuu
INTC0 -000 0000 -000 0000 -uuu uuuu