SN8P1829
8-Bit MCU build-in 12-bit ADC + PGIA + Charge-pump Reg 128 dots LCD driver
SONiX TECHNOLOGY CO., LTD
Page 43
Version 1.0
OSCM REGISTER DESCRIPTION
The OSCM register is an oscillator control register. It can control oscillator select, system mode, watchdog timer clock
source and rate.
OSCM initial value = 0000 0000
0CAH
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
OSCM
WTCKS WDRST WDRATE
CPUM1 CPUM0 CLKMD STPHX
-
R/W R/W R/W R/W R/W R/W R/W -
STPHX: Eternal high-speed oscillator control bit. 0 = free run, 1 = stop. This bit just only controls external high-speed
oscillator. If STPHX=1, the external low-speed RC oscillator is still running.
CLKMD: System high/Low speed mode select bit. 0 = normal (dual) mode, 1 = slow mode.
CPUM1,CPUM0: CPU operating mode control bit. 00=normal, 01= sleep (power down) mode to turn off both high/low
clock, 10=green mode, 11=reserved
WTCKS: Watchdog clock source select bit. 0 = F
CPU
, 1 = internal RC low clock.
OPTION REGISTER DESCRIPTION
OPTION initial value = xxxx 00x0
088H
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
OPTION
- - - -
RTCM1
RTCM0
-
RCLK
- - - - R/W
R/W - R/W
RCLK:
External low oscillator type control bit.
0 = Crystal Mode
1 = RC mode.
RTCM [1:0] :
Real time clock mode setting bits. There are 4 types RTC timing, 0.5/1/2/4 second.
RTCM1
RTCM0
RTC Time (Second)
0 0
0.5
0 1
1
1 0
2
1 1
4
Note: Bit T0TB control T0 as normal timer or Real Time clock.