BS85B12-3/BS85C20-3/BS85C20-5
Touch Key Flash MCU with LCD/LED Driver
N
R
O
M
A
L
f
S
Y
=
S
H
~
f
H
/
f
4
6
f
H
o
n
C
P
r
U
n
u
f
S
Y
S
o
n
f
L
R
I
C
o
n
W
T
D
o
n
S
E
L
P
E
S
O
L
W
H
L
A
T
n
i
t
s
u
r
t
c
o
i
n
s
i
e
x
e
e
c
d
u
t
f
S
Y
=
S
L
f
f
S
Y
S
o
f
f
f
L
o
n
C
P
s
U
o
t
p
C
P
r
U
n
u
I
L
D
N
E
0
=
f
S
Y
S
o
n
f
L
R
I
C
o
n
f
L
R
I
C
o
n
W
T
D
o
n
f
H
o
f
f
W
T
D
o
n
I
L
D
1
E
I
L
D
0
E
H
L
A
T
n
i
t
s
u
r
t
c
o
i
n
s
i
e
x
e
e
c
d
u
t
H
L
A
T
n
i
t
s
u
r
t
c
o
i
n
s
i
e
x
e
e
c
d
u
t
C
P
s
U
o
t
p
C
P
s
U
o
t
p
I
L
D
N
E
1
=
I
L
D
N
E
1
=
F
Y
S
O
S
=
N
1
F
Y
S
O
S
=
N
0
f
S
Y
S
o
n
f
S
Y
S
o
f
f
f
L
R
I
C
o
n
f
L
R
I
C
o
n
W
T
D
o
n
W
T
D
o
n
Operating Mode Switching
Theꢀdeviceꢀcanꢀswitchꢀbetweenꢀoperatingꢀmodesꢀdynamicallyꢀallowingꢀtheꢀuserꢀtoꢀselectꢀtheꢀbestꢀ
performance/powerꢀratioꢀforꢀtheꢀpresentꢀtaskꢀinꢀhand.ꢀInꢀthisꢀwayꢀmicrocontrollerꢀoperationsꢀthatꢀ
doꢀnotꢀrequireꢀhighꢀperformanceꢀcanꢀbeꢀexecutedꢀusingꢀslowerꢀclocksꢀthusꢀrequiringꢀlessꢀoperatingꢀ
currentꢀandꢀprolongingꢀbatteryꢀlifeꢀinꢀportableꢀapplications.
Inꢀsimpleꢀterms,ꢀModeꢀSwitchingꢀbetweenꢀtheꢀNORMALꢀModeꢀandꢀSLOWꢀModeꢀisꢀexecutedꢀ
usingꢀtheꢀHLCLKꢀbitꢀandꢀCKS2~CKS0ꢀbitsꢀinꢀtheꢀSMODꢀregisterꢀwhileꢀModeꢀSwitchingꢀfromꢀtheꢀ
NORMAL/SLOWꢀModesꢀtoꢀtheꢀSLEEP/IDLEꢀModesꢀisꢀexecutedꢀviaꢀtheꢀHALTꢀinstruction.ꢀWhenꢀ
aꢀHALTꢀinstructionꢀisꢀexecuted,ꢀwhetherꢀtheꢀdeviceꢀentersꢀtheꢀIDLEꢀModeꢀorꢀtheꢀSLEEPꢀModeꢀisꢀ
determinedꢀbyꢀtheꢀconditionꢀofꢀtheꢀIDLENꢀbitꢀinꢀtheꢀSMODꢀregisterꢀandꢀFSYSONꢀinꢀtheꢀWDTCꢀ
register.
WhenꢀtheꢀHLCLKꢀbitꢀswitchesꢀtoꢀaꢀlowꢀlevel,ꢀwhichꢀimpliesꢀthatꢀclockꢀsourceꢀisꢀswitchedꢀfromꢀ
theꢀhighꢀspeedꢀclockꢀsource,ꢀfHIRC,ꢀtoꢀtheꢀclockꢀsource,ꢀfHIRC/2~fHIRC/64ꢀorꢀfLIRC.ꢀIfꢀtheꢀclockꢀisꢀfromꢀ
fHIRC,ꢀtheꢀhighꢀspeedꢀclockꢀsourceꢀwillꢀstopꢀrunningꢀtoꢀconserveꢀpower.ꢀWhenꢀthisꢀhappensꢀitꢀmustꢀbeꢀ
notedꢀthatꢀtheꢀfHIRC/16ꢀandꢀfHIRC/64ꢀinternalꢀclockꢀsourcesꢀwillꢀalsoꢀstopꢀrunning.ꢀTheꢀaccompanyingꢀ
flowchartꢀshowsꢀwhatꢀhappensꢀwhenꢀtheꢀdeviceꢀmovesꢀbetweenꢀtheꢀvariousꢀoperatingꢀmodes.
Rev. 1.20
48
�ꢀꢁꢀst 10ꢂ 2012