BS83A04A-3/BS83A04A-4
8-bit Touch Key Flash MCU
I
L
D
1
E
N
R
O
M
A
L
H
L
A
T
n
i
t
s
u
r
t
c
o
i
n
s
i
e
e
x
u
c
e
t
d
f
S
Y
=
S
H
~
f
H
/
f
4
6
C
U
P
s
o
t
p
f
H
o
n
I
L
D
N
E
1
=
C
U
P
r
n
u
F
Y
S
O
S
=
N
1
f
S
Y
S
o
n
f
S
Y
S
o
n
f
S
B
U
o
n
f
S
B
U
o
n
S
E
L
P
E
I
L
D
0
E
H
L
A
T
n
i
t
s
u
r
t
c
o
i
n
s
i
e
e
x
u
c
e
t
d
H
L
A
T
n
i
t
s
u
r
t
c
o
i
n
s
i
e
e
x
u
c
e
t
d
f
S
Y
S
o
f
f
C
U
P
s
o
t
p
C
U
P
s
o
t
p
I
L
D
N
E
1
=
I
L
D
N
E
0
=
F
Y
S
O
S
=
N
0
f
S
B
U
o
n
f
S
Y
S
o
f
f
S
O
L
W
W
T
D
o
n
f
S
B
U
o
n
f
S
Y
=
S
L
f
f
L
o
n
C
U
P
r
n
u
f
S
Y
S
o
n
f
S
B
U
o
n
f
H
o
f
f
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ꢀCTRLꢀregister.
WhenꢀtheꢀHLCLKꢀbitꢀswitchesꢀtoꢀaꢀlowꢀlevel,ꢀwhichꢀimpliesꢀthatꢀclockꢀsourceꢀisꢀswitchedꢀfromꢀtheꢀ
highꢀspeedꢀclockꢀsource,ꢀfH,ꢀtoꢀtheꢀclockꢀsource,ꢀfH/2~fH/64ꢀorꢀfSUB.ꢀIfꢀtheꢀclockꢀisꢀfromꢀtheꢀfL,ꢀtheꢀ
highꢀspeedꢀclockꢀsourceꢀwillꢀstopꢀrunningꢀtoꢀconserveꢀpower.ꢀWhenꢀthisꢀhappensꢀitꢀmustꢀbeꢀnotedꢀ
thatꢀtheꢀfH/16ꢀandꢀfH/64ꢀinternalꢀclockꢀsourcesꢀwillꢀalsoꢀstopꢀrunning,ꢀwhichꢀmayꢀaffectꢀtheꢀoperationꢀ
ofꢀotherꢀinternalꢀfunctionsꢀsuchꢀasꢀtheꢀTimer/EventꢀCounter.ꢀTheꢀaccompanyingꢀflowchartꢀshowsꢀ
whatꢀhappensꢀwhenꢀtheꢀdeviceꢀmovesꢀbetweenꢀtheꢀvariousꢀoperatingꢀmodes.
Rev. 1.00
ꢄ7
�eꢀꢁꢂaꢁꢃ ꢄꢅꢆ ꢄ01ꢇ