Rev. 1.20 58 January 23, 2015 Rev. 1.20 59 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
000:2
8
/f
SUB
WS[2:0]=
f
SUB
CLR
Reset
MCU
11 stage divider
8-to-1 MUX
WDT Time-out
WS2~WS0
7-stage Divider
(f
SUB
/2
1
~f
SUB
/2
11
)
001:2
10
/f
SUB
010:2
12
/f
SUB
011:2
14
/f
SUB
100:2
15
/f
SUB
101:2
16
/f
SUB
110:2
17
/f
SUB
111:2
18
/f
SUB
“HALT”Instruction
“CLR WDT”Instruction
WE4~WE0 bitsWDTC Register
LIRC
LXT
M
U
X
Configuration
Option
Note:FortheBS82B12A-3device,thef
SUB
issuppliedonlybytheLIRCoscillator.
Watchdog Timer
Reset and Initialisation
Aresetfunctionisafundamentalpartofanymicrocontrollerensuringthatthedevicecanbeset
tosomepredeterminedconditionirrespectiveofoutsideparameters.Themostimportantreset
conditionisafterpowerisrstappliedtothemicrocontroller.Inthiscase,internalcircuitrywill
ensurethatthemicrocontroller,afterashortdelay,willbeinawelldefinedstateandreadyto
executetherstprograminstruction.Afterthispower-onreset,certainimportantinternalregisters
willbesettodenedstatesbeforetheprogramcommences.OneoftheseregistersistheProgram
Counter,whichwillberesettozeroforcingthemicrocontrollertobeginprogramexecutionfromthe
lowestProgramMemoryaddress.
AnothertypeofresetiswhentheWatchdogTimeroverflowsandresetsthemicrocontroller.All
typesofresetoperationsresultindifferentregisterconditionsbeingsetup.Anotherresetexistsinthe
formofaLowVoltageReset,LVR,whereafullreset,isimplementedinsituationswherethepower
supplyvoltagefallsbelowacertainthreshold.
Reset Functions
Thereareseveralwaysinwhichamicrocontrollerresetcanoccur,througheventsoccurringinternally:
Power-on Reset
Themostfundamentalandunavoidableresetistheonethatoccursafterpowerisrstappliedto
themicrocontroller.AswellasensuringthattheProgramMemorybeginsexecutionfromtherst
memoryaddress,apower-onresetalsoensuresthatcertainotherregistersarepresettoknown
conditions.AlltheI/Oportandportcontrolregisterswillpowerupinahighconditionensuringthat
allpinswillberstsettoinputs.
VDD
Power-on
Reset
SST Time-out
t
RSTD
Note:t
RSTD
ispower-ondelay,typicaltime=50ms
Power-On Reset Timing Chart