SN8P2977
8-Bit Micro-Controller with Regulator, PGIA, 24-bit ADC
SONiX TECHNOLOGY CO., LTD
Page 4
V1.7
4.1
OVERVIEW ............................................................................................................................................ 47
4.2
CLOCK
BLOCK
DIAGRAM .................................................................................................................. 47
4.3
OSCM
REGISTER .................................................................................................................................. 48
4.4
SYSTEM
HIGH
CLOCK ......................................................................................................................... 49
4.5
SYSTEM
LOW
CLOCK .......................................................................................................................... 49
4.5.1
SYSTEM CLOCK MEASUREMENT ................................................................................................ 50
5
55
SYSTEM OPERATION MODE .................................................................................................................. 51
5.1
OVERVIEW ............................................................................................................................................ 51
5.2
SYSTEM
MODE
SWITCHING .............................................................................................................. 52
5.3
WAKEUP ................................................................................................................................................ 54
5.3.1
OVERVIEW ........................................................................................................................................ 54
5.3.2
WAKEUP TIME.................................................................................................................................. 54
6
66
INTERRUPT .............................................................................................................................................. 55
6.1
OVERVIEW ............................................................................................................................................ 55
6.2
INTEN
INTERRUPT
ENABLE
REGISTER ........................................................................................... 56
6.3
INTRQ
INTERRUPT
REQUEST
REGISTER ......................................................................................... 56
6.4
GIE
GLOBAL
INTERRUPT
OPERATION ............................................................................................ 57
6.5
PUSH,
POP
ROUTINE ............................................................................................................................ 58
6.6
EXTERNAL
INTERRUPT
OPERATION ............................................................................................... 59
6.7
MULTI-INTERRUPT
OPERATION ....................................................................................................... 60
7
77
I/O PORT.................................................................................................................................................... 62
7.1
I/O
PORT
MODE ..................................................................................................................................... 62
7.2
I/O
PIN
SHARE
WITH
LCD
FUNCTION ............................................................................................... 62
7.3
I/O
PULL
UP
REGISTER ........................................................................................................................ 64
7.4
I/O
PORT
DATA
REGISTER .................................................................................................................. 65
7.5
H
IGH
-
SINK CURRENT
I/O
PORT ................................................................................................................ 66
8
88
TIMERS ..................................................................................................................................................... 67
8.1
WATCHDOG
TIMER ............................................................................................................................. 67
8.2
TIMER
0
(T0) .......................................................................................................................................... 69
8.2.1
OVERVIEW ........................................................................................................................................ 69
8.2.2
T0M MODE REGISTER ..................................................................................................................... 69
8.2.3
T0C COUNTING REGISTER ............................................................................................................. 71
8.2.4
T0 TIMER OPERATION SEQUENCE (High_Clk = IHRC) .............................................................. 72
8.2.5
RTC OPERATION SEQUENCE (High_Clk =“IHRC_RTC” and “T0TB = 1”) ....................... 73
8.3
TIMER/COUNTER
0
(TC0) .................................................................................................................... 75
8.3.1
OVERVIEW ........................................................................................................................................ 75
8.3.2
TC0M MODE REGISTER .................................................................................................................. 76
8.3.3
TC0X8, TC0GN FLAGS ..................................................................................................................... 77
8.3.4
TC0C COUNTING REGISTER .......................................................................................................... 78
8.3.5
TC0R AUTO-LOAD REGISTER ....................................................................................................... 80
8.3.6
TC0 CLOCK FREQUENCY OUTPUT (BUZZER) ............................................................................ 81
8.3.7
TC0 TIMER OPERATION SEQUENCE ............................................................................................ 82