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

SN8A1703AS 参数 Datasheet PDF下载

SN8A1703AS图片预览
型号: SN8A1703AS
PDF下载: 下载PDF文件 查看货源
内容描述: 8位微控制器 [8-Bit Micro-Controller]
分类和应用: 微控制器
文件页数/大小: 112 页 / 624 K
品牌: SONIX [ SONIX TECHNOLOGY COMPANY ]
 浏览型号SN8A1703AS的Datasheet PDF文件第24页浏览型号SN8A1703AS的Datasheet PDF文件第25页浏览型号SN8A1703AS的Datasheet PDF文件第26页浏览型号SN8A1703AS的Datasheet PDF文件第27页浏览型号SN8A1703AS的Datasheet PDF文件第29页浏览型号SN8A1703AS的Datasheet PDF文件第30页浏览型号SN8A1703AS的Datasheet PDF文件第31页浏览型号SN8A1703AS的Datasheet PDF文件第32页  
Preliminary  
SN8P1702A/SN8P1703A  
8-bit micro-controller build-in 12-bit ADC  
ACCUMULATOR  
The ACC is an 8-bits data register responsible for transferring or manipulating data between ALU and data memory. If  
the result of operating is zero (Z) or there is carry (C or DC) occurrence, then these flags will be set to PFLAG register.  
ACC is not in data memory (RAM), so ACC can’t be access by “B0MOV” instruction during the instant addressing  
mode.  
Example: Read and write ACC value.  
; Read ACC data and store in BUF data memory  
MOV  
.
BUF, A  
.
; Write a immediate data into ACC  
MOV  
.
A, #0FH  
.
; Write ACC data from BUF data memory  
MOV  
.
A, BUF  
.
The system doesn’t store ACC and PFLAG value as any interrupt service executed. ACC must be exchanged to  
another data memory defined by users. Thus, once interrupt occurs, these data must be stored in the data memory  
based on the user’s program as follows.  
Example: ACC and working registers protection.  
ACCBUF  
EQU  
00H  
; ACCBUF is ACC data buffer in bank 0.  
; B0XCH doesn’t change C, Z flag  
INT_SERVICE:  
B0XCH  
A, ACCBUF  
B0XCH  
B0MOV  
B0MOV  
A, ACCBUF  
A, PFLAG  
PFLAGBUF,A  
; Store ACC value  
; Store PFLAG value  
.
B0MOV  
B0MOV  
B0XCH  
A, PFLAGBUF  
PFLAG,A  
A, ACCBUF  
; Re-load PFLAG value  
; Re-load ACC  
B0XCH  
A, ACCBUF  
; Re-load ACC  
RETI  
; Exit interrupt service vector  
Notice: To save and re-load ACC data must be used “B0XCH” instruction, or the PLAGE value maybe  
modified by ACC.  
SONiX TECHNOLOGY CO., LTD  
Page 28  
Revision 0.5  
 复制成功!