Rev. 1.20 60 January 23, 2015 Rev. 1.20 61 January 23, 2015
BS82B12A-3/BS82C16A-3/BS82D20A-3
Touch Key 8-Bit Flash MCU with LED/LCD Driver
BS82B12A-3/BS82C16A-3/BS82D20A-3
Touch Key 8-Bit Flash MCU with LED/LCD Driver
Watchdog Time-out Reset during SLEEP or IDLE Mode
TheWatchdogtime-outResetduringSLEEPorIDLEModeisalittledifferentfromotherkinds
ofreset.MostoftheconditionsremainunchangedexceptthattheProgramCounterandtheStack
PointerwillbeclearedtozeroandtheTOagwillbesethigh.RefertotheA.C.Characteristicsfor
t
SST
details.
Note:Thet
SST
is15~16clockcyclesifthesystemclocksourceisprovidedbytheHIRC.
Thet
SST
is1~2clockfortheLIRC.Thet
SST
is1024clockfortheLXT.
WDT Time-out Reset during SLEEP or IDLE Timing Chart
Reset Initial Conditions
Thedifferenttypesofresetdescribedaffecttheresetagsindifferentways.Theseags,known
asPDFandTOarelocatedinthestatusregisterandarecontrolledbyvariousmicrocontroller
operations,suchastheSLEEPorIDLEModefunctionorWatchdogTimer.Theresetflagsare
showninthetable:
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"standsforunchanged
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
Stack Pointer Stack Pointer will point to the top of the stack
Thedifferentkindsofresetsallaffecttheinternalregistersofthemicrocontrollerindifferentways.
Toensurereliablecontinuationofnormalprogramexecutionafteraresetoccurs,itisimportantto
knowwhatconditionthemicrocontrollerisinafteraparticularresetoccurs.Thefollowingtable
describeshoweachtypeofresetaffectseachofthemicrocontrollerinternalregisters.