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

PFS122-1J16A 参数 Datasheet PDF下载

PFS122-1J16A图片预览
型号: PFS122-1J16A
PDF下载: 下载PDF文件 查看货源
内容描述: [8bit MTP Type MCU with 12-bit R-Type ADC]
分类和应用:
文件页数/大小: 93 页 / 1946 K
品牌: PADAUK [ PADAUK Technology ]
 浏览型号PFS122-1J16A的Datasheet PDF文件第71页浏览型号PFS122-1J16A的Datasheet PDF文件第72页浏览型号PFS122-1J16A的Datasheet PDF文件第73页浏览型号PFS122-1J16A的Datasheet PDF文件第74页浏览型号PFS122-1J16A的Datasheet PDF文件第76页浏览型号PFS122-1J16A的Datasheet PDF文件第77页浏览型号PFS122-1J16A的Datasheet PDF文件第78页浏览型号PFS122-1J16A的Datasheet PDF文件第79页  
PFS122  
8bit MTP MCU with 12-bit R-Type ADC  
xch  
M
Exchange data between ACC and memory  
Example: xch MEM ;  
Result:  
MEM ← a , a ← MEM  
Affected flags: NZ NC NAC NOV  
pushaf  
Move the ACC and flag register to memory that address specified in the stack pointer.  
Example: pushaf;  
Result:  
[sp] ← {flag, ACC};  
sp ← sp + 2 ;  
Affected flags: NZ NC NAC NOV  
Application Example:  
------------------------------------------------------------------------------------------------------------------------  
.romadr 0x10 ;  
// ISR entry address  
pushaf ;  
// put ACC and flag into stack memory  
// ISR program  
// ISR program  
popaf ;  
reti ;  
// restore ACC and flag from stack memory  
------------------------------------------------------------------------------------------------------------------------  
Restore ACC and flag from the memory which address is specified in the stack pointer.  
Example: popaf;  
popaf  
Result:  
sp ← sp - 2  
{Flag, ACC} ← [sp] ;  
Affected flags: YZ YC YAC YOV  
;
©Copyright 2020, PADAUK Technology Co. Ltd  
Page 75 of 93  
PDK-DS-PFS122-EN_V000-May 28, 2020  
 复制成功!