전자부품 데이터시트 검색엔진
  Korean  ▼
ALLDATASHEET.CO.KR

X  

SN8P1602AS 데이터시트(PDF) 17 Page - SONiX Technology Company

부품명 SN8P1602AS
상세설명  8-Bit Micro-Controller
PDF  94 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
제조업체  SONIX [SONiX Technology Company]
홈페이지  http://www.sonix.com.tw
Logo SONIX - SONiX Technology Company

SN8P1602AS 데이터시트(HTML) 17 Page - SONiX Technology Company

Back Button SN8P1602AS Datasheet HTML 13Page - SONiX Technology Company SN8P1602AS Datasheet HTML 14Page - SONiX Technology Company SN8P1602AS Datasheet HTML 15Page - SONiX Technology Company SN8P1602AS Datasheet HTML 16Page - SONiX Technology Company SN8P1602AS Datasheet HTML 17Page - SONiX Technology Company SN8P1602AS Datasheet HTML 18Page - SONiX Technology Company SN8P1602AS Datasheet HTML 19Page - SONiX Technology Company SN8P1602AS Datasheet HTML 20Page - SONiX Technology Company SN8P1602AS Datasheet HTML 21Page - SONiX Technology Company Next Button
Zoom Inzoom in Zoom Outzoom out
 17 / 94 page
background image
SN8P1600
8-bit micro-controller
SONiX TECHNOLOGY CO., LTD
Page 17
Revision 1.94
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.
Example: After power on reset, external reset active or reset by watchdog timer overflow.
CHIP SN8P1602
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.
Example 1: This demo program includes interrupt service routine and the user program is behind the
interrupt service routine.
CHIP SN8P1602
.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 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94


데이터시트 다운로드

Go To PDF Page


링크 URL



ALLDATASHEET 가 귀하에 도움이 되셨나요?  [ DONATE ] 

Alldatasheet는?   |   광고문의   |   운영자에게 연락하기   |   개인정보취급방침   |   링크 투 데이터시트    |   링크교환   |   제조사별 검색
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