SN8P2318 Series
C-type LCD, RFC 8-Bit Micro-Controller
SONiX TECHNOLOGY CO., LTD
Page 3
Version 1.5
Table of Content
AMENDENT
HISTORY ................................................................................................................................ 2
1
11
PRODUCT OVERVIEW ......................................................................................................................... 7
1.1
FEATURES ........................................................................................................................................ 7
1.2
SYSTEM
BLOCK
DIAGRAM .......................................................................................................... 8
1.3
PIN
ASSIGNMENT ........................................................................................................................... 8
1.4
PIN
DESCRIPTIONS ....................................................................................................................... 10
1.5
PIN
CIRCUIT
DIAGRAMS ............................................................................................................. 11
2
22
CENTRAL PROCESSOR UNIT (CPU) .............................................................................................. 13
2.1
PROGRAM
MEMORY
(ROM) ....................................................................................................... 13
2.1.1
RESET VECTOR (0000H) ...................................................................................................... 14
2.1.2
INTERRUPT VECTOR (0008H) ............................................................................................. 15
2.1.3
LOOK-UP TABLE DESCRIPTION ........................................................................................ 17
2.1.4
JUMP TABLE DESCRIPTION ............................................................................................... 19
2.1.5
CHECKSUM CALCULATION............................................................................................... 21
2.2
DATA
MEMORY
(RAM) ................................................................................................................ 22
2.2.1
SYSTEM REGISTER .............................................................................................................. 22
2.2.1.1
SYSTEM REGISTER TABLE ............................................................................................ 22
2.2.1.2
SYSTEM REGISTER DESCRIPTION ............................................................................... 22
2.2.1.3
BIT DEFINITION of SYSTEM REGISTER ....................................................................... 23
2.2.2
ACCUMULATOR ................................................................................................................... 25
2.2.3
PROGRAM FLAG ................................................................................................................... 26
2.2.4
PROGRAM COUNTER........................................................................................................... 27
2.2.5
H, L REGISTERS..................................................................................................................... 30
2.2.6
Y, Z REGISTERS..................................................................................................................... 31
2.2.7
R REGISTER ........................................................................................................................... 31
2.3
ADDRESSING
MODE .................................................................................................................... 32
2.3.1
IMMEDIATE ADDRESSING MODE .................................................................................... 32
2.3.2
DIRECTLY ADDRESSING MODE ....................................................................................... 32
2.3.3
INDIRECTLY ADDRESSING MODE ................................................................................... 32
2.4
STACK
OPERATION ...................................................................................................................... 33
2.4.1
OVERVIEW ............................................................................................................................. 33
2.4.2
STACK REGISTERS ............................................................................................................... 34
2.4.3
STACK OPERATION EXAMPLE.......................................................................................... 35
2.5
CODE
OPTION
TABLE .................................................................................................................. 36
2.5.1
High_Clk code option ............................................................................................................... 36
2.5.2
Low_Clk code option ............................................................................................................... 36
2.5.3
Fcpu code option ...................................................................................................................... 36
2.5.4
Reset_Pin code option .............................................................................................................. 37
2.5.5
Security code option ................................................................................................................. 37
2.5.6
Noise Filter code option ........................................................................................................... 37
3
33
RESET ..................................................................................................................................................... 38
3.1
OVERVIEW ..................................................................................................................................... 38
3.2
POWER
ON
RESET ......................................................................................................................... 39
3.3
WATCHDOG
RESET ...................................................................................................................... 39
3.4
BROWN
OUT
RESET ..................................................................................................................... 39
3.5
THE
SYSTEM
OPERATING
VOLTAGE ....................................................................................... 40
3.6
LOW
VOLTAGE
DETECTOR
(LVD) ............................................................................................ 40
3.7
BROWN
OUT
RESET
IMPROVEMENT ....................................................................................... 42