ChipFind - документация

Электронный компонент: SN8P1604AS

Скачать:  PDF   ZIP

Document Outline

SN8P1600
8-Bit Micro-Controller
SONiX TECHNOLOGY CO., LTD
Revision 1.94








SN8P1600 Series
USER'S MANUAL


SN8P1602
SN8P1603
SN8P1604

No Recommend in New Design









S
S
O
O
N
N
i
i
X
X
8
8
-
-
B
B
i
i
t
t
M
M
i
i
c
c
r
r
o
o
-
-
C
C
o
o
n
n
t
t
r
r
o
o
l
l
l
l
e
e
r
r






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.
SN8P1600
8-bit micro-controller
SONiX TECHNOLOGY CO., LTD
Revision 1.94
AMENDENT HISTORY
Version Date
Description
VER 1.90
Sep. 2002
V1.9 first issue
VER 1.91
Sep. 2002
Correct some V1.9 typing errors
VER 1.92
Oct. 2002
1. Correct some template code errors
2. Modify description of code option
3. Modify approval form section
4. Modify description of TC1 timer and add more explanation about PWM function
VER 1.93
Feb. 2003
1. Extend chip operating temperature from "0
C ~ +70
C" to
"-20
C ~ +70
C".
2. Change the description of ADD M,A instruction from "M M+A" to "M A+M"
3. Change "ACC can't be access by "B0MOV" instruction" to "ACC can't be access by
"B0MOV" instruction during the instant addressing mode".
4. Correct the description of STKn.
5. Correct the bit definition of INTEN register.
6. Correct the description of "TC1 CLOCK FREQUENCY OUTPUT" section.
7. Correct an error of template code: "b0bclr FWDRST" "b0bset FWDRST".
8. Add a notice about OSCM register access cycle.
9. Correct the table of "STANDARD ELECTRICAL CHARACTERISTICS".
VER 1.94
Sep. 2003
1. Add new section about checksum calculate must avoid 04H~07H
2. Reserved Last 16 word ROM addresses
3. Remove register bit description
4. Modify TC0M description.
5. Modify TC1M description.
6. Modify PWM description
7. Modify slow mode current.
8. Change code option to chapter2
9. Adjust Electrical characteristic page
10. Remove approval sheet.
11. Remove PCB layout notice section.
12. Modify the description of INTRQ register.

SN8P1600
8-bit micro-controller
SONiX TECHNOLOGY CO., LTD
Page 3
Revision 1.94

Table of Content
AMENDENT HISTORY ............................................................................................................................... 2
1
1
1
PRODUCT OVERVIEW................................................................................................................. 8
GENERAL DESCRIPTION........................................................................................................................... 8
SELECTION TABLE..................................................................................................................................... 8
FEATURES .................................................................................................................................................... 9
SYSTEM BLOCK DIAGRAM.................................................................................................................... 10
PIN ASSIGNMENT ..................................................................................................................................... 11
PIN DESCRIPTIONS................................................................................................................................... 13
PIN CIRCUIT DIAGRAMS ........................................................................................................................ 14
2
2
2
CODE OPTION TABLE ............................................................................................................... 15
3
3
3
ADDRESS SPACES ....................................................................................................................... 16
PROGRAM MEMORY (ROM)................................................................................................................... 16
OVERVIEW .............................................................................................................................................. 16
USER RESET VECTOR ADDRESS (0000H) ........................................................................................... 17
INTERRUPT VECTOR ADDRESS (0008H) ............................................................................................ 17
CHECKSUM CALCULATION ................................................................................................................. 19
GENERAL PURPOSE PROGRAM MEMORY AREA.............................................................................. 20
LOOK-UP TABLE DESCRIPTION.......................................................................................................... 20
JUMP TABLE DESCRIPTION................................................................................................................. 22
DATA MEMORY (RAM) ........................................................................................................................... 24
OVERVIEW .............................................................................................................................................. 24
WORKING REGISTERS............................................................................................................................. 25
Y, Z REGISTERS....................................................................................................................................... 25
R REGISTERS........................................................................................................................................... 26
PROGRAM FLAG ....................................................................................................................................... 27
SN8P1600
8-bit micro-controller
SONiX TECHNOLOGY CO., LTD
Page 4
Revision 1.94
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
4
4
ADDRESSING MODE................................................................................................................... 35
OVERVIEW................................................................................................................................................. 35
IMMEDIATE ADDRESSING MODE....................................................................................................... 35
DIRECTLY ADDRESSING MODE .......................................................................................................... 35
INDIRECTLY ADDRESSING MODE ...................................................................................................... 35
5
5
5
SYSTEM REGISTER .................................................................................................................... 36
OVERVIEW................................................................................................................................................. 36
SYSTEM REGISTER ARRANGEMENT (BANK 0)................................................................................. 36
BYTES of SYSTEM REGISTER ................................................................................................................ 36
BITS of SYSTEM REGISTER.................................................................................................................... 37
6
6
6
POWER ON RESET ...................................................................................................................... 38
OVERVIEW................................................................................................................................................. 38
EXTERNAL RESET DESCRIPTION......................................................................................................... 39
LOW VOLTAGE DETECTOR (LVD) DESCRIPTION............................................................................. 40
SN8P1600
8-bit micro-controller
SONiX TECHNOLOGY CO., LTD
Page 5
Revision 1.94
7
7
7
OSCILLATORS ............................................................................................................................. 41
OVERVIEW................................................................................................................................................. 41
CLOCK BLOCK DIAGRAM .................................................................................................................... 41
OSCM REGISTER DESCRIPTION.......................................................................................................... 42
EXTERNAL HIGH-SPEED OSCILLATOR .............................................................................................. 43
OSCILLATOR MODE CODE OPTION ................................................................................................... 43
OSCILLATOR DEVIDE BY 2 CODE OPTION........................................................................................ 43
OSCILLATOR SAFE GUARD CODE OPTION....................................................................................... 43
SYSTEM OSCILLATOR CIRCUITS ......................................................................................................... 44
External RC Oscillator Frequency Measurement .................................................................................... 45
INTERNAL LOW-SPEED OSCILLATOR................................................................................................. 46
SYSTEM MODE DESCRIPTION............................................................................................................... 47
OVERVIEW .............................................................................................................................................. 47
NORMAL MODE...................................................................................................................................... 47
SLOW MODE ........................................................................................................................................... 47
POWER DOWN MODE ........................................................................................................................... 47
SYSTEM MODE CONTROL...................................................................................................................... 48
SYSTEM MODE SWITCHING ................................................................................................................. 49
WAKEUP TIME .......................................................................................................................................... 50
OVERVIEW .............................................................................................................................................. 50
HARDWARE WAKEUP............................................................................................................................ 50
8
8
8
TIMERS .......................................................................................................................................... 51
WATCHDOG TIMER (WDT)..................................................................................................................... 51
TIMER0 (TC0) (SN8P1602/1603 O
NLY
) .................................................................................................... 52
OVERVIEW .............................................................................................................................................. 52
TC0M MODE REGISTER ........................................................................................................................ 53
TC0C COUNTING REGISTER ................................................................................................................ 54
TC0 TIMER OPERATION SEQUENCE .................................................................................................. 55
TIMER1 (TC1) (SN8P1604 O
NLY
).............................................................................................................. 56
OVERVIEW .............................................................................................................................................. 56
TC1M MODE REGISTER ........................................................................................................................ 57
TC1C COUNTING REGISTER ................................................................................................................ 58