EasyManua.ls Logo

Holtek BS82B12A-3 - Wake

Holtek BS82B12A-3
168 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Rev. 1.20 56 January 23, 2015 Rev. 1.20 57 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
Wake-up
AfterthesystementerstheSLEEPorIDLEMode,itcanbewokenupfromoneofvarioussources
listedasfollows:
• AnexternalfallingedgeonPortA
• Asysteminterrupt
• AWDToverow
IfthedeviceiswokenupbyaWDToverow,aWatchdogTimerresetwillbeinitiated.ThePDF
agisclearedbyasystempower-uporexecutingtheclearWatchdogTimerinstructionsandisset
whenexecutingthe"HALT"instruction.TheTOagissetifaWDTtime-outoccurs,andcauses
awake-upthatonlyresetstheProgramCounterandStackPointer,theotheragsremainintheir
originalstatus.
EachpinonPortAcanbesetupusingthePAWUregistertopermitanegativetransitiononthepin
towake-upthesystem.WhenaPortApinwake-upoccurs,theprogramwillresumeexecutionat
theinstructionfollowingthe"HALT"instruction.Ifthesystemiswokenupbyaninterrupt,then
twopossiblesituationsmayoccur.Therstiswheretherelatedinterruptisdisabledortheinterrupt
isenabledbutthestackisfull,inwhichcasetheprogramwillresumeexecutionattheinstruction
followingthe"HALT"instruction.Inthissituation,theinterruptwhichwoke-upthedevicewillnot
beimmediatelyserviced,butwillratherbeservicedlaterwhentherelatedinterruptisnallyenabled
orwhenastacklevelbecomesfree.Theothersituationiswheretherelatedinterruptisenabledand
thestackisnotfull,inwhichcasetheregularinterruptresponsetakesplace.Ifaninterruptrequest
flagissethighbeforeenteringtheSLEEPorIDLEMode,thewake-upfunctionoftherelated
interruptwillbedisabled.
System Oscillator
Wake-up Time
(SLEEP Mode)
Wake-up Time
(IDLE0 Mode)
Wake-up Time
(IDLE1 Mode)
HIRC
15~16 HIRC cycles 1~2 HIRC cycles
LIRC 1~2 LIRC cycles 1~2 LIRC cycles
LXT 1024 LXT cycles 1~2 LXT cycles
Wake-Up Time
Programming Considerations
ThehighspeedandlowspeedoscillatorsbothusethesameSSTcounter.Forexample,ifthesystem
iswokenupfromtheSLEEPModetheHIRCoscillatorneedstostart-upfromanoffstate.
IfthedeviceiswokenupfromtheSLEEPModetotheNORMALMode,thehighspeedsystem
oscillatorneedsanSSTperiod.ThedevicewillexecutetherstinstructionafterHTOishigh.At
thistime,theLXToscillatormaynotbestabilityiff
SUB
isfromLXToscillator.Thesamesituation
occursinthepower-onstate.TheLXToscillatorisnotreadyyetwhenthefirstinstructionis
executed.

Table of Contents

Related product manuals