SN8P1602B
8-Bit Micro-Controller
SN8P1602B
USER’S MANUAL
General Release Specification
SONiX 8-Bit Micro-Controller
SONIX reserves the right to make change without further notice to any products herein to improve reliability, function or design. SONIX does not assume any liability arising out of the application or use of any product or circuit described herein; neither does it convey any license under its patent rights nor the rights of others. SONIX products are not designed, intended, or authorized for us as components in systems intended, for surgical implant into the body, or other applications intended to support or sustain life, or for any other application in which the failure of the SONIX product could create a situation where personal injury or death may occur. Should Buyer purchase or use SONIX products for any such unintended or unauthorized application. Buyer shall indemnify and hold SONIX and its officers, employees, subsidiaries, affiliates and distributors harmless against all claims, cost, damages, and expenses, and reasonable attorney fees arising out of, directly or indirectly, any claim of personal injury or death associated with such unintended or unauthorized use even if such claim alleges that SONIX was negligent regarding the design or manufacture of the part.
SONiX TECHNOLOGY CO., LTD
Version 1.1
SN8P1602B
8-Bit Micro-Controller
AMENDENT HISTORY
Version VER 1.0 VER 1.1 Date Sep. 2003 Sep. 2003 Description V1.0 First Issue 1. Remove approval sheet 2. Remove PCB layout notice section. 3. Modify the description of code option notice. 4. Add the description of PEDGE register. 5. Modify the description of INTRQ register. 6. Change operating voltage range from “2.2V ~ 5.5V” to “2.4V ~ 5.5V” at Fosc=3.579545 MHz, ambient temperature = 25°C.
SONiX TECHNOLOGY CO., LTD
Version 1.1
SN8P1602B
8-Bit Micro-Controller
Table of Content
AMENDENT HISTORY ............................................................................................................................... 2
1
PRODUCT OVERVIEW................................................................................................................. 8
GENERAL DESCRIPTION........................................................................................................................... 8 UPGRADE FROM SN8P1602/SN8P1603/SN8P1602A............................................................................... 8 FEATURES .................................................................................................................................................... 9 SELECTION TABLE..................................................................................................................................... 9 SYSTEM BLOCK DIAGRAM.................................................................................................................... 10 PIN ASSIGNMENT ..................................................................................................................................... 11 PIN DESCRIPTIONS .................................................................................................................................. 12 PIN CIRCUIT DIAGRAMS ........................................................................................................................ 12
2 3
CODE OPTION TABLE ............................................................................................................... 13
SN8P1602B .................................................................................................................................................. 13
ADDRESS SPACES ....................................................................................................................... 14
PROGRAM MEMORY (ROM)................................................................................................................... 14 OVERVIEW .............................................................................................................................................. 14 USER RESET VECTOR ADDRESS (0000H) ........................................................................................... 15 INTERRUPT VECTOR ADDRESS (0008H) ............................................................................................ 15 CHECKSUM CALCULATION ................................................................................................................. 17 GENERAL PURPOSE PROGRAM MEMORY AREA.............................................................................. 18 LOOK-UP TABLE DESCRIPTION.......................................................................................................... 18 JUMP TABLE DESCRIPTION................................................................................................................. 20 DATA MEMORY (RAM) ........................................................................................................................... 22 OVERVIEW .............................................................................................................................................. 22 WORKING REGISTERS............................................................................................................................. 23 Y, Z REGISTERS ...................................................................................................................................... 23 SONiX TECHNOLOGY CO., LTD
Page 3
Version 1.1
SN8P1602B
8-Bit Micro-Controller
R REGISTERS........................................................................................................................................... 24 PROGRAM FLAG ....................................................................................................................................... 25 RESET/WAKEUP FLAG .......................................................................................................................... 25 CARRY FLAG ........................................................................................................................................... 25 DECIMAL CARRY FLAG......................................................................................................................... 25 ZERO FLAG ............................................................................................................................................. 25 ACCUMULATOR ....................................................................................................................................... 26 STACK OPERATIONS ............................................................................................................................... 27 OVERVIEW .............................................................................................................................................. 27 STACK REGISTERS ................................................................................................................................. 28 STACK OPERATION EXAMPLE............................................................................................................. 29 PROGRAM COUNTER............................................................................................................................... 29 ONE ADDRESS SKIPPING ..................................................................................................................... 30 MULTI-ADDRESS JUMPING ................................................................................................................. 31
4 5 6
ADDRESSING MODE................................................................................................................... 32
OVERVIEW................................................................................................................................................. 32 IMMEDIATE ADDRESSING MODE....................................................................................................... 32 DIRECTLY ADDRESSING MODE .......................................................................................................... 32 INDIRECTLY ADDRESSING MODE ...................................................................................................... 32
SYSTEM REGISTER .................................................................................................................... 33
OVERVIEW................................................................................................................................................. 33 SYSTEM REGISTER ARRANGEMENT (BANK 0)................................................................................. 33 BYTES of SYSTEM REGISTER ................................................................................................................ 33 BITS of SYSTEM REGISTER.................................................................................................................... 34
POWER ON RESET ...................................................................................................................... 35
OVERVIEW................................................................................................................................................. 35 EXTERNAL RESET DESCRIPTION......................................................................................................... 36 LOW VOLTAGE DETECTOR (LVD) DESCRIPTION ............................................................................ 37 SONiX TECHNOLOGY CO., LTD
Page 4
Version 1.1
SN8P1602B
8-Bit Micro-Controller
7
OSCILLATORS ............................................................................................................................. 38
OVERVIEW................................................................................................................................................. 38 CLOCK BLOCK DIAGRAM ..............................