SN8P2318 Series
C-type LCD, RFC 8-Bit Micro-Controller
SONiX TECHNOLOGY CO., LTD
Page 4
Version 1.5
3.8
EXTERNAL
RESET ........................................................................................................................ 43
3.9
EXTERNAL
RESET
CIRCUIT ....................................................................................................... 43
3.9.1
Simply RC Reset Circuit .......................................................................................................... 43
3.9.2
Diode & RC Reset Circuit ........................................................................................................ 44
3.9.3
Zener Diode Reset Circuit ........................................................................................................ 44
3.9.4
Voltage Bias Reset Circuit ....................................................................................................... 45
3.9.5
External Reset IC ...................................................................................................................... 45
4
44
SYSTEM CLOCK .................................................................................................................................. 46
4.1
OVERVIEW ..................................................................................................................................... 46
4.2
F
CPU
(INSTRUCTION
CYCLE) ...................................................................................................... 46
4.3
SYSTEM
HIGH-SPEED
CLOCK .................................................................................................... 46
4.3.1
HIGH_CLK CODE OPTION ................................................................................................... 47
4.3.2
INTERNAL HIGH-SPEED OSCILLATOR ............................................................................ 47
4.3.3
EXTERNAL HIGH-SPEED OSCILLATOR ........................................................................... 47
4.4
SYSTEM
LOW-SPEED
CLOCK ..................................................................................................... 48
4.5
OSCM
REGISTER ........................................................................................................................... 49
4.6
SYSTEM
CLOCK
MEASUREMENT ............................................................................................. 49
4.7
SYSTEM
CLOCK
TIMING ............................................................................................................. 50
5
55
SYSTEM OPERATION MODE ........................................................................................................... 53
5.1
OVERVIEW ..................................................................................................................................... 53
5.2
NORMAL
MODE ............................................................................................................................ 54
5.3
SLOW
MODE .................................................................................................................................. 54
5.4
POWER
DOWN
MDOE .................................................................................................................. 54
5.5
GREEN
MODE ................................................................................................................................ 55
5.6
OPERATING
MODE
CONTROL
MACRO .................................................................................... 56
5.7
WAKEUP ......................................................................................................................................... 57
5.7.1
OVERVIEW ............................................................................................................................. 57
5.7.2
WAKEUP TIME ...................................................................................................................... 57
5.7.3
P1W WAKEUP CONTROL REGISTER ................................................................................ 59
6
66
INTERRUPT ........................................................................................................................................... 60
6.1
OVERVIEW ..................................................................................................................................... 60
6.2
INTEN
INTERRUPT
ENABLE
REGISTER ................................................................................... 61
6.3
INTRQ
INTERRUPT
REQUEST
REGISTER ................................................................................ 62
6.4
GIE
GLOBAL
INTERRUPT
OPERATION .................................................................................... 63
6.5
PUSH,
POP
ROUTINE..................................................................................................................... 64
6.6
EXTERNAL
INTERRUPT
OPERATION
(INT0) ........................................................................... 65
6.7
INT1
(P0.1)
INTERRUPT
OPERATION ......................................................................................... 66
6.8
T0
INTERRUPT
OPERATION........................................................................................................ 67
6.9
TC0
INTERRUPT
OPERATION ..................................................................................................... 68
6.10
T1
INTERRUPT
OPERATION........................................................................................................ 69
6.11
MULTI-INTERRUPT
OPERATION ............................................................................................... 70
7
77
I/O PORT ................................................................................................................................................ 71
7.1
OVERVIEW ..................................................................................................................................... 71
7.2
I/O
PORT
MODE ............................................................................................................................. 72
7.3
I/O
PULL
UP
REGISTER ................................................................................................................ 74
7.4
I/O
PORT
DATA
REGISTER .......................................................................................................... 75
8
88
TIMERS .................................................................................................................................................. 76
8.1
WATCHDOG
TIMER ...................................................................................................................... 76
8.2
T0
8-
BIT BASIC TIMER
........................................................................................................................ 78
8.2.1
OVERVIEW ............................................................................................................................. 78
8.2.2
T0 Timer Operation .................................................................................................................. 79
8.2.3
T0M MODE REGISTER ......................................................................................................... 80