Rev. 2.50 72 June 22, 2017 Rev. 2.50 73 June 22, 2017
HT66F20/HT66F30/HT66F40/HT66F50/HT66F60
HT66FU30/HT66FU40/HT66FU50/HT66FU60
A/D Flash MCU with EEPROM
HT66F20/HT66F30/HT66F40/HT66F50/HT66F60
HT66FU30/HT66FU40/HT66FU50/HT66FU60
A/D Flash MCU with EEPROM
Reset Initial Conditions
Thedifferenttypesofresetdescribedaffecttheresetagsindifferentways.Theseags,known
asPDFandTOarelocatedinthestatusregisterandarecontrolledbyvariousmicrocontroller
operations,suchastheSLEEPorIDLEModefunctionorWatchdogTimer.Theresetflagsare
showninthetable:
TO PDF RESET Conditions
0 0 Power-on reset
u u RES or 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
“u” stands for unchanged
Thefollowingtableindicatesthewayinwhichthevariouscomponentsofthemicrocontrollerare
affectedafterapower-onresetoccurs.
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~AN11 in as A/D input pin
Stack Pointer Stack Pointer will point to the top of the stack
Thedifferentkindsofresetsallaffecttheinternalregistersofthemicrocontrollerindifferentways.
Toensurereliablecontinuationofnormalprogramexecutionafteraresetoccurs,itisimportantto
knowwhatconditionthemicrocontrollerisinafteraparticularresetoccurs.Thefollowingtable
describeshoweachtypeofresetaffectseachofthemicrocontrollerinternalregisters.Notethatwhere
morethanonepackagetypeexiststhetablewillreectthesituationforthelargerpackagetype.
HT66F20
Register
Reset
(Power-on)
RES or LVR Reset
WDT Time-out
(Normal Operation)
WDT Time-out
(IDLE)
MP0
1xxx xxxx 1xxx xxxx 1xxx xxxx 1uuu uuuu
MP1 1xxx xxxx 1xxx xxxx 1xxx xxxx 1uuu uuuu
BP - - - - - - -0 - - - - - - -0 - - - - - - -0 - - - - - - -u
ACC xxxx xxxx uuuu uuuu uuuu uuuu uuuu uuuu
PCL 0000 0000 0000 0000 0000 0000 0000 0000
TBLP xxxx xxxx
uuuu uuuu uuuu uuuu uuuu uuuu
TBLH - - xx xxxx - - uu uuuu - -uu uuuu - - uu uuuu
TBHP - - - - - -xx - - - - - -uu - - - - - -uu - - - - - - uu
STATUS - -00 xxxx - -uu uuuu - - 1u uuuu - - 11 uuuu
SMOD 0000 0011 0000 0011 0000 0011 uuuu uuuu
LVDC - - 00 - 000 - - 00 - 000 - - 00 - 000 - - uu - uuu
INTEG - - - - 0000 - - - - 0000 - - - - 0000 - - - - uuuu
WDTC 0111 1010 0111 1010 0111 1010 uuuu uuuu
TBC 0011 0111 0011 0111 0011 0111 uuuu uuuu
INTC0 - 000 0000 - 000 0000 - 000 0000 - uuu uuuu
INTC1 0000 0000 0000 0000 0000 0000 uuuu uuuu
INTC2 0000 0000 0000 0000 0000 0000 uuuu uuuu
MFI0 - -00 - -00 - -00 - -00 - -00 - -00 - -uu - -uu