BS83A04A-3/BS83A04A-4
8-bit Touch Key Flash MCU
Control Register
Aꢀsingleꢀregister,ꢀSMOD,ꢀisꢀusedꢀforꢀoverallꢀcontrolꢀofꢀtheꢀinternalꢀclocksꢀwithinꢀtheꢀdevice.
SMOD Register
Bit
Name
R/W
7
CKSꢄ
R/W
0
6
CKS1
R/W
0
5
CKS0
R/W
0
4
3
LTO
R
2
HTO
R
1
IDLEN
R/W
1
0
HLCLK
R/W
1
—
—
—
POR
0
0
Bitꢀ7~5ꢀ
CKS2 ~ CKS0:ꢀTheꢀsystemꢀclockꢀselectionꢀwhenꢀHLCLKꢀisꢀ"0"
ꢀ 000:ꢀfSUBꢀ(fLIRC
ꢀ 001:ꢀfSUBꢀ(fLIRC
ꢀ 010:ꢀfH/64
ꢀ 011:ꢀfH/32
ꢀ 100:ꢀfH/16
ꢀ 101:ꢀfH/8
)
)
ꢀ 110:ꢀfH/4
ꢀ 111:ꢀfH/2
Theseꢀthreeꢀbitsꢀareꢀusedꢀtoꢀselectꢀwhichꢀclockꢀisꢀusedꢀasꢀtheꢀsystemꢀclockꢀsource.ꢀInꢀ
additionꢀtoꢀtheꢀsystemꢀclockꢀsource,ꢀwhichꢀcanꢀbeꢀLIRC,ꢀaꢀdividedꢀversionꢀofꢀtheꢀhighꢀ
speedꢀsystemꢀoscillatorꢀcanꢀalsoꢀbeꢀchosenꢀasꢀtheꢀsystemꢀclockꢀsource.
Bitꢀ4ꢀ
Bitꢀ3ꢀ
Unimplemented,ꢀreadꢀasꢀ"0"
LTO:ꢀLowꢀspeedꢀsystemꢀoscillatorꢀreadyꢀflag
ꢀ 0:ꢀnotꢀready
ꢀ 1:ꢀready
Thisꢀisꢀtheꢀlowꢀspeedꢀsystemꢀoscillatorꢀreadyꢀflagꢀwhichꢀindicatesꢀwhenꢀtheꢀlowꢀspeedꢀ
systemꢀoscillatorꢀisꢀstableꢀafterꢀpowerꢀonꢀresetꢀorꢀaꢀwake-upꢀhasꢀoccurred.ꢀTheꢀflagꢀ
willꢀbeꢀlowꢀwhenꢀinꢀtheꢀSLEEPꢀModeꢀbutꢀafterꢀaꢀwake-upꢀhasꢀoccurred,ꢀtheꢀflagꢀwillꢀ
changeꢀtoꢀaꢀhighꢀlevelꢀafterꢀ1~2ꢀclockꢀcyclesꢀifꢀtheꢀLIRCꢀoscillatorꢀisꢀused.
Bitꢀ2ꢀ
Bitꢀ1ꢀ
HTO:ꢀHighꢀspeedꢀsystemꢀoscillatorꢀreadyꢀflag
ꢀ 0:ꢀnotꢀready
ꢀ 1:ꢀready
Thisꢀisꢀtheꢀhighꢀspeedꢀsystemꢀoscillatorꢀreadyꢀflagꢀwhichꢀindicatesꢀwhenꢀtheꢀhighꢀspeedꢀ
systemꢀoscillatorꢀisꢀstableꢀafterꢀaꢀwake-upꢀhasꢀoccurred.ꢀTheꢀflagꢀwillꢀbeꢀlowꢀwhenꢀinꢀ
theꢀSLEEPꢀorꢀIDLE0ꢀModeꢀbutꢀafterꢀpowerꢀonꢀresetꢀorꢀaꢀwake-upꢀhasꢀoccurred,ꢀtheꢀ
flagꢀwillꢀchangeꢀtoꢀaꢀhighꢀlevelꢀafterꢀ1024ꢀclockꢀcyclesꢀifꢀtheꢀHIRCꢀoscillatorꢀisꢀused.
IDLEN:ꢀIDLEꢀModeꢀControl
ꢀ 0:ꢀdisable
ꢀ 1:ꢀenable
ThisꢀisꢀtheꢀIDLEꢀModeꢀControlꢀbitꢀandꢀdeterminesꢀwhatꢀhappensꢀwhenꢀtheꢀHALTꢀ
instructionꢀisꢀexecuted.ꢀIfꢀthisꢀbitꢀisꢀhigh,ꢀwhenꢀaꢀHALTꢀinstructionꢀisꢀexecutedꢀtheꢀ
deviceꢀwillꢀenterꢀtheꢀIDLEꢀMode.ꢀInꢀtheꢀIDLE1ꢀModeꢀtheꢀCPUꢀwillꢀstopꢀrunningꢀ
butꢀtheꢀsystemꢀclockꢀwillꢀcontinueꢀtoꢀkeepꢀtheꢀperipheralꢀfunctionsꢀoperational,ꢀifꢀ
FSYSONꢀbitꢀisꢀhigh.ꢀIfꢀFSYSONꢀbitꢀisꢀlow,ꢀtheꢀCPUꢀandꢀtheꢀsystemꢀclockꢀwillꢀallꢀstopꢀ
inꢀIDLE0ꢀmode.ꢀIfꢀtheꢀbitꢀisꢀlowꢀtheꢀdeviceꢀwillꢀenterꢀtheꢀSLEEPꢀModeꢀwhenꢀaꢀHALTꢀ
instructionꢀisꢀexecuted.
Bitꢀ0ꢀ
HLCLK:ꢀSystemꢀClockꢀSelection
ꢀ 0:ꢀfH/2ꢀ~ꢀfH/64ꢀorꢀfSUB
ꢀ 1:ꢀfH
ThisꢀbitꢀisꢀusedꢀtoꢀselectꢀifꢀtheꢀfHꢀclockꢀorꢀtheꢀfH/2ꢀ~ꢀfH/64ꢀorꢀfSUBꢀclockꢀisꢀusedꢀasꢀtheꢀ
systemꢀclock.ꢀWhenꢀtheꢀbitꢀisꢀhighꢀtheꢀfHꢀclockꢀwillꢀbeꢀselectedꢀandꢀifꢀlowꢀtheꢀfH/2ꢀ~ꢀ
fH/64ꢀorꢀfSUBꢀclockꢀwillꢀbeꢀselected.ꢀWhenꢀsystemꢀclockꢀswitchesꢀfromꢀtheꢀfHꢀclockꢀtoꢀ
theꢀfLꢀclockꢀandꢀtheꢀfHꢀclockꢀwillꢀbeꢀautomaticallyꢀswitchedꢀoffꢀtoꢀconserveꢀpower.
Rev. 1.00
ꢄ5
�eꢀꢁꢂaꢁꢃ ꢄꢅꢆ ꢄ01ꢇ