Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

SN8P1602A Datasheet(PDF) 15 Page - SONiX Technology Company

Part # SN8P1602A
Description  8-Bit Micro-Controller
PDF  76 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  SONIX [SONiX Technology Company]
Direct Link  http://www.sonix.com.tw
Logo SONIX - SONiX Technology Company

SN8P1602A Datasheet(HTML) 15 Page - SONiX Technology Company

Back Button SN8P1602A Datasheet HTML 11Page - SONiX Technology Company SN8P1602A Datasheet HTML 12Page - SONiX Technology Company SN8P1602A Datasheet HTML 13Page - SONiX Technology Company SN8P1602A Datasheet HTML 14Page - SONiX Technology Company SN8P1602A Datasheet HTML 15Page - SONiX Technology Company SN8P1602A Datasheet HTML 16Page - SONiX Technology Company SN8P1602A Datasheet HTML 17Page - SONiX Technology Company SN8P1602A Datasheet HTML 18Page - SONiX Technology Company SN8P1602A Datasheet HTML 19Page - SONiX Technology Company Next Button
Zoom Inzoom in Zoom Outzoom out
 15 / 76 page
background image
SN8P1602B
8-Bit Micro-Controller
SONiX TECHNOLOGY CO., LTD
Page 15
Version 1.1
USER RESET VECTOR ADDRESS (0000H)
A 1-word vector address area is used to execute system reset. After power on reset or watchdog timer overflow reset,
then the chip will restart the program from address 0000h and all system registers will be set as default values. The
following example shows the way to define the reset vector in the program memory.
Programming Tip:
Defining Reset Vector
CHIP SN8P1602B
ORG
0
; 0000H
JMP
START
; Jump to user program address.
.
; 0004H ~ 0007H are reserved
ORG
10H
START:
; 0010H, The head of user program.
.
; User program
.
.
.
ENDP
; End of program
INTERRUPT VECTOR ADDRESS (0008H)
A 1-word vector address area is used to execute interrupt request. If any interrupt service executes, the program
counter (PC) value is stored in stack buffer and jump to 0008h of program memory to execute the vectored interrupt.
Users have to define the interrupt vector. The following example shows the way to define the interrupt vector in the
program memory.
Programming Tip: Defining Interrupt Vector (Example 1)
CHIP SN8P1602B
.DATA
PFLAGBUF
.CODE
ORG
0
; 0000H
JMP
START
; Jump to user program address.
.
; 0004H ~ 0007H are reserved
ORG
8
; Interrupt service routine
B0XCH
A, ACCBUF
; B0XCH doesn’t change C, Z flag
B0MOV
A, PFLAG
B0MOV
PFLAGBUF, A
; Save PFLAG register in a buffer
.
.
B0MOV
A, PFLAGBUF
B0MOV
PFLAG, A
; Restore PFLAG register from buffer
B0XCH
A, ACCBUF
; B0XCH doesn’t change C, Z flag
RETI
; End of interrupt service routine
START:
; The head of user program.
.
; User program
.
JMP
START
; End of user program
ENDP
; End of program



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com