Rev. 1.20 54 January 23, 2015 Rev. 1.20 55 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
Entering the IDLE0 Mode
ThereisonlyonewayforthedevicestoentertheIDLE0Modeandthatistoexecutethe"HALT"
instructionintheapplicationprogramwiththeIDLENbitinSMODregisterequalto"1"andthe
FSYSONbitinCTRLregisterequalto"0".Whenthisinstructionisexecutedundertheconditions
describedabove,thefollowingwilloccur:
• Thesystemclockwillbestoppedandtheapplicationprogramwillstopatthe"HALT"instruc-
tion,butthelowfrequencyf
SUB
clockwillbeon.
• TheDataMemorycontentsandregisterswillmaintaintheirpresentcondition.
• TheWDTwillbeclearedandresumecounting.
• TheI/Oportswillmaintaintheirpresentconditions.
• Inthestatusregister,thePowerDownag,PDF,willbesetandtheWatchdogtime-outag,TO,
willbecleared.
Entering the IDLE1 Mode
ThereisonlyonewayforthedevicestoentertheIDLE1Modeandthatistoexecutethe"HALT"
instructionintheapplicationprogramwiththeIDLENbitinSMODregisterequalto"1"andthe
FSYSONbitinCTRLregisterequalto"1".Whenthisinstructionisexecutedundertheconditions
describedabove,thefollowingwilloccur:
• Thesystemclockandthelowfrequencyf
SUB
willbeonandtheapplicationprogramwillstopat
the"HALT"instruction.
• TheDataMemorycontentsandregisterswillmaintaintheirpresentcondition.
• TheWDTwillbeclearedandresumecounting.
• TheI/Oportswillmaintaintheirpresentconditions.
• Inthestatusregister,thePowerDownag,PDF,willbesetandtheWatchdogtime-outag,TO,
willbecleared.
Standby Current Considerations
AsthemainreasonforenteringtheSLEEPorIDLEModeistokeepthecurrentconsumptionof
thedevicestoaslowavalueaspossible,perhapsonlyintheorderofseveralmicro-ampsexcept
intheIDLE1Mode,thereareotherconsiderationswhichmustalsobetakenintoaccountbythe
circuitdesignerifthepowerconsumptionistobeminimised.Specialattentionmustbemadeto
theI/Opinsonthedevice.Allhigh-impedanceinputpinsmustbeconnectedtoeitheraxedhigh
orlowlevelasanyfloatinginputpinscouldcreateinternaloscillationsandresultinincreased
currentconsumption.Thisalsoappliestodeviceswhichhavedifferentpackagetypes,astheremay
beunbonbedpins.Thesemusteitherbesetupasoutputsorifsetupasinputsmusthavepull-high
resistorsconnected.
Caremustalsobetakenwiththeloads,whichareconnectedtoI/Opins,whicharesetupas
outputs.Theseshouldbeplacedinaconditioninwhichminimumcurrentisdrawnorconnected
onlytoexternalcircuitsthatdonotdrawcurrent,suchasotherCMOSinputs.IntheIDLE1Mode
thesystemoscillatorison,ifthesystemoscillatorisfromthehighspeedsystemoscillator,the
additionalstandbycurrentwillalsobeperhapsintheorderofseveralhundredmicro-amps.