Preliminary
*-
SN8P1702A/SN8P1703A
8-bit micro-controller build-in 12-bit ADC
SN8P1700A Series
USER’S MANUAL Preliminary
SN8P1702A SN8P1703A
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
Page 1
Revision 0.5
Preliminary
AMENDMENT HISTORY
Version VER 0.1 VER 0.2 VER 0.3 Date Jul. 2003 Jul. 2003 Jul. 2003 Description V1.0 Preliminary Version Change watchdog overflow table 1. Modify selection table 2. DC current chars. Change 3. Feature change 4. Change SN8P1703 part number to SN8P1703A
SN8P1702A/SN8P1703A
8-bit micro-controller build-in 12-bit ADC
5. Code option table has been relocated after pin description section. 6. Modify QTP approval sheet 7. Change Register description. 8. Add LVD typical value=1.8V in Elec. Char. Aug. 2003 VER 0.4 Sep. 2003 9. Add “Noise Filter” code option 1. Add SN8P1702A SSOP20 for Mask Mass production. 2. Add TC1 Timer in Update table. 3. Modify Chap. 8 table/figure no. 4. Modify TC0/TC1 timer description and table. 5. Modify PWM description and table. 6. Modify electrical characteristic table VER 0.5 Sep. 2003 1. Modify ADC convert time table 2. Modify the description of PEDGE register. 3. Modify the description of INTRQ register. 3. Remove approval sheet. 4. Separate the pin description section of SN8P1702A and SN8P1703A. 5. Remove PCB layout section 6. Add P-DIP 20 and Sop 20 package information. 7. Add SN8A1702B and SN8A1703A related description.
SONiX TECHNOLOGY CO., LTD
Page 2
Revision 0.5
Preliminary
SN8P1702A/SN8P1703A
8-bit micro-controller build-in 12-bit ADC
Table of Contents
AMENDMENT HISTORY .............................................................................................................. 2
1
PRODUCT OVERVIEW ..................................................................................................... 8
GENERAL DESCRIPTION ........................................................................................................... 8 FEATURES SELECTION TABLE ................................................................................................. 8 MASK/OTP RELATIVE TABLE .......................................................................................................... 8 ADC GRADE TABLE .................................................................................................................... 8 UPGRADE FROM SN8P1702 (OLD VERSION OTP) ....................................................................... 9 SN8P1702A/SN8P1703A FEATURES ....................................................................................... 10 SYSTEM BLOCK DIAGRAM ...................................................................................................... 11 PIN ASSIGNMENT ..................................................................................................................... 12 SN8P1702A Pin Assignment................................................................................................... 12 SN8P1703A Pin Assignment................................................................................................... 14 PIN DESCRIPTIONS .................................................................................................................. 15 PIN CIRCUIT DIAGRAMS .......................................................................................................... 15
2 3
CODE OPTION TABLE ................................................................................................... 16
ADDRESS SPACES ........................................................................................................ 17
PROGRAM MEMORY (ROM)..................................................................................................... 17 OVERVIEW ............................................................................................................................. 17 USER RESET VECTOR ADDRESS (0000H) ......................................................................... 18 INTERRUPT VECTOR ADDRESS (0008H)............................................................................ 18 CHECKSUM CALCULATION.................................................................................................. 20 GENERAL PURPOSE PROGRAM MEMORY AREA ............................................................. 21 LOOKUP TABLE DESCRIPTION............................................................................................ 21 JUMP TABLE DESCRIPTION................................................................................................. 23 DATA MEMORY (RAM) .............................................................................................................. 25 SONiX TECHNOLOGY CO., LTD
Page 3
Revision 0.5
Preliminary
SN8P1702A/SN8P1703A
8-bit micro-controller build-in 12-bit ADC
OVERVIEW ............................................................................................................................. 25 WORKING REGISTERS............................................................................................................. 26 Y, Z REGISTERS .................................................................................................................... 26 R REGISTERS ........................................................................................................................ 27 PROGRAM FLAG ....................................................................................................................... 27 CARRY FLAG ......................................................................................................................... 27 DECIMAL CARRY FLAG......................................................................................................... 27 ZERO FLAG ............................................................................................................................ 27 ACCUMULATOR ........................................................................................................................ 28 STACK OPERATIONS................................................................................................................ 29 OVERVIEW ............................................................................................................................. 29 STACK REGISTERS............................................................................................................... 30 STACK OPERATION EXAMPLE ............................................................................................ 31 PROGRAM COUNTER............................................................................................................... 32 ONE ADDRESS SKIPPING .................................................................................................... 33 MULTI-ADDRESS JUMPING .................................................................................................. 34
4 5 6
ADDRESSING MODE...................................................................................................... 35
OVERVIEW................................................................................................................................. 35 IMMEDIATE ADDRESSING MODE ........................................................................................ 35 DIRECTLY ADDRESSING MODE .......................................................................................... 35 INDIRECTLY ADDRESSING MODE....................................................................................... 35 TO ACCESS DATA in RAM BANK 0....................................................................................... 36
SYSTEM REGISTER ....................................................................................................... 37
OVERVIEW................................................................................................................................. 37 SYSTEM REGISTER ARRANGEMENT (BANK 0) ..................................................................... 37 BYTES of SYSTEM REGISTER.............................................................................................. 37 BITS of SYSTEM REGISTER ................................................................................................. 38
POWER ON RESET ........................................................................................................ 39
SONiX TECHNOLOGY CO., LTD
Page 4
Revision 0.5
Preliminary
SN8P1702A/SN8P1703A
8-bit micro-controller build-in 12-bit ADC
OVERVIEW................................................................................................................................. 39 EXTERNAL RESET DESCRIPTION.........................................................................................