欢迎访问ic37.com |
会员登录 免费注册
发布采购

SN8A1702AP 参数 Datasheet PDF下载

SN8A1702AP图片预览
型号: SN8A1702AP
PDF下载: 下载PDF文件 查看货源
内容描述: 8位微控制器 [8-Bit Micro-Controller]
分类和应用: 微控制器
文件页数/大小: 145 页 / 774 K
品牌: SONIX [ SONIX TECHNOLOGY COMPANY ]
 浏览型号SN8A1702AP的Datasheet PDF文件第22页浏览型号SN8A1702AP的Datasheet PDF文件第23页浏览型号SN8A1702AP的Datasheet PDF文件第24页浏览型号SN8A1702AP的Datasheet PDF文件第25页浏览型号SN8A1702AP的Datasheet PDF文件第27页浏览型号SN8A1702AP的Datasheet PDF文件第28页浏览型号SN8A1702AP的Datasheet PDF文件第29页浏览型号SN8A1702AP的Datasheet PDF文件第30页  
SN8P1700  
8-bit micro-controller build-in 12-bit ADC  
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 SN8P1708  
ORG  
JMP  
.
0
; 0000H  
START  
; Jump to user program address.  
; 0001H ~ 0007H are reserved  
ORG  
10H  
START:  
; 0010H, The head of user program.  
.
; User program  
.
.
.
; End of program  
ENDP  
INTERRUPT VECTOR ADDRESS (0008H)  
A 1-word vector address area is used to execute interrupt request. If any interrupt service is executed, the program  
counter (PC) value is stored in stack buffer and points 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 SN8P1708  
ORG  
JMP  
.
0
; 0000H  
START  
; Jump to user program address.  
; 0001H ~ 0007H are reserved  
; Interrupt service routine  
; B0XCH doesn’t change C, Z flag  
; Push 80H ~ 87H system registers  
ORG  
B0XCH  
PUSH  
.
8
A, ACCBUF  
.
.
; Pop 80H ~ 87H system registers  
; End of interrupt service routine  
POP  
B0XCH  
RETI  
A, ACCBUF  
START:  
; The head of user program.  
; User program  
.
.
.
.
; End of user program  
; End of program  
JMP  
START  
ENDP  
SONiX TECHNOLOGY CO., LTD  
Page 26  
Revision 1.94  
 复制成功!