SN8P2740 Series
ADC, OP-amp, Comparator 8-Bit Micro-Controller
Table of Content
AMENDENT HISTORY.................................................................................................................................................................2
1
2
PRODUCT OVERVIEW .........................................................................................................................................................6
1.1
1.2
1.3
1.4
1.5
FEATURES.......................................................................................................................................................................6
SYSTEM BLOCK DIAGRAM .........................................................................................................................................7
PIN ASSIGNMENT ..........................................................................................................................................................7
PIN DESCRIPTIONS........................................................................................................................................................8
PIN CIRCUIT DIAGRAMS..............................................................................................................................................9
CENTRAL PROCESSOR UNIT (CPU) ............................................................................................................................... 12
PROGRAM MEMORY (ROM) ...................................................................................................................................... 12
2.1
2.1.1
2.1.2
2.1.3
2.1.4
2.1.5
RESET VECTOR (0000H).................................................................................................................................... 13
INTERRUPT VECTOR (0008H) .......................................................................................................................... 14
LOOK-UP TABLE DESCRIPTION ..................................................................................................................... 16
JUMP TABLE DESCRIPTION............................................................................................................................. 18
CHECKSUM CALCULATION ............................................................................................................................ 20
DATA MEMORY (RAM)............................................................................................................................................... 21
SYSTEM REGISTER............................................................................................................................................ 21
2.2
2.2.1
2.2.1.1
2.2.1.2
2.2.1.3
2.2.2
2.2.3
2.2.4
2.2.5
2.2.6
2.2.7
SYSTEM REGISTER TABLE ......................................................................................................................... 21
SYSTEM REGISTER DESCRIPTION ............................................................................................................ 21
BIT DEFINITION of SYSTEM REGISTER.................................................................................................... 22
ACCUMULATOR................................................................................................................................................. 24
PROGRAM FLAG ................................................................................................................................................ 25
PROGRAM COUNTER ........................................................................................................................................ 26
H, L REGISTERS .................................................................................................................................................. 29
Y, Z REGISTERS .................................................................................................................................................. 30
R REGISTER......................................................................................................................................................... 30
ADDRESSING MODE ................................................................................................................................................... 31
IMMEDIATE ADDRESSING MODE.................................................................................................................. 31
DIRECTLY ADDRESSING MODE ..................................................................................................................... 31
INDIRECTLY ADDRESSING MODE................................................................................................................. 31
STACK OPERATION..................................................................................................................................................... 32
OVERVIEW .......................................................................................................................................................... 32
STACK REGISTERS ............................................................................................................................................ 33
STACK OPERATION EXAMPLE ....................................................................................................................... 34
CODE OPTION TABLE ................................................................................................................................................. 35
Fcpu code option.................................................................................................................................................... 35
Reset_Pin code option............................................................................................................................................ 35
Security code option............................................................................................................................................... 35
2.3
2.4
2.5
2.3.1
2.3.2
2.3.3
2.4.1
2.4.2
2.4.3
2.5.1
2.5.2
2.5.3
3
RESET...................................................................................................................................................................................... 36
OVERVIEW.................................................................................................................................................................... 36
POWER ON RESET........................................................................................................................................................ 37
WATCHDOG RESET..................................................................................................................................................... 37
BROWN OUT RESET .................................................................................................................................................... 37
THE SYSTEM OPERATING VOLTAGE...................................................................................................................... 38
LOW VOLTAGE DETECTOR (LVD) ........................................................................................................................... 38
BROWN OUT RESET IMPROVEMENT ...................................................................................................................... 40
EXTERNAL RESET ....................................................................................................................................................... 41
EXTERNAL RESET CIRCUIT ...................................................................................................................................... 41
3.1
3.2
3.3
3.4
3.5
3.6
3.7
3.8
3.9
3.9.1
3.9.2
3.9.3
3.9.4
3.9.5
Simply RC Reset Circuit........................................................................................................................................ 41
Diode & RC Reset Circuit...................................................................................................................................... 42
Zener Diode Reset Circuit...................................................................................................................................... 42
Voltage Bias Reset Circuit ..................................................................................................................................... 43
External Reset IC ................................................................................................................................................... 43
4
SYSTEM CLOCK................................................................................................................................................................... 44
OVERVIEW.................................................................................................................................................................... 44
FCPU (INSTRUCTION CYCLE)..................................................................................................................................... 44
SYSTEM HIGH-SPEED CLOCK................................................................................................................................... 44
4.1
4.2
4.3
4.3.1
4.3.2
HIGH_CLK CODE OPTION ................................................................................................................................ 45
INTERNAL HIGH-SPEED OSCILLATOR RC TYPE (IHRC) ........................................................................... 45
SONiX TECHNOLOGY CO., LTD
Page 3
Version 2.0